The macro files for all converters are (by default) installed to a directory
/usr/local/lib/yodl
. This is a good place to look if you want to
see how a converter works, or if you want to write a new converter.
The place to start looking is the file shared.yo
, which is used by all
converters. This file defines most commands that are `global' in the sense
that all converters implement them: e.g., bf
, em
and so on. The
implementation is per macro as follows, illustrated for e.g., bf
(the
actual implementation may be slightly different):
DEFINEMACRO(bf)(1)(\ whenlatex(latexcommand({\bf )ARG1+latexcommand(}))\ whenhtml(htmlcommand(<strong>)ARG1+htmlcommand(</strong>))\ whenman(mancommand(\fB)ARG1+mancommand(\fP))\ whensgml(sgmlcommand(<bf>)ARG1+sgmlcommand(</bf>))\ whentxt(ARG1))
The macro expands to a set of commands that are active per output format,
using latexcommand
, htmlcommand
etc..
The file shared.yo
is included in its turn by tex.yo
, html.yo
and
so on. These separate files are very short; their function is to:
latex
for
latex conversions, html
for HTML, and so on),
shared.dm
,
Please send Yodl questions and comments to yodl@icce.rug.nl.
Please send comments on these web pages to (address unknown)
Copyright (c) 1997, 1998, 1999 Karel Kubat and Jan Nieuwenhuizen.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.