Open main menu

Changes

13 bytes added ,  13:24, 9 August 2020
m
Text replacement - "<cmd>" to "{{cmd|"
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]]