1,467 bytes added
, 01:56, 4 September 2005
< [[From LaTeX to ConTeXt]] | [[Document Titles]] >
Note: this is sort of a stub article which I sketched out to remind myself what I wanted to write later. If anyone else wants to work on it, feel free!
{{Explanation}}
== LaTeX ==
Much as with [[Document Titles]], the standard LaTeX document classes define an <code>\abstract</code> command to typeset an abstract in a way that distinguishes it from the rest of the text.
<texcode>
% Note: this is the old Document Title example, as filler.
\documentclass{article}
\title{How to do this in Context}
\author{The author}
\date{July 26, 2005}
\begin{document}
\maketitle
\end{document}
</texcode>
== ConTeXt: A simple solution ==
The simplest way of producing an abstract in a ConTeXt document is to specify the formatting directly. The following version is a close approximation of the version produced by the <code>\abstract</code> command in LaTeX's startard article class.
<texcode>
% Again, this is filler from the Document Titles page.
\starttext
\startalignment[center]
\blank[2*big]
{\tfd How to do this in Context}
\blank[3*medium]
{\tfa The author}
\blank[2*medium]
{\tfa July 26, 2005}
\blank[3*medium]
\stopalignment
Then, the actual text of the document starts here. We'll put in enough text to
fill out the line and start to make a paragraph.
\stoptext
</texcode>
== ConTeXt: A more reusable solution ==
(The formatting can be placed in a module, etc., etc.)