[NTG-context] A description question

Aditya Mahajan adityam at umich.edu
Tue Sep 6 08:45:12 CEST 2011


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,

Aditya


More information about the ntg-context mailing list