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.47:
<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_


Ross Moore
1999-03-26