Changes

Jump to navigation Jump to search
151 bytes removed ,  13:24, 9 August 2020
m
Text replacement - "<cmd>" to "{{cmd|"
In the two-column document classes, LaTeX's <code>abstract</code> environment does nothing beyond putting a <code>\section*{Abstract}</code> in front of the abstract's text. This can be easily replicated in ConTeXt with <code>\subject{Abstract}</code>. (See [[Unnumbered Sections]].)
 
This is not always true. There are classes like ieeetran.cls that use a one column abstract in a two column document. Can someone explain how to do that
{{howto}}
== 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.
The 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>
This code can be placed in the document header, or can be placed in a module file to be loaded in a number of documents. It could also be enhanced by <{{cmd>|if</cmd> }} statements to distinguish between the one-column and two-column cases, as LaTeX does. In any case, once these commands are defined, they can be used in the obvious manner.
<texcode>
This, of course, produces exactly the same result as the previous illustration.
 
[[Category:From LaTeX]]

Navigation menu