Changes

Jump to navigation Jump to search
353 bytes added ,  02:03, 5 September 2005
Added a simple ConTeXt solution.
== 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 from LaTeX's <code>\abstractclasses.dtx</code> command is nearly trivial, and is quite easy to replicate in LaTeX's startard article classConTeXt idioms.
<texcode>
% Again, this \starttext\midaligned{\bf Abstract}\startnarrower[2*middle]This is filler from the Document Titles pagedocument's abstract. It contains enough text for two lines, but no more.\stopnarrower\blank[big]
This is the main text of the document. Like the abstract, it contains enough text
for two lines, to show the margins.
\stoptext
</texcode>
 
<context>
\starttext
\startalignment[center] \blank[2*big] midaligned{\tfd How to do this in Contextbf Abstract} \blankstartnarrower[32*mediummiddle] {\tfa The author}This is the document's abstract. It contains enough text for two lines, but no more. \blank[2*medium]stopnarrower {\tfa July 26, 2005} \blank[3*mediumbig]\stopalignment
Then, This is the actual main text of the document starts here. We'll put in Like the abstract, it contains enough text for two lines, tofill out show the line and start to make a paragraphmargins.
\stoptext
</texcodecontext>
{{todo|Find In the code in two-column document classes, LaTeX's <ttcode>classes.dtxabstract</code> environment does nothing beyond putting a <code>\section*{Abstract}</ttcode> for setting abstracts, translate into ConTeXt, and put in front of the above exampleabstract's text. This can be easily replicated in ConTeXt with <code>\subject{Abstract}}</code>. (See [[Unnumbered Sections]].)
== ConTeXt: A more reusable solution ==
{{todo|Write this whole section, along the lines of the parallel section in [[Document Titles]].}}

Navigation menu