Index
Go backward to Trying it out
Go up to Top
Go forward to Getting started
Parsing by LaTeX LaTeX and Hyperlatex
You are writing an input file that has to be read by LaTeX as well
as the Hyperlatex converter. The parsing done by LaTeX is complex,
and has many of us surprised in certain situations. It was hopeless to
try to imitate this complex behavior using a modest collection of
Emacs Lisp macros. Nevertheless, Hyperlatex should behave well on your
LaTeX files. If your source is comprehensible to LaTeX (with the
hyperlatex.sty package), then Hyperlatex should not have
syntactical problems with it. There is, however, one difference
in parsing arguments: In LaTeX, you can write
\emph example,
and what you will get is `example'. Hyperlatex will complain
about this. To get the same effect, you will have to write
\emph{e}xample.
Furthermore, Hyperlatex does not tokenize the input. It does not read
the file character by character, but jumps over your text to the next
interesting character. This has some consequences, mainly on the
processing of user-defined macros.
The parsing done by Hyperlatex is even more restricted in the
preamble. In fact, Hyperlatex only looks in
the preamble for a small set of commands. The commands are only found
if they start at the beginning of a line, with only white space in
front of them (the command definitions may be prepended with \W
).
The only commands that are recognized in the preamble are
otfried@postech.vision.ac.kr