A Very Minimal Article

The example below is nearly the simplest possible GELLMU document.

It is designed to illustrate the flow of GELLMU document processing in the context of an extremely short document with no math, no accents, no styling of text, and no formatting beyond that of a single paragraph, which contains a single sentence.

In my current didactic GELLMU system the command surtitle affects HTML, not LaTeX. The LaTeX title is the GELLMU title, which becomes the first H1 header in HTML, while the surtitle becomes the HTML page title. With some popular web browsers the HTML page title is written in the browser window border. It may be construed as analogous to the name of a printed newspaper, which appears at the top of its front page. In that interpretation of HTML the HTML headers play a role that is analogous to newspaper headlines. One could configure a stage 3 processor for the LaTeX target to use the surtitle as a running header or to put it in a footnote on the first page. In the current didactic GELLMU stage 3 processor for LaTeX the surtitle is inert. This inertness is coded with:

# Element surtitle
sgml('<surtitle>', sub{
sgml('</surtitle>', sub{
The pushing and popping of output is a feature of David Megginson's Perl library SGMLSPM. This code serves to prevent inadvertent leakage of the surtitle into the LaTeX source.
GELLMU source

SGML transliteration

Parsed SGML, as seen by stage 3 processors

Auto-flowed XML

Auto-flowed HTML

Auto-flowed LaTeX



The LaTeX document contains a modest amount of ``boiler plate'' that is irrelevant for this document except for the use of LaTeX lengths that are not the LaTeX defaults lengths. These lengths are GELLMU defaults to suit this author's taste. The idea in a GELLMU system is that an author may configure defaults and ``presentation'' for each format.

TOP  |   Department