[NTG-context] A description question

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


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?

TIA

-- 
Marcin Borkowski
http://mbork.pl



More information about the ntg-context mailing list