Article Abstracts

From ConTeXt wiki
Revision as of 01:50, 5 September 2005 by Brooks (talk | contribs) (Added proper LaTeX example.)

< From LaTeX to ConTeXt | Document Titles >


TODO: 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! (See: To-Do List)


LaTeX

Much as with Document Titles, the standard LaTeX article and report classes define an abstract environment to typeset an abstract in a way that distinguishes it from the rest of the text. In a single-column article, it is set somewhat narrower than the main text, with the word "Abstract" centered above it.

\documentclass{article}
\begin{document}
  \begin{abstract}
    This is the abstract of the paper.
  \end{abstract}
\end{document}

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 \abstract command in LaTeX's startard article class.

% 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

TODO: Find the code in LaTeX's classes.dtx for setting abstracts, translate into ConTeXt, and put in the above example. (See: To-Do List)


ConTeXt: A more reusable solution


TODO: Write this whole section, along the lines of the parallel section in Document Titles. (See: To-Do List)