next up previous contents index
Next: Asking the Translator to LATEX Up: Extending the Translator Previous: Extending the Translator

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.3:
<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.3
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.


next up previous contents index
Next: Asking the Translator to LATEX Up: Extending the Translator Previous: Extending the Translator

Generated using the LaTeX2HTML
11/2/1997