@c rhidemac.htm: -*- Texinfo -*- @c ------------------------------------------------------------------------- @c @c Macros for making RHIDE documentation in HTML format. @c @c Author: Robert H”hne (robert.hoehne@gmx.net) @c November 1996. @c @c Derived from 'faqmacros.txi', which is part of DJGPP FAQ written @c by Eli Eli Zaretskii (eliz@is.elta.co.il) @c @c Many ideas taken from files `multifmt.texi' and html.texi' @c written by Brian J. Fox and distributed with GNU Texinfo archive: @c @c Author: Brian J. Fox (bfox@ua.com) Sun Apr 2 07:56:23 1995. @c @c ------------------------------------------------------------------------- @c @c This creates a standard HTML prolog. @c @macro html



@end macro @c @c TITLEs for HTML @c @macro htmltitle{line} @* @w{ \line\ }@* @* @* @w{

\line\

}@* @end macro @macro htmlsubtitle{line} @w{

\line\

}@* @end macro @macro htmlauthor{line} @w{
\line\
}@* @end macro @c @c When making HTML output, @bye does some cleanup. @c @macro bye @* @* @bye @end macro @c @c @anchor{Brian Fox, http://www.ua.com/users/bfox/} @c @macro anchor{text, link} @w{\text\} @end macro @macro TeX TeX @end macro @macro paragraph{}

@end macro @c @c @mail{Eli Zaretskii, eliz@@is.elta.co.il} @c @macro mail{name, address} @w{\name\} @end macro @c @c @ftp{SimTel, ftp.coast.net/SimTel/vendors/djgpp/} @c @macro ftp{desc, path} @w{\desc\} @end macro @c @c @ftpdir{ftp.coast.net, /SimTel/vendors/djgpp} @c @macro ftpdir{host, dir} @w{\host\} @end macro @c @c ftpusr{riceng.rice.edu, login: ezgcc, passwd: ezgcc} @c @macro ftpusr{desc, host, login, passwd} @w{\desc\} @end macro @c @c @www{DJGPP server, www.delorie.com/djgpp/} @c @macro www{desc, path} @w{\desc\.} @end macro @c @c @gopher{SimTel, ftp.coast.net/SimTel/vendors/djgpp/} @c @macro gopher{desc, path} @w{\desc\} @end macro @c @c @news{comp.os.msdos.djgpp} @c @macro news{name} @w{\name\} @end macro @c @c Redefine the TeXinfo commands which have direct HTML counterparts. @c @macro html-define-0arg{command, html-insertion} @macro \command\ @w{\html-insertion\} @end macro @end macro @macro html-define-1arg{command, html-insertion} @macro \command\{arg} @quote-arg @w{\html-insertion\} @end macro @end macro @macro html-define-line{command, html-insertion} @macro \command\{line} @w{\html-insertion\} @end macro @end macro @macro asis{arg} \arg\ @end macro @c @c Various lists (@table, @itemize, @enumerate) @c @ignore @macro table{flavor}

@* @end macro @macro end_table @*
@* @end macro @macro titem{line} @*
\line\@*
@end macro @macro titemx{line}
\line\@* @end macro @macro titeml{line}
\line\@*
@end macro @end ignore @c I'm using now the table environment of HTML @c Do not nest the table environment @macro table{table_format} @macro _table_format{arg} \table_format\{\arg\} @end macro @end macro @macro titem{line}
@_table_format{\line\} @end macro @macro titemx{line} @titem \line\ @end macro @macro end_table
@unmacro _table_format @end macro @macro itemize{style} @* @* @end macro @macro enumerate{style} @*
    @* @end macro @macro end_enumerate @*
@* @end macro @c @c Preformatted stuff (@example, @display, @smallexample, @quotation) @c @macro format @exdent
@*
@format
@end macro
@macro end_format
@end format
@exdent 
@* @* @end macro @macro display @exdent
@*
@display
@end macro
@macro example
@exdent 
@*
@example
@end macro
@macro smallexample
@exdent 
@*
@smallexample
@end macro
@macro quotation
@exdent 
@* @quotation @end macro @macro end_example @end example @exdent
@* @* @end macro @macro end_smallexample @end smallexample @exdent
@* @* @end macro @macro end_display @end display @exdent
@* @* @end macro @macro end_quotation @end quotation @exdent @* @* @end macro @c @c Nodes, chapters, sections and menus @c @macro menu

@*

@* @end macro @macro mitem{node, rest}
  • @w{ \node\---\rest\ }@* @end macro @macro end_menu
  • @* @end macro @macro node{this, next, prev, up} @end macro @macro top{line}
    @*

    \line\

    @*

    @* @end macro @macro chapter{line}
    @*

    \line\

    @*

    @* @end macro @macro section{line} @*

    \line\

    @* @end macro @macro subsection{line} @*

    \line\

    @* @end macro @macro subsubsection{line} @*

    \line\

    @* @end macro @macro unnumbered{line} @chapter{\line\} @end macro @macro unnumberedsec{line} @section{\line\} @end macro @macro subsubheading{line} @subsubsection{\line\} @end macro @macro appendix{line} \line\

    @end macro @macro appendixsec{line} \line\

    @end macro @c @c Footnotes @ @macro footnote{stuff} @quote-arg

    Note: \stuff\

    @end macro @macro quest{stuff} @quote-arg @* Question: \stuff\

    @* @end macro @macro ans @* @exdent


    Answer: @end macro @c @c Cross-references @c @c NOTE: The internal cross-references only support 2-argument @c varieties of the Texinfo commands, and the external @c cross-reference only support 4-argument form! @macro ref{node, desc, title, file, doc} @set desc_seen @set doc_seen @ifeq{"\doc\", "", @clear doc_seen } @ifeq{"\desc\", "", @clear desc_seen } @ifset doc_seen @ifset desc_seen Sección \desc\ de \doc\ @end ifset @ifclear desc_seen Sección \node\ de \doc\ @end ifclear @end ifset @ifclear doc_seen @w{} @ifset desc_seen \desc\ @end ifset @ifclear desc_seen \node\ @end ifclear @end ifclear @end macro @macro xref{node, desc, title, file, doc} Véase @ref{\node\,\desc\,\title\,\file\,\doc\} @end macro @macro mxref{node, desc, title, file, doc} Véase @ref{\node\,\desc\,\title\,\file\,la documentación de \doc\} @end macro @macro pxref{node, desc, title, file, doc} véase @ref{\node\,\desc\,\title\,\file\,\doc\} @end macro @c @macro extref{node, desc, file, title, url} @c See @w{}the ``\node\'' section of the ``\title\'' @c @end macro @macro extref{node, desc, file, title, url} Véase @w{}la sección ``\node\'' de ``\title\'' @end macro @c @c ---------------- Common part ------------------------------------ @c @macro b{arg} \arg\ @end macro @macro code{arg} \arg\ @end macro @macro file{arg} \arg\ @end macro @macro emph{arg} \arg\ @end macro @macro strong{arg} \arg\ @end macro @macro kbd{arg} \arg\ @end macro @macro key{arg} \arg\ @end macro @c @macro key{arg} @c
    \arg\
    @c @end macro @macro samp{arg} \arg\ @end macro @macro var{arg} \arg\ @end macro @macro dfn{arg} \arg\ @end macro @macro i{arg} \arg\ @end macro @macro t{arg} \arg\ @end macro @macro sc{arg} \arg\ @end macro @macro copyright{} © @end macro