Similar to the LaTeX converter, you can use either NOTRANS or htmlcommand to send HTML commands to the output. Or, since the only `difficult' characters are probably only < and >, you can also resort to CHAR for these two characters. Furthermore, the HTML converter defines the macro htmltag, expecting two arguments: the tag to set, and an `on/off' switch. E.g., htmltag(b)(1) sets <b> while htmltag(b)(0) sets </b>. E.g., the following code sends a HTML command <hr> to the output file when in HTML mode:
COMMENT(-- alternative 1, using htmlcommand --)
htmlcommand(<hr>)

COMMENT(-- alternative 2, using NOTRANS --)
IFDEF(html)\ 
    (NOTRANS(<hr>))\ 
    ()

COMMENT(-- alternative 3, using CHAR --)
IFDEF(html)\ 
    (CHAR(<)hrCHAR(>))\ 
    ()
    
COMMENT(-- alternative 4, using htmltag --)
htmltag(hr)(1)

Return to Yodl's home page.

Please send Yodl questions and comments to yodl@icce.rug.nl.

Please send comments on these web pages to (address unknown), send other FSF & GNU inquiries and questions to gnu@gnu.org.

Copyright (c) 1998 Karel Kubat and Jan Nieuwenhuizen

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from Yodl-1.31.17 by

<(address unknown)>, at Thu May 4 11:39:03 2000 CEST.