diff options
Diffstat (limited to 'support/ltx2x/l2h.ct')
-rw-r--r-- | support/ltx2x/l2h.ct | 1709 |
1 files changed, 1709 insertions, 0 deletions
diff --git a/support/ltx2x/l2h.ct b/support/ltx2x/l2h.ct new file mode 100644 index 0000000000..00a52369f5 --- /dev/null +++ b/support/ltx2x/l2h.ct @@ -0,0 +1,1709 @@ + c= l2h.ct CT file for ltx2x to convert typical document to HTML + c= includes support for packages url, html, hyperref, hyper + c= plus the new commands specified for the LTX2X manual + c= Author: Peter Wilson (pwilson@cme.nist.gov) August 1996 + + c= -------------------- escape sequences + +ESCAPE_CHAR= ? + + c= -------------------- required built in commands + +TYPE= BEGIN_DOCUMENT + c= ( \begin{document} --> <html> + c= <head> + c= <title>Contents of \mltitle</title> + c= </head> + c= <body> + c= (This document ... program.) + c= <a name="HtMlSoD"></a><a href="#HtMlEoD">To the end</a> ) + START_TAG= "<html>?n<head>?n<title>" + SOURCE: BUFFER 1 + STRING: "</title>?n</head>?n<body>?n" + STRING: "(This document was automatically generated from LaTeX source " + STRING: "by the ltx2x program.)?n" + STRING: "<a name="HtMlSoD"></a><a href="#HtMlEoD">To the end</a>?n" + RESET_BUFFER: 1 +END_TYPE + +TYPE= END_DOCUMENT + c= ( \end{document} --> <a name="HtMlEoD"></a><a href="#HtMlSoD">To the start</a> + c= </body> + c= <html> ) + START_TAG= "<a name="HtMlEoD"></a><a href="#HtMlSoD">To the start</a>?n" + STRING: "</body>?n</html>?n" +END_TYPE + +TYPE= BEGIN_VERB + c= ( \verb| --> <samp> ) + START_TAG= "<samp>" +END_TYPE + +TYPE= END_VERB + START_TAG= "</samp>" +END_TYPE + +TYPE= BEGIN_VERBATIM + c= ( \begin{verbatim} --> <pre> ) + START_TAG= "<pre>" +END_TYPE + +TYPE= END_VERBATIM + c= ( \end{verbatim} --> </pre> ) + START_TAG= "</pre>" +END_TYPE + +TYPE= BEGIN_DOLLAR +END_TYPE + +TYPE= END_DOLLAR +END_TYPE + +TYPE= SLASH_SPACE + START_TAG= " " +END_TYPE + +TYPE= OTHER_COMMAND + PRINT_CONTROL= NO_PRINT +END_TYPE + +TYPE= OTHER_BEGIN + PRINT_CONTROL= NO_PRINT +END_TYPE + +TYPE= OTHER_END + PRINT_CONTROL= NO_PRINT +END_TYPE + +TYPE= LBRACE + START_TAG= "" +END_TYPE + +TYPE= RBRACE + START_TAG= "" +END_TYPE + +TYPE= PARAGRAPH + START_TAG= "?n<p>" +END_TYPE + + c= ---------------------- (La)TeX special characters + + c= hash (for use in \def s ) +TYPE= TEX_CHAR +NAME= # +END_TYPE + + c= twiddle (unbreakable space) +TYPE= TEX_CHAR +NAME= ~ + START_TAG= " " +END_TYPE + + c= underscore (math subscript) + c= require a parameter +TYPE= TEX_CHAR +NAME= _ + c= ( _{text} --> <sub>text</sub> ) + START_TAG_1= "<sub>" + END_TAG_1= "</sub>" + REQPARAMS= 1 +END_TYPE + + c= caret (math superscript) + c= require a parameter +TYPE= TEX_CHAR +NAME= ^ + c= ( ~{text} --> <sup>text</sup> ) + START_TAG_1= "<sup>" + END_TAG_1= "</sup>" + REQPARAMS= 1 +END_TYPE + + c= percent (start of comment) +TYPE= TEX_CHAR +NAME= % + START_TAG= "" +END_TYPE + + c= at +TYPE= TEX_CHAR +NAME= @ + START_TAG= "@" +END_TYPE + + c= ----------------------- default single character commands + + c= LaTeX start a new line +TYPE= CHAR_COMMAND +NAME= \\ + c= ( \\ --> <br> ) + START_TAG= "<br>" +IN_MODE= tabular + c= ( \\ --> BUFFER 8">BUFFER 9</tr> + c= <tr><td ) + PC_AT_START= RESET + START_TAG= + SOURCE: BUFFER 8 + STRING: "> " + RESET_BUFFER: 8 + SOURCE: BUFFER 9 + END_TAG= "</tr>?n<tr><td " + RESET_BUFFER: 9 + PC_AT_END= TO_BUFFER 9 +END_MODE +IN_MODE= eqnarray + c= ( \\ --> </td></tr> + c= <tr align=center><td nowrap> ) + START_TAG= "</td></tr>?n<tr align=center><td nowrap>" +END_MODE +END_TYPE + + c= small space +TYPE= CHAR_COMMAND +NAME= \, + START_TAG= " " +END_TYPE + + c= end of sentence space +TYPE= CHAR_COMMAND +NAME= \@ + START_TAG= " " +END_TYPE + + c= hash +TYPE= CHAR_COMMAND +NAME= \# + START_TAG= "#" +END_TYPE + + c= dollar +TYPE= CHAR_COMMAND +NAME= \$ + START_TAG= "$" +END_TYPE + + c= ampersand +TYPE= CHAR_COMMAND +NAME= \& + START_TAG= "&" +END_TYPE + + c= underscore +TYPE= CHAR_COMMAND +NAME= \_ + START_TAG= "_" +END_TYPE + + c= percent +TYPE= CHAR_COMMAND +NAME= \% + START_TAG= "%" +END_TYPE + + c= optional hyphenation +TYPE= CHAR_COMMAND +NAME= \- + START_TAG= "" +END_TYPE + + c= left brace +TYPE= CHAR_COMMAND +NAME= \{ + START_TAG= "{" +END_TYPE + + c= right brace +TYPE= CHAR_COMMAND +NAME= \} + START_TAG= "}" +END_TYPE + + c= ----------------------------- (re)newstuff + c= do no processing + +TYPE= COMMAND_POOP +NAME= \newcommand + PRINT_P1= NO_OP + PRINT_P2= NO_OP + PRINT_P3= NO_OP + PRINT_P4= NO_OP +END_TYPE + +TYPE= COMMAND_POOP +NAME= \renewcommand + PRINT_P1= NO_OP + PRINT_P2= NO_OP + PRINT_P3= NO_OP + PRINT_P4= NO_OP +END_TYPE + +TYPE= COMMAND_POOP +NAME= \providecommand + PRINT_P1= NO_OP + PRINT_P2= NO_OP + PRINT_P3= NO_OP + PRINT_P4= NO_OP +END_TYPE + +TYPE= COMMAND_POOPP +NAME= \newenvironment + PRINT_P1= NO_OP + PRINT_P2= NO_OP + PRINT_P3= NO_OP + PRINT_P4= NO_OP + PRINT_P5= NO_OP +END_TYPE + +TYPE= COMMAND_POOPP +NAME= \renewenvironment + PRINT_P1= NO_OP + PRINT_P2= NO_OP + PRINT_P3= NO_OP + PRINT_P4= NO_OP + PRINT_P5= NO_OP +END_TYPE + + c= ------------------------- General (La)TeX + + c= ------------------------- document title, author, etc + +TYPE= COMMAND +NAME= \documentclass + c= empty buffer 1 in case \mltitle not used in document + OPT_PARAM= FIRST + REQPARAMS= 1 + PRINT_P1= NO_PRINT + PRINT_OPT= NO_PRINT + END_TAG= + RESET_BUFFER: 1 +END_TYPE + +TYPE= COMMAND +NAME= \documentstyle + c= empty buffer 1 in case \mltitle not used in document + OPT_PARAM= FIRST + REQPARAMS= 1 + PRINT_P1= NO_PRINT + PRINT_OPT= NO_PRINT + END_TAG= + RESET_BUFFER: 1 +END_TYPE + + c= special latex tag for html title +TYPE= COMMAND +NAME= \mltitle + c= ( newcommand{\mltitle}[1]{} ) + c= ( \mltitle{text} --> BUFFER 1 ) + REQPARAMS= 1 + START_TAG= + RESET_BUFFER: 1 + PRINT_P1= TO_BUFFER 1 +END_TYPE + +TYPE= COMMAND +NAME= \maketitle + c= ( \maketitle --> <h1 align=center> + c= contents of \title command + c= </h1> + c= <h3 align=center> + c= contents of \author command + c= </h3> + c= <h3 align=center> + c= contents of \date command + c= </h3> ) + START_TAG= "?n" + STRING: "<h1 align=center>?n" + SOURCE: FILE tit.tmp + STRING: "?n</h1>?n<h3 align=center>?n" + SOURCE: BUFFER 2 + STRING: "?n</h3>?n<h3 align=center>?n" + SOURCE: BUFFER 3 + STRING: "?n</h3>?n" + RESET_BUFFER: 2 + RESET_BUFFER: 3 +END_TYPE + +TYPE= COMMAND +NAME= \title + REQPARAMS= 1 + PRINT_P1= TO_FILE tit.tmp +END_TYPE + +TYPE= COMMAND +NAME= \author + REQPARAMS= 1 + PRINT_P1= TO_BUFFER 2 +END_TYPE + +TYPE= COMMAND +NAME= \date + REQPARAMS= 1 + PRINT_P1= TO_BUFFER 3 +END_TYPE + +TYPE= COMMAND +NAME= \thanks + c= ( \thanks{text} --> <br><font size=-1>(text)</font><br> ) + START_TAG= "<br><font size=-1>(" + END_TAG= ")</font><br>" + REQPARAMS= 1 +END_TYPE + +TYPE= BEGIN_ENV +NAME= abstract + c= ( \begin{abstract} --> <h4>Abstract</h4> + c= <blockquote> ) + START_TAG= "<h4>Abstract</h4>?n<blockquote>?n" +END_TYPE + +TYPE= END_ENV +NAME= abstract + c= ( \end{abstract} --> </blockquote> ) + START_TAG= "</blockquote>?n" +END_TYPE + + c= ---------------------- tables + +TYPE= BEGIN_ENV +NAME= table + c= ( \begin{table}[opt] --> <center><table border> ) + START_TAG= "<center><table border>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + END_TAG= + SET_MODE: table +END_TYPE + +TYPE= END_ENV +NAME= table + c= ( \end{table} --> </table></center> ) + START_TAG= "</table></center>" + END_TAG= + RESET_MODE: +END_TYPE + +TYPE= BEGIN_ENV +NAME= tabular + c= ( \begin{tabular}{pream} --> <tr><td ) + START_TAG= "?n<tr><td" + RESET_BUFFER: 8 + RESET_BUFFER: 9 + REQPARAMS= 1 + PRINT_P1= NO_PRINT + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + END_TAG= "" + SET_MODE: tabular + PC_AT_END= TO_BUFFER 9 +END_TYPE + +TYPE= COMMAND +NAME= \multicolumn + c= ( \multicolumn{num}{pream} --> colspan=num ) + PC_AT_START= TO_BUFFER 8 + REQPARAMS= 2 + START_TAG_1= " colspan=" + PRINT_P2= NO_PRINT + PC_AT_END= RESET +END_TYPE + + c= ampersand (table column delimeter) +TYPE= TEX_CHAR +NAME= & + c= ( & --> BUFFER 8 > BUFFER 9 </td><td ) + PC_AT_START= RESET + START_TAG= "" + SOURCE: BUFFER 8 + STRING: "> " + RESET_BUFFER: 8 + SOURCE: BUFFER 9 + END_TAG= " </td><td " + RESET_BUFFER: 9 + PC_AT_END= TO_BUFFER 9 +IN_MODE= eqnarray + c= ( & --> </td><td nowrap> ) + START_TAG= "</td><td nowrap>" +END_MODE +END_TYPE + +TYPE= END_ENV +NAME= tabular + c= ( \end{tabular} --> > ) + PC_AT_START= RESET + START_TAG= ">" + RESET_BUFFER: 8 + RESET_BUFFER: 9 + RESET_MODE: +END_TYPE + + c= -------------------------------- EQNARRYs (a simple "table" format) + +TYPE= BEGIN_ENV +NAME= eqnarray + c= ( \begin{eqnarray} --> <center><table> + c= <tr align=center><td nowrap> ) + START_TAG= "?n<center><table>?n<tr align=center><td nowrap>" + SET_MODE: eqnarray +END_TYPE + +TYPE= BEGIN_ENV +NAME= eqnarray* + c= as for eqnarray + START_TAG= "?n<center><table>?n<tr align=center><td nowrap>" + SET_MODE: eqnarray +END_TYPE + +TYPE= END_ENV +NAME= eqnarray + c= ( \end{eqnarray} --> </table></center> ) + START_TAG= "</table></center>" + RESET_MODE: +END_TYPE + +TYPE= END_ENV +NAME= eqnarray* + c= as for eqnarray* + START_TAG= "</table></center>" + RESET_MODE: +END_TYPE + +TYPE= BEGIN_ENV +NAME= figure + c= ( \begin{figure}[opt] --> <h4 align=center>FIGURE</h4> ) + START_TAG= "?n<h4 align=center>FIGURE</h4>?n" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + END_TAG= + SET_MODE: figure +END_TYPE + +TYPE= END_ENV +NAME= figure + c= ( \end{figure} --> <h5 align=center>Figures ... available!</h5> ) + START_TAG= "?n" + STRING: "<h5 align=center>Figures are not yet available!</h5>" + END_TAG= + RESET_MODE: +END_TYPE + +TYPE= COMMAND +NAME= \centering +END_TYPE + +TYPE= BEGIN_ENV +NAME= center + START_TAG= "?n" +END_TYPE + +TYPE= END_ENV +NAME= center + START_TAG= "?n" +END_TYPE + +TYPE= COMMAND +NAME= \caption + c= ( \caption[opt]{text} --> <caption>text</caption> ) + START_TAG= "<caption>" + END_TAG= "</caption>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 +END_TYPE + + c= --------------------------- lists +TYPE= BEGIN_LIST_ENV +NAME= itemize + c= ( \begin{itemize} --> <ul> ) + c= ( \item --> <li> ) + START_TAG= "<ul>?n" + START_ITEM= "?n <li> " +END_TYPE + +TYPE= END_LIST_ENV +NAME= itemize + c= ( \end{itemize} --> </ul> ) + START_TAG= "</ul>?n" +END_TYPE + +TYPE= BEGIN_LIST_ENV +NAME= enumerate + c= ( \begin{enumerate} --> <ol> ) + c= ( \item --> <li> ) + START_TAG= "<ol>?n" + START_ITEM= "?n <li> " +END_TYPE + +TYPE= END_LIST_ENV +NAME= enumerate + c= ( \end{enumerate} --> </ol> ) + START_TAG= "</ol>?n" +END_TYPE + +TYPE= BEGIN_LIST_ENV +NAME= description + c= ( \begin{description} --> <dl> ) + c= ( \item[text] --> <dt>text + c= <dd> ) + START_TAG= "<dl>" + START_ITEM= "<dt>" + END_ITEM_PARAM= "?n<dd>" +END_TYPE + +TYPE= END_LIST_ENV +NAME= description + c= ( \end{description} --> </dl> ) + START_TAG= "</dl>" +END_TYPE + + c= fake some \dots commands +TYPE= COMMAND +NAME= \ldots + START_TAG= "..." +END_TYPE + +TYPE= COMMAND +NAME= \cdots + START_TAG= "..." +END_TYPE + +TYPE= COMMAND +NAME= \vdots + START_TAG= ":" +END_TYPE + + + c= replace footnote with parenthesised text +TYPE= COMMAND +NAME= \footnote + c= ( \footnote[opt]{text} --> (Footnote: text) ) + START_TAG= " (Footnote: " + END_TAG= ") " + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 +END_TYPE + + + c= -------------------------- quotations +TYPE= BEGIN_ENV +NAME= quote + c= ( \begin{quote} --> <blockquote> ) + START_TAG= "<blockquote>" +END_TYPE + +TYPE= END_ENV +NAME= quote + c= ( \end{quote} --> </blockquote> ) + START_TAG= "</blockquote>" +END_TYPE + +TYPE= BEGIN_ENV +NAME= quotation + c= as per quote + START_TAG= "<blockquote>" +END_TYPE + +TYPE= END_ENV +NAME= quotation + c= as per quote + START_TAG= "</blockquote>" +END_TYPE + + + +TYPE= COMMAND +NAME= \TeX + START_TAG= "TeX" +END_TYPE + +TYPE= COMMAND +NAME= \LaTeX + START_TAG= "LaTeX" +END_TYPE + + c= --------------------------- Picture commands + c= throw all their contents away + +TYPE= BEGIN_PICTURE_CC +NAME= picture + PC_AT_START= NO_PRINT + PRINT_P1= NO_PRINT + PRINT_P2= NO_PRINT +END_TYPE + +TYPE= PICTURE_CP +NAME= \put + PRINT_P1= NO_PRINT + PRINT_P2= NO_PRINT +END_TYPE + +TYPE= PICTURE_CCPP +NAME= \multiput + PRINT_P1= NO_PRINT + PRINT_P2= NO_PRINT + PRINT_P3= NO_PRINT + PRINT_P4= NO_PRINT +END_TYPE + +TYPE= PICTURE_PCOP +NAME= \savebox + PRINT_P1= NO_PRINT + PRINT_P2= NO_PRINT + PRINT_P3= NO_PRINT + PRINT_P4= NO_PRINT +END_TYPE + +TYPE= PICTURE_OCC +NAME= \graphpaper + PRINT_P1= NO_PRINT + PRINT_P2= NO_PRINT + PRINT_P3= NO_PRINT +END_TYPE + +TYPE= PICTURE_OCCC +NAME= \qbezier + PRINT_P1= NO_PRINT + PRINT_P2= NO_PRINT + PRINT_P3= NO_PRINT + PRINT_P4= NO_PRINT +END_TYPE + +TYPE= END_PICTURE +NAME= picture + PC_AT_END= RESET +END_TYPE + + + c= -------------------------- sectioning (keep headers only) + +TYPE= SECTIONING +NAME= \part + c= ( \part[opt]{text} --> <h1>text</h1> ) + SECTIONING_LEVEL= PART + START_TAG= "<h1>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h1>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \chapter + c= similar to part + SECTIONING_LEVEL= CHAPTER + START_TAG= "<h2>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h2>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \section + c= similar to part + SECTIONING_LEVEL= SECT + START_TAG= "<h2>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h2>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \subsection + c= similar to part + SECTIONING_LEVEL= SUBSECT + START_TAG= "<h3>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h3>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \subsubsection + c= similar to part + SECTIONING_LEVEL= SUBSUBSECT + START_TAG= "<h4>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h4>" +END_TYPE + +TYPE= SECTIONING +NAME= \paragraph + c= similar to part + SECTIONING_LEVEL= PARA + START_TAG= "<h5>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h5>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \subparagraph + c= similar to part + SECTIONING_LEVEL= SUBPARA + START_TAG= "<h6>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h6>?n" +END_TYPE + + +TYPE= SECTIONING +NAME= \part* + c= similar to part + SECTIONING_LEVEL= PART + START_TAG= "<h1>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h1>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \chapter* + c= similar to part + SECTIONING_LEVEL= CHAPTER + START_TAG= "<h2>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h2>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \section* + c= similar to part + SECTIONING_LEVEL= SECT + START_TAG= "<h2>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h2>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \subsection* + c= similar to part + SECTIONING_LEVEL= SUBSECT + START_TAG= "<h3>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h3>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \subsubsection* + c= similar to part + SECTIONING_LEVEL= SUBSUBSECT + START_TAG= "<h4>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h4>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \paragraph* + c= similar to part + SECTIONING_LEVEL= PARA + START_TAG= "<h5>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h5>?n" +END_TYPE + +TYPE= SECTIONING +NAME= \subparagraph* + c= similar to part + SECTIONING_LEVEL= SUBPARA + START_TAG= "<h6>" + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT + REQPARAMS= 1 + END_TAG_1= "</h6>?n" +END_TYPE + +TYPE= COMMAND +NAME= \appendix + c= ( \appendix --> <h2>APPENDICES</h2> ) + START_TAG= "?n<h2>APPENDICES</h2>?n" +END_TYPE + + c= --------------------------------- misc stuff + +TYPE= COMMAND +NAME= \quad + START_TAG= " " +END_TYPE + +TYPE= COMMAND +NAME= \tableofcontents +END_TYPE + +TYPE= COMMAND +NAME= \listoffigures +END_TYPE + +TYPE= COMMAND +NAME= \listoftables +END_TYPE + +TYPE= COMMAND +NAME= \clearpage +END_TYPE + +TYPE= COMMAND +NAME= \pagenumbering + REQPARAMS= 1 + PRINT_P1= NO_PRINT +END_TYPE + +TYPE= COMMAND +NAME= \bibliographystyle + REQPARAMS= 1 + PRINT_P1= NO_PRINT +END_TYPE + +TYPE= COMMAND +NAME= \bibliography + REQPARAMS= 1 + PRINT_P1= NO_PRINT +END_TYPE + + c= --------------------------------- special characters LaTeX -> HTML + +TYPE= TEX_CHAR +NAME= < + c= ( < --> < ) + START_TAG= "<" +END_TYPE + +TYPE= TEX_CHAR +NAME= > + c= ( > --> > ) + START_TAG= ">" +END_TYPE + +TYPE= COMMAND +NAME= \dag + START_TAG= "†" +END_TYPE + +TYPE= COMMAND +NAME= \ddag + START_TAG= "‡" +END_TYPE + +TYPE= COMMAND +NAME= \OE + START_TAG= "Œ" +END_TYPE + +TYPE= COMMAND +NAME= \oe + START_TAG= "œ" +END_TYPE + +TYPE= COMMAND +NAME= \pounds + START_TAG= "£" +END_TYPE + +TYPE= COMMAND +NAME= \S + START_TAG= "§" +END_TYPE + +TYPE= COMMAND +NAME= \copyright + START_TAG= "©" +END_TYPE + +TYPE= COMMAND +NAME= \neg + START_TAG= "¬" +END_TYPE + +TYPE= COMMAND +NAME= \pm + START_TAG= "±" +END_TYPE + +TYPE= COMMAND +NAME= \mu + START_TAG= "µ" +END_TYPE + +TYPE= COMMAND +NAME= \P + START_TAG= "¶" +END_TYPE + +TYPE= COMMAND +NAME= \AA + START_TAG= "Å" +END_TYPE + +TYPE= COMMAND +NAME= \AE + START_TAG= "Æ" +END_TYPE + +TYPE= COMMAND +NAME= \times + START_TAG= "×" +END_TYPE + +TYPE= COMMAND +NAME= \O + START_TAG= "Ø" +END_TYPE + +TYPE= COMMAND +NAME= \ss + START_TAG= "ß" +END_TYPE + +TYPE= COMMAND +NAME= \aa + START_TAG= "å" +END_TYPE + +TYPE= COMMAND +NAME= \ae + START_TAG= "æ" +END_TYPE + +TYPE= COMMAND +NAME= \div + START_TAG= "÷" +END_TYPE + +TYPE= COMMAND +NAME= \o + START_TAG= "ø" +END_TYPE + + + c= ---------------------------- some math commands + +TYPE= COMMAND +NAME= \mathcal + c= ( \mathcal{text} --> <i>text</i> ) + REQPARAMS= 1 + START_TAG_1= "<i>" + END_TAG_1= "</i>" +END_TYPE + +TYPE= COMMAND +NAME= \leq + START_TAG= " <= " +END_TYPE + +TYPE= COMMAND +NAME= \geq + START_TAG= " >= " +END_TYPE + +TYPE= COMMAND +NAME= \neq + START_TAG= " /= " +END_TYPE + +TYPE= COMMAND +NAME= \subseteq + START_TAG= " <= " +END_TYPE + +TYPE= COMMAND +NAME= \subset + START_TAG= " < " +END_TYPE + +TYPE= COMMAND +NAME= \supseteq + START_TAG= " >= " +END_TYPE + +TYPE= COMMAND +NAME= \supset + START_TAG= " > " +END_TYPE + +TYPE= COMMAND +NAME= \cap + START_TAG= " * " +END_TYPE + +TYPE= COMMAND +NAME= \cup + START_TAG= " + " +END_TYPE + +TYPE= COMMAND +NAME= \in + START_TAG= " <i>in</i> " +END_TYPE + +TYPE= COMMAND +NAME= \emptyset + START_TAG= "Ø" +END_TYPE + +TYPE= COMMAND +NAME= \forall + START_TAG= " <i>forall</i> " +END_TYPE + +TYPE= COMMAND +NAME= \Rightarrow + START_TAG= " => " +END_TYPE + + c= ----------------------------- font changes + +TYPE= COMMAND +NAME= \texttt + c= ( \texttt{text} --> <tt>text</tt> ) + START_TAG= "<tt>" + END_TAG= "</tt>" + REQPARAMS= 1 +END_TYPE + +TYPE= COMMAND +NAME= \emph + START_TAG= "<em>" + END_TAG= "</em>" + REQPARAMS= 1 +END_TYPE + +TYPE= COMMAND +NAME= \textit + START_TAG= "<i>" + END_TAG= "</i>" + REQPARAMS= 1 +END_TYPE + +TYPE= COMMAND +NAME= \textbf + START_TAG= "<b>" + END_TAG= "</b>" + REQPARAMS= 1 +END_TYPE + +TYPE= COMMAND +NAME= \textsl + START_TAG= "<i>" + END_TAG= "</i>" + REQPARAMS= 1 +END_TYPE + + + + + + c= ------------------------------ bibliography and ref commands + +TYPE= BEGIN_ENV +NAME= thebibliography + c= ( \begin{thebibliography}{text} --> <h2>REFERENCES</h2> + c= <dl> + c= ) + START_TAG= "<h2>REFERENCES</h2>?n<dl>?n" + REQPARAMS= 1 + PRINT_P1= NO_PRINT +END_TYPE + +TYPE= END_ENV +NAME= thebibliography + c= ( \end{thebibliography} --> </dl> + START_TAG= "</dl>?n" +END_TYPE + +TYPE= COMMAND +NAME= \bibitem + c= ( \bibitem[opt]{text} --> [<a name="text">text</a>]<dd> ) + START_TAG= "?n<dt>" + REQPARAMS= 1 + PRINT_P1= TO_BUFFER 1 + END_TAG_1= "[<a name="" + SOURCE: BUFFER 1 + STRING: "">" + SOURCE: BUFFER 1 + STRING: "</a>]<dd> " + OPT_PARAM= FIRST + PRINT_OPT= NO_PRINT +END_TYPE + +TYPE= COMMAND +NAME= \newblock +END_TYPE + +TYPE= COMMAND +NAME= \cite + c= ( \cite[opt]{text} --> opt[<a href="#text">text</a>] ) + REQPARAMS= 1 + PRINT_P1= TO_BUFFER 1 + END_TAG= "[<a href="#" + SOURCE: BUFFER 1 + STRING: "">" + SOURCE: BUFFER 1 + STRING: "</a>]" + OPT_PARAM= FIRST + END_OPT= "" +END_TYPE + +TYPE= COMMAND +NAME= \label + c= ( \label{text} --> <a name="text"></a> ) + REQPARAMS= 1 + PRINT_P1= TO_BUFFER 6 + END_TAG= "<a name="" + SOURCE: BUFFER 6 + STRING: "">" + STRING: "</a>" +IN_MODE= table + c= ( \label{text} --> <a name="text">(Table text)</a> ) + REQPARAMS= 1 + PRINT_P1= TO_BUFFER 6 + END_TAG= "<a name="" + SOURCE: BUFFER 6 + STRING: "">" + STRING: "(Table " + SOURCE: BUFFER 6 + STRING: ")" + STRING: "</a>" +END_MODE +IN_MODE= figure + c= ( \label{text} --> <a name="text">(Figure text)</a> ) + REQPARAMS= 1 + PRINT_P1= TO_BUFFER 6 + END_TAG= "<a name="" + SOURCE: BUFFER 6 + STRING: "">" + STRING: "(Figure " + SOURCE: BUFFER 6 + STRING: ")" + STRING: "</a>" +END_MODE +END_TYPE + +TYPE= COMMAND +NAME= \ref + c= ( \ref{text} --> <a href="#text">text</a> ) + REQPARAMS= 1 + PRINT_P1= TO_BUFFER 6 + END_TAG= "<a href="#" + SOURCE: BUFFER 6 + STRING: "">" + SOURCE: BUFFER 6 + STRING: "</a>" +END_TYPE + + c= ----------------------------- for the url package + +TYPE= VCOMMAND +NAME= \url + c= ( \url{text} --> <a href="text">text</a> ) + REQPARAMS= 1 + PRINT_P1= TO_BUFFER 7 + START_TAG= "" + RESET_BUFFER: 7 + END_TAG= "<a href="" + SOURCE: BUFFER 7 + STRING: "">" + SOURCE: BUFFER 7 + STRING: "</a>" + RESET_BUFFER: 7 +END_TYPE + + c= ----------------------------- commands from html.sty (as best I understand) + c= (normally used with program latex2html) + +TYPE= COMMAND +NAME= \htmladdnormallinkfoot + REQPARAMS= 2 + c= first argument is html highlighted text + c= second argument is a corresponding URL to be put in a LaTeX footnote + c= (e.g., newcommand{\htmladdnormallinkfoot}[2]{#1\footnote{#2}} ) + c= ( \htmladdnormallinkfoot{first}{second} --> <a href="second">first</a> ) + START_TAG= + RESET_BUFFER: 4 + RESET_BUFFER: 5 + PRINT_P1= TO_BUFFER 4 + PRINT_P2= TO_BUFFER 5 + END_TAG= "<a href="" + SOURCE: BUFFER 5 + STRING: "">" + SOURCE: BUFFER 4 + STRING: "</a>" +END_TYPE + +TYPE= COMMAND +NAME= \htmladdnormallink + REQPARAMS= 2 + c= first argument is html highlighted text + c= second argument is a LaTeX ignored URL not to be put in a LaTeX footnote + c= (e.g., newcommand{\htmladdnormallink}[2]{#1} ) + c= ( \htmladdnormallink{first}{second} --> <a href="second">first</a> ) + START_TAG= + RESET_BUFFER: 4 + RESET_BUFFER: 5 + PRINT_P1= TO_BUFFER 4 + PRINT_P2= TO_BUFFER 5 + END_TAG= "<a href="" + SOURCE: BUFFER 5 + STRING: "">" + SOURCE: BUFFER 4 + STRING: "</a>" +END_TYPE + +TYPE= COMMAND +NAME= \htmladdimg + REQPARAMS= 1 + c= argument is URL pointing to an image for embedding in HTML doc + c= ( \htmladdimg{first} --> <img src="first"> ) + START_TAG= "<img src="" + END_TAG= "">" +END_TYPE + +TYPE= COMMAND +NAME= \externallabels + REQPARAMS= 2 + c= first arg is URL to directory containing external document + c= second arg is the path to the labels.pl file of the external document + c= (e.g., newcommand{\externallabels}[2]{} ) +END_TYPE + +TYPE= COMMAND +NAME= \externalref + REQPARAMS= 1 + c= first arg is a label defined in an external document. + c= (e.g., newcommand{\externalref}[1]{} ) + c= ( \externalref{first} --> <a href="first"></a> + START_TAG= "<a href="" + END_TAG= ""></a>" +END_TYPE + +TYPE= COMMAND +NAME= \htmlrule + c= adds a horizontal rule + c= ( \htmlrule --> <hr> ) + START_TAG= "<hr>" +END_TYPE + +TYPE= BEGIN_VENV +NAME= rawhtml + c= html stuff only --- to be ignored by LaTeX +END_TYPE + +TYPE= END_VENV +NAME= rawhtml +END_TYPE + +TYPE= BEGIN_VENV +NAME= htmlonly + c= processed body appears in HTML output but ignored by LaTeX +END_TYPE + +TYPE= END_VENV +NAME= htmlonly +END_TYPE + +TYPE= VCOMMAND +NAME= \html + REQPARAMS= 1 + c= Short version of htmlonly environment. + c= First argument is ignored by LaTeX (e.g. \newcommand{\html}[1]{}. +END_TYPE + +TYPE= BEGIN_VENV +NAME= latexonly + c= body appears only in LaTeX output + PC_AT_END= NO_PRINT +END_TYPE + +TYPE= END_VENV +NAME= latexonly + PC_AT_START= RESET +END_TYPE + +TYPE= COMMAND +NAME= \latex + REQPARAMS= 1 + c= command version of latexonly environment (e.g., \newcommand{\latex}[1]{#1}) + PRINT_P1= NO_PRINT +END_TYPE + +TYPE= COMMAND +NAME= \hyperref + REQPARAMS= 4 + c= first arg is text for HTML hyperizing (underlined) + c= second arg and third args are text for LaTeXing only + c= fourth arg is name of a label (\ref{#4}) appears as #2\ref{#4}#3 + c= ( e.g., newcommand{\hyperref}[4]{#2\ref{#4}#3} ) + c= ( \hyperref{first}{second}{third}{fourth} --> <a href="fourth">first</a> ) + START_TAG= + RESET_BUFFER: 4 + RESET_BUFFER: 5 + PRINT_P1= TO_BUFFER 4 + PRINT_P2= NO_PRINT + PRINT_P3= NO_PRINT + PRINT_P4= TO_BUFFER 5 + END_TAG= "<a href="" + SOURCE: BUFFER 5 + STRING: "">" + SOURCE: BUFFER 4 + STRING: "</a>" +END_TYPE + +TYPE= COMMAND +NAME= \htmlref + REQPARAMS= 2 + c= mix between \htmladdnormallink and \hyperref + c= first arg is text for both LaTeX and HTML + c= second arg is label for use in HTML only + c= ( e.g., \newcommand{\htmlref}[2]{#1} ) + c= ( \htmlref{first}{second} --> <a href="second">first</a> ) + START_TAG= + RESET_BUFFER: 4 + RESET_BUFFER: 5 + PRINT_P1= TO_BUFFER 4 + PRINT_P2= TO_BUFFER 5 + END_TAG= "<a href="" + SOURCE: BUFFER 5 + STRING: "">" + SOURCE: BUFFER 4 + STRING: "</a>" +END_TYPE + +TYPE= COMMAND +NAME= \htmlimage + REQPARAMS= 1 + c= (e.g., newcommand{\htmlimage}[1]{} ) + PRINT_P1= NO_PRINT +END_TYPE + +TYPE= COMMAND +NAME= \htmladdtonavigation + REQPARAMS= 1 + c= (e.g., newcommand{\htmladdtonavigation}[1]{} ) + PRINT_P1= NO_PRINT +END_TYPE + + c= ------------------------- stuff for hyper package (as best I understand) + +TYPE= COMMAND +NAME= \hyperanchor + REQPARAMS= 2 + c= first arg is the hypertext anchor for #2 + c= second arg + c= (e.g., newcommand{\hyperanchor}[2]{#2} ) + c= ( \hyperanchor{first}{second} --> <a name ="first">second</a> ) + START_TAG_1= "<a name="" + END_TAG_1= "">" + END_TAG= "</a>" +END_TYPE + +TYPE= COMMAND +NAME= \blindhyperanchor + REQPARAMS= 1 + c= first arg a hypertext anchor + c= (e.g., newcommand{\blindhyperanchor}[1]{} ) + c= ( \blindhyperanchor{first} --> <a name="first"></a> ) + START_TAG_1= "<a name="" + END_TAG= ""></a>" +END_TYPE + +TYPE= COMMAND +NAME= \hyperreference + REQPARAMS= 2 + c= first arg an anchor + c= second arg a reference to anchor #1 + c= ( newcommand{\hyperreference}[2]{#2} ) + c= ( \hyperreference{first}{second} --> <a href="#first">second</a> ) + START_TAG_1= "<a href="#" + END_TAG_1= "">" + END_TAG= "</a>" +END_TYPE + +TYPE= COMMAND +NAME= \hyperURL + REQPARAMS= 4 + c= first arg URL type + c= second arg URL domain + c= third arg URL document + c= fourth arg is reference to URL #1://#2/#3 + c= ( newcommand{\hyperURL}[4]{#4} ) + c= ( \hyperURL{first}{second}{third}{fourth} --> <a href="first://second/third">fourth</a> ) + START_TAG_1= "<a href="" + START_TAG_2= "://" + START_TAG_3= "/" + START_TAG_4= "">" + END_TAG= "</a>" +END_TYPE + +TYPE= COMMAND +NAME= \labeltext + REQPARAMS= 2 + c= first arg reference to text #2 + c= second arg #2 is printed + c= ( newcommand{\labeltext}[2]{#2} ) + c= ( \labeltext{first}{second} --> <a name="N">second</a> ) +END_TYPE + +TYPE= COMMAND +NAME= \noref + OPT_PARAM= FIRST + REQPARAMS= 1 + c= first arg hypertext ref to anchor #2 (optional arg is NOT optional) + c= second arg +END_TYPE + +TYPE= COMMAND + c= This clashes with "normal" \ref command, so changed name + c= NAME= \ref +NAME= \Href + OPT_PARAM= FIRST + REQPARAMS= 1 + c= like LaTeX #1~\ref{#2} except that hypertext ref is provided from both args + c= ( \ref[opt]{first} --> ?????? ) +END_TYPE + +TYPE= COMMAND +NAME= \pageref + OPT_PARAM= FIRST + REQPARAMS= 1 + c= like \ref, except for page number ref + c= ( \pageref[opt]{first} --> ??????? ) +END_TYPE + +TYPE= COMMAND +NAME= \refcurrent + REQPARAMS= 1 + c= first arg hypertext ref to actual anchor + c= ( \refcurrent{first} --> ??????? ) +END_TYPE + +TYPE= COMMAND +NAME= \refnext + REQPARAMS= 1 + c= first arg hypertext ref to the next anchor that will be generated + c= ( \refnext{first} --> ??????? ) +END_TYPE + + c= ------------------- stuff for hyperref package (as best I understand) + +TYPE= COMMAND +NAME= \hyperlink + REQPARAMS= 2 + c= \hyperlink{linkname}{text} + c= ( newcommand{\hyperlink}[2]{#2} ) + c= ( \hyperlink{first}{second} --> <a href="#first">second</a> ) + START_TAG_1= "<a href="#" + END_TAG_1= "">" + END_TAG= "</a>" +END_TYPE + +TYPE= COMMAND +NAME= \hypertarget + REQPARAMS= 2 + c= \hypertarget{anchorname}{text} + c= ( newcommand{\hypertarget}[2]{#2} ) + c= ( \hypertarget{first}{second} --> <a name="first"></a>second ) + START_TAG_1= "<a name="" + END_TAG_1= ""></a>" +END_TYPE + +TYPE= COMMAND +NAME= \href + REQPARAMS= 2 + c= \href{URL}{anchor} + c= ( newcommand{\href}[2]{#2} ) + c= ( \href{first}{second} --> <a href="first">second</a> ) + START_TAG_1= "<a href="" + END_TAG_1= "">" + END_TAG= "</a>" +END_TYPE + +TYPE= COMMAND +NAME= \hyperimage + REQPARAMS= 1 + c= \hyperimage{imageURL} + c= points to a graphic + c= ( newcommand{\hyperimage}[1]{} ) + c= ( \hyperimage{first} --><img src="first"> ) + START_TAG= "<img src="" + END_TAG= "">" +END_TYPE + +TYPE= COMMAND +NAME= \hyperdef + REQPARAMS= 4 + OPT_PARAM= FIRST + c= \hyperdef[label]{URL}{category}{name}{text} + c= ( newcommand{\hyperdef}[4]{#4} + c= ( \hyperdef[opt]{first}{second}{third}{fourth} --> <a name="firstsecond.third"></a>fourth ) + START_TAG= "<a name="" + START_TAG_3= "." + START_TAG_4= ""></a>" +END_TYPE + +TYPE= COMMAND +NAME= \hyperref + REQPARAMS= 4 + c= \hyperref{URL}{category}{name}{anchor} + c= \hyperref[label]{anchor} + c= ( newcommand{\hyperref}[4]{#4} ) + c= ( \hyperref{first}{second}{third}{fourth} --> <a href="first#second.third">fourth</a> ) + START_TAG_1= "<a href="" + START_TAG_2= "#" + START_TAG_3= "." + START_TAG_4= "">" + END_TAG= "</a>" +END_TYPE + +TYPE= COMMAND +NAME= \htmladdimg + REQPARAMS= 1 + c= same as \hyperimage + START_TAG= "<img src="" + END_TAG= "">" +END_TYPE + +TYPE= COMMAND +NAME= \htmladdnormallink + REQPARAMS= 2 + c= same as \href + START_TAG_1= "<a href="" + END_TAG_1= "">" + END_TAG= "</a>" +END_TYPE + + + c= -------------------- commands for html-ing ltx2x.tex + c= could have been defined via an included file. e.g. + c= INCLUDE= html.l2x + +TYPE= BEGIN_ENV +NAME= htmlverbatim + START_TAG= "?n<pre>" +END_TYPE + +TYPE= END_ENV +NAME= htmlverbatim + END_TAG= "</pre>?n" +END_TYPE + +TYPE= COMMAND +NAME= \lx + START_TAG= "LTX2X" +END_TYPE + +TYPE= COMMAND +NAME= \ctab + START_TAG= "command table" +END_TYPE + +TYPE= COMMAND +NAME= \keyword + c= ( \keyword{first} --> <samp>first</samp> ) + START_TAG= "<samp>" + END_TAG= "</samp>" + REQPARAMS= 1 +END_TYPE + +TYPE= COMMAND +NAME= \keytext + c= ( \keytext{first} --> <samp>first</samp> ) + START_TAG= "<samp>" + END_TAG= "</samp>" + REQPARAMS= 1 +END_TYPE + +TYPE= COMMAND +NAME= \file + c= ( \file{first} --> <tt>first</tt> ) + START_TAG= "<tt>" + END_TAG= "</tt>" + REQPARAMS= 1 +END_TYPE + +TYPE= COMMAND +NAME= \ST + c= ( \ST{first} --> <first> ) + START_TAG= "<" + END_TAG= ">" + REQPARAMS= 1 +END_TYPE + +TYPE= COMMAND +NAME= \ET + c= ( \ET{first} --> </first> ) + START_TAG= "</" + END_TAG= ">" + REQPARAMS= 1 +END_TYPE + +TYPE= COMMAND +NAME= \Amp + START_TAG= "&" +END_TYPE + +TYPE= COMMAND +NAME= \LT + START_TAG= "<" +END_TYPE + +TYPE= COMMAND +NAME= \GT + START_TAG= ">" +END_TYPE + +TYPE= COMMAND +NAME= \HASH + START_TAG= "#" +END_TYPE + +TYPE= COMMAND +NAME= \Express + START_TAG= "EXPRESS" +END_TYPE + +TYPE= COMMAND +NAME= \ExpressA + START_TAG= "EXPRESS-A" +END_TYPE + +TYPE= COMMAND +NAME= \ExpressG + START_TAG= "EXPRESS-G" +END_TYPE + +TYPE= COMMAND +NAME= \ExpressI + START_TAG= "EXPRESS-I" +END_TYPE + + + + c= ------------------- include extra ct files here + + c= this will give an opportunity to interactively include a + c= ct file, assuming that ZiLcH.ct is not on the search path. +INCLUDE= ZiLcH.ct + + + +END_CTFILE= --------------------- end of l2h.ct + + |