\TZPcolophontimestamp,
etc., and are set using \let or \def or even \gdef,
\edef, or \xdef.
(If using one of the \defs, only the
first character in the \def-body is significant.)
All these TeX2page flags are named \TZP..., and as long as
you avoid using these names for other purposes, setting these
flags should not affect the print output.
\title command, or, if that is not
available, the basename of the document source file. If you
wish the external title to be something else, you can set
the control sequence \TZPtitle, e.g.,
\def\TZPtitle{The Odyssey}
Note that in LaTeX, \title merely
specifies the title; the command that actually places the
title is \maketitle. TeX2page does the same for LaTeX
documents. For other formats, TeX2page will assume that
\title should set its argument as a title immediately.
For TeX to do likewise, the document must include supply an
appropriate TeX-only definition for \title, e.g., the
one in tex2page.tex.
To put the colophon on the last rather than the first page,
\let\TZPcolophonlastpage=1
If this request is to have meaning, it should be made in the document before the text for the second HTML page starts. Otherwise, the default first-page placement of the colophon will have already taken effect.
To avoid mentioning the timestamp of the document in the colophon,
\let\TZPcolophontimestamp=0
If the underlying
Scheme is incapable of determining a file’s write date, TeX2page will
not mention the timestamp, regardless of the \TZPcolophontimestamp setting.
To avoid crediting TeX2page in the colophon,
\let\TZPcolophoncredit=0
To avoid linking to the TeX2page website in the colophon,
\let\TZPcolophonweblink=0
If \TZPcolophoncredit is 0, the colophon won’t link to the TeX2page
site, regardless of the \TZPcolophonweblink setting.
\TZPmathimage flag
specifies whether mathematical fragments in the
document should be rendered as image or ascii. By default, TeX2page will
generate images for displayed math and for “complicated”
in-text math (i.e., math embedded in running text). If the
in-text math is simple according its judgment, TeX2page will
economize by generating its ascii equivalent.
The assignment
\let\TZPmathimage=0
forces subsequent math in ascii, until the end of the document or until you reset to the flag to 1.
It is a good idea to set this flag to 0 if the mathematical notation in part or all of your document is simple enough to not require complicated notation.
The defaults are: NetPBM
to convert, and GIF to convert to.
You may set the flags \TZPimageconverter and \TZPimageformat to
change this, e.g,
\def\TZPimageconverter{imagemagick} % use ImageMagick
\def\TZPimageconverter{netpbm} % use NetPBM (default)
\def\TZPimageformat{png} % for PNG images
\def\TZPimageformat{jpeg} % for JPEG images
\def\TZPimageformat{gif} % for GIF images (default)
\TZPslatexcomments governs whether Scheme comments
should inside verbatim Scheme code should be rendered verbatim or as TeX.
By default, they are rendered verbatim. To allow TeX commands inside
Scheme comment text, do
\let\TZPslatexcomments=1
This is the style favored by SLaTeX.
With \TZPslatexcomments set, the text
\scm{
(open-input-string ; in Scsh, use \scm{string->input-port}
s)
}
produces
(open-input-string ; in Scsh, use string->input-port
s)
Note that \TZPslatexcomments=1 is not an unmixed blessing, as it
restricts your Scheme comments to text that is valid TeX.
To produce more TeX-like layout, i.e., with no parskip and
with some parindent,
with the page width not exceeding \hsize,
with left and top margins that are an inch greater than
\hoffset and \voffset respectively, and with a
navigation bar that uses \headline and \footline,
do
\let\TZPtexlayout=1
The HTML page will be set according to the values of the
lengths \hsize, \hoffset, \voffset,
\parskip, \parindent, and the tokens \headline
and \footline as they are at the end of
the document.
The command \folio inside the tokens \headline and \footline
— and only inside them —
produces in HTML not the current page number but rather twin links to the
adjacent pages. \folio thus lets you create navigation
bars.
Note that the plain TeX default (which
TeX2page reuses) is to have \folio in the
\footline and nothing in the \headline. If you wish
to have a navigation bar in the header, you should set
\headline.
It is not necessary that these values be identical to what TeX sees for the same document, as you can make HTML-only settings such as
\ifx\shipout\UnDeFiNeD
\hsize=36em
\headline={\folio, ~~ \urlh{#ToC}{ToC}, ~~ \urlh{#Index}{Index}}
\footline={\the\headline} % i.e., footline same as headline
\fi
where the tags ToC and Index are set near
the ToC and Index respectively.
Paragraphs preceded by \noindent will always have no initial
indentation, even if \TZPtexlayout=1 and \parskip is
non-zero.
Because it is too drastic a change, \TZPtexlayout=1 will not cause
text to be right-justified. To make that happen,
\let\TZPraggedright=0
Setting \TZPraggedright has no effect unless \TZPtexlayout is
also set.