The LaTeX2HTML Translator    Drakos/Moore 

previous up next To: Asking the Translator to Pass Commands to LATEX index contents


Asking the Translator to Ignore Commands

Commands that should be ignored may be specified in the .latex2html-init file as input to the &ignore_commands subroutine. Each command which is to be ignored should be on a separate line followed by compulsory or optional argument markers separated by #'s e.g.16:
<cmd_name1> # {} # [] # {} # [] ...
<cmd_name2> # «pattern» # [] ...
{}'s mark compulsory arguments and []'s optional ones, while «pattern» denotes matching everything up to the indicated string-pattern, given literally (e.g. \\endarray); spaces are ignored. Special characters such as $, &, \ itself and perhaps some others, need to be ``escaped'' with a preceding \.


Some commands may have arguments which should be left as text even though the command should be ignored (e.g. \hbox, \center, etc.). In these cases arguments should be left unspecified. Here is an example of how this mechanism may be used:

&ignore_commands( <<_IGNORED_CMDS_);
documentstyle # [] # {}
linebreak # []
mbox
<add your commands here>
_IGNORED_CMDS_



Footnotes

... e.g.16
It is possible to add arbitrary(?) Perl code between any of the argument markers which will be executed when the command is processed. For this however a basic understanding of how the translator works and of course Perl is required.

previous up next To: Asking the Translator to Pass Commands to LATEX index contents

 Ross Moore 1991-03-26    Processed by LaTeX2HTML-FU