@c html.texi: -*- Texinfo -*- Macros which support HTML output. @c Copyright (c) 1995 Brian Fox (bfox@ai.mit.edu) @c Author: Brian J. Fox (bfox@ai.mit.edu) Sat Apr 1 20:30:54 1995. @c @c I didn't want to write this myself, because I wanted some HTML wizard @c to get everything exactly right. However, rms continues to believe @c that the macro system is not a good idea. I couldn't disagree more, @c so I am writing this as an example of how useful such macros can be. @macro html @set html @end macro @c @c The first step is to define the macros which really only have meaning @c when producing output for HTML. @c @c @anchor{Brian Fox, http://www.ua.com/users/bfox/} @c @macro anchor{text, link} @ifset html \text\ @end ifset @ifclear html \text\ @end ifclear @end macro @macro pre{} @ifset html
@end ifset
@end macro

@macro endpre{}
@ifset html
@end ifset @end macro @macro TeX @ifset html TeX @end ifset @ifclear html @TeX{} @end ifclear @end macro @macro paragraph{} @ifset html

@end ifset @end macro @c @c @email{bfox@@ai.mit.edu} @c @macro email{address} @anchor{mailto:\address\, \address\} @end macro @c @c Redefine the TeXinfo commands which have direct HTML counterparts. @c @macro html-define-0arg{command, html-insertion} @macro \command\ @ifset html \html-insertion\ @end ifset @ifclear html @\command\ @end ifclear @end macro @end macro @macro html-define-1arg{command, html-insertion} @macro \command\{arg} @ifset html \html-insertion\ @end ifset @ifclear html @\command\{\arg\} @end ifclear @end macro @end macro @macro html-define-line{command, html-insertion} @macro \command\{line} @ifset html \html-insertion\ @end ifset @ifclear html @\command\ \line\ @end ifclear @end macro @end macro @html-define-0arg{*,
} @html-define-1arg{b, \\arg\\} @html-define-1arg{code, \\arg\\} @html-define-line{itemize,

} @ifeq{"\\line\\"\, "enumerate"\, } @ifeq{"\\line\\"\, "table"\, } @ifeq{"\\line\\"\, "ftable"\, } @ifeq{"\\line\\"\, "vtable"\, } @ifeq{"\\line\\"\, "menu"\, xxx} @ifeq{"\\line\\"\, "quotation"\, } @ifeq{"\\line\\"\, "example"\, } @ifeq{"\\line\\"\, "smallexample"\, } @ifeq{"\\line\\"\, "lisp"\, } @ifeq{"\\line\\"\, "format"\, } @ifeq{"\\line\\"\, "display"\, } @ifeq{"\\line\\"\, "group"}}