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)

Go back to index of Yodl.

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

Please send comments on these web pages to (address unknown)

Copyright (c) 1997, 1998, 1999 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.18 by

Gwenole Beauchesne <(address unknown)>, Tue Apr 10 10:39:29 2001 CEST.