Changes

Jump to navigation Jump to search
184 bytes added ,  18:35, 12 February 2006
m
== ConTeXt: A more reusable solution ==
As with [[Document Titles]], to replicate the spirit of the LaTeX environment, we might want to separate the document formatting commands from the actual text of the abstract. ThusThe low-level Context command <cmd>definestartstop</cmd> defines a pair of <cmd>start</cmd> - <cmd>stop</cmd> commands, so we can define an <code>abstract</code> environment using the following commands:
<texcode>
\def\startabstract{%definestartstop [abstract] [before={\midaligned{\bf Abstract} \startnarrower[2*middle]}, after={\def\stopabstract{%stopnarrower \stopnarrowerblank[big]}]
</texcode>
This, of course, produces exactly the same result as the previous illustration.
 
[[Category:From LaTeX]]

Navigation menu