Changes

Jump to navigation Jump to search
303 bytes added ,  01:46, 4 September 2005
m
Fixed the programming bug, added crosslink to Article Abstracts.
== In ConTeXt: A more reusable solution ==
The simple solution replicates the appearance of the LaTeX original, but it doesn't replicate the spirit of it, which is to separate the formatting from the content. We can do this by creating the following definitions, and putting them in a module file. The <code>\title</code> and similar commands are copied nearly directly from the LaTeX kernel, and the formatting command the same as the previous version-- note that we use <code>\doctitle</code> instead of <code>\title</code>, to avoid obliterating the <code>\title</code> command that ConTeXt is already using for unnumbered sections.
<texcode>
\unprotect
\def\titledoctitle#1{\gdef\@title{#1}}
\def\author#1{\gdef\@author{#1}}
\def\date#1{\gdef\@date{#1}}
<texcode>
\usepackage[title]
\titledoctitle{How to do this in Context}
\author{The author}
\date{July 26, 2005}
<context>
\unprotect
\def\titledoctitle#1{\gdef\@title{#1}}
\def\author#1{\gdef\@author{#1}}
\def\date#1{\gdef\@date{#1}}
\protect
\titledoctitle{How to do this in Context}
\author{The author}
\date{July 26, 2005}
\stoptext
</context>
 
 
So, that's the title. The abstract can be handled very similarly; see [[Article Abstracts]] for details.

Navigation menu