[NTG-context] A description question

Marcin Borkowski mbork at wmi.amu.edu.pl
Tue Sep 6 09:31:48 CEST 2011


Dnia 2011-09-06, wto o godzinie 02:45 -0400, Aditya Mahajan pisze:
> On Tue, 6 Sep 2011, Marcin Borkowski wrote:
> 
> > Hi all!
> >
> > I have something like this:
> >
> > \definedescription[definition][
> >  text=Definition,
> >  location=hanging,
> >  width=fit,
> >  align=flushleft,
> >  headstyle=bold,
> >  style=normal,
> > ]
> >
> > \startdefinition{whatever}
> >  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent arcu
> >  nisl, interdum nec dignissim sit amet, blandit eu purus. Nulla
> >  facilisi. Vivamus quis metus mauris. Sed laoreet vulputate rhoncus.
> >  Suspendisse quis metus nibh, sed ultricies orci. Ut dolor diam,
> >  convallis vitae mollis a, ultricies vel mi. Integer leo nisl,
> >  scelerisque vitae gravida bibendum, mollis quis mauris. Maecenas augue
> >  risus, suscipit id sodales sit amet, sagittis non augue. Praesent
> >  tellus lorem, vulputate sed porta ut, eleifend ac leo. In et odio
> >  libero, eget vulputate risus.
> > \stopdefinition
> >
> > And I get something like this (stars mean bold):
> > *Definitionwhatever* Lorem ipsum dolor sit amet, consectetur adipiscing
> >  elit. Praesent arcu nisl, interdum nec dignissim sit amet, blandit eu
> >  purus. Nulla facilisi. Vivamus quis metus mauris. Sed laoreet
> >  vulputate rhoncus. Suspendisse quis metus nibh, sed ultricies orci. Ut
> >  dolor diam, convallis vitae mollis a, ultricies vel mi. Integer leo
> >  nisl, scelerisque vitae gravida bibendum, mollis quis mauris. Maecenas
> >  augue risus, suscipit id sodales sit amet, sagittis non augue.
> >  Praesent tellus lorem, vulputate sed porta ut, eleifend ac leo. In et
> >  odio libero, eget vulputate risus.
> >
> > And what I want is:
> >
> > *Definition* (whatever). Lorem ipsum dolor sit amet, consectetur
> > adipiscing elit. Praesent arcu nisl, interdum nec dignissim sit amet,
> > blandit eu purus. Nulla facilisi. Vivamus quis metus etc...
> >
> > That is, I'd like to have the following:
> > - no indentation of the second and subsequent lines;
> > - whatever should be prefixed with a space and an opening brace and
> > suffixed with a closing brace and a period;
> > - whatever should not be bold.
> >
> > Is it possible to accomplish this automatically?
> 
> Untested. Try
> 
> titleleft=(, titleright=), titlestyle=normal, distance=0.5em, 
> location=serried,

Thanks!

It almost works - location=serried made the indentation disappear, but
the rest of the problems is still unsolved.

-- 
Marcin Borkowski
http://mbork.pl



More information about the ntg-context mailing list