@c rhidemac.htm: -*- Texinfo -*- @c ------------------------------------------------------------------------- @c @c Macros for making RHIDE documentation in HTML format. @c @c Author: Salvador Eduardo Tropea (salvador@inti.edu.ar), is a modified @c version of the one created by (July, 1997): @c @c Author: Robert H”hne (robert.hoehne@mathematik.tu-chemitz.de) @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{}@* @*
@* @w{

# \line\

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

## \line\

}@* @end macro @macro htmlauthor{line} @w{
}@* @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 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 item{line} @*
  - \line\ @end macro @macro end_itemize @*
  @* @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{visible, node}

  - @w{ \visible\ }@* @end macro @macro end_menu @* @end macro @macro node{this, next, prev, up} @end macro @macro node_start @top @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 Section \desc\ in \doc\ @end ifset @ifclear desc_seen Section \node\ in \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} See @ref{\node\,\desc\,\title\,\file\,\doc\} @end macro @macro mxref{node, desc, title, file, doc} see @ref{\node\,\desc\,\title\,\file\,documentation for \doc\} @end macro @macro pxref{node, desc, title, file, doc} see @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} See @w{}the ``\node\'' section of the ``\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 @macro aacute á @end macro @macro eacute é @end macro @macro iacute í @end macro @macro oacute ó @end macro @macro uacute ú @end macro @macro ntilde ñ @end macro @macro Ntilde Ñ @end macro @macro exclamdown ¡ @end macro @macro questiondown ¿ @end macro @macro auml ä @end macro @macro euml ë @end macro @macro iuml ï @end macro @macro ouml ö @end macro @macro uuml ü @end macro @macro Uuml Ü @end macro @macro agrave à @end macro @macro egrave è @end macro @macro igrave ì @end macro @macro ograve ò @end macro @macro ugrave ù @end macro @macro lessthan < @end macro @macro greaterthan > @end macro @macro _subheading{a}

    ### \a\

    @end macro @macro separatenode

    @end macro @macro table4{title1,title2,title3,title4}

    @*
    \title1\ | \title2\ | \title3\ | \title4\
    --- | --- | --- | ---
    @* @end macro @macro table3{title1,title2,title3}

    @*
    \title1\ | \title2\ | \title3\
    --- | --- | ---
    @* @end macro @macro titem4{NOM,COM,KEY,ALT}
    \NOM\ | \COM\ | \KEY\ | \ALT\
    @* @kindex \COM\ @key{\KEY\} @kindex \NOM\ @key{\KEY\} @end macro @macro titem3{NOM,COM,KEY}
    \NOM\ | \COM\ | \KEY\
    @* @kindex \COM\ @key{\KEY\} @kindex \NOM\ @key{\KEY\} @end macro @macro endtable4{}

    @end macro