@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 htmlstart

@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 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 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 Expanded by SDH because they contain the command itself. @c @macro format- @c @exdent

      @*
      @c  @format
      @c  @end macro
      @c  @macro end-format
      @c  @end format
      @c  @exdent

  @* @c @* @c @end macro @c @macro display- @c @exdent

      @*
      @c  @display
      @c  @end macro
      @c  @macro example-
      @c  @exdent @*
      @c  @example
      @c  @end macro
      @c  @macro smallexample-
      @c  @exdent @*
      @c  @smallexample
      @c  @end macro
      @c  @macro quotation-
      @c  @exdent @*
      @c  @quotation
      @c  @end macro
      @c  @macro end-example
      @c  @end example
      @c  @exdent @*
      @c  @*
      @c  @end macro
      @c  @macro end-smallexample
      @c  @end smallexample
      @c  @exdent @*
      @c  @*
      @c  @end macro
      @c  @macro end-display
      @c  @end display
      @c  @exdent

  @* @c @* @c @end macro @c @macro end-quotation @c @end quotation @c @exdent @* @c @* @c @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 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 il{arg} \arg\ @end macro @macro t{arg} `\arg\` @end macro @macro sc{arg} `\arg\` @end macro @macro copyright{} © @end macro