smh22@2882: % smh22@2882: % $Id: html.sty,v 1.23 1998/02/26 10:32:24 latex2html Exp $ smh22@2882: % LaTeX2HTML Version 96.2 : html.sty smh22@2882: % smh22@2882: % This file contains definitions of LaTeX commands which are smh22@2882: % processed in a special way by the translator. smh22@2882: % For example, there are commands for embedding external hypertext links, smh22@2882: % for cross-references between documents or for including raw HTML. smh22@2882: % This file includes the comments.sty file v2.0 by Victor Eijkhout smh22@2882: % In most cases these commands do nothing when processed by LaTeX. smh22@2882: % smh22@2882: % Place this file in a directory accessible to LaTeX (i.e., somewhere smh22@2882: % in the TEXINPUTS path.) smh22@2882: % smh22@2882: % NOTE: This file works with LaTeX 2.09 or (the newer) LaTeX2e. smh22@2882: % If you only have LaTeX 2.09, some complex LaTeX2HTML features smh22@2882: % like support for segmented documents are not available. smh22@2882: smh22@2882: % Changes: smh22@2882: % See the change log at end of file. smh22@2882: smh22@2882: smh22@2882: % Exit if the style file is already loaded smh22@2882: % (suggested by Lee Shombert smh22@2882: \ifx \htmlstyloaded\relax \endinput\else\let\htmlstyloaded\relax\fi smh22@2882: \makeatletter smh22@2882: smh22@2882: \providecommand{\latextohtml}{\LaTeX2\texttt{HTML}} smh22@2882: smh22@2882: smh22@2882: %%% LINKS TO EXTERNAL DOCUMENTS smh22@2882: % smh22@2882: % This can be used to provide links to arbitrary documents. smh22@2882: % The first argumment should be the text that is going to be smh22@2882: % highlighted and the second argument a URL. smh22@2882: % The hyperlink will appear as a hyperlink in the HTML smh22@2882: % document and as a footnote in the dvi or ps files. smh22@2882: % smh22@2882: \newcommand{\htmladdnormallinkfoot}[2]{#1\footnote{#2}} smh22@2882: smh22@2882: smh22@2882: % This is an alternative definition of the command above which smh22@2882: % will ignore the URL in the dvi or ps files. smh22@2882: \newcommand{\htmladdnormallink}[2]{#1} smh22@2882: smh22@2882: smh22@2882: % This command takes as argument a URL pointing to an image. smh22@2882: % The image will be embedded in the HTML document but will smh22@2882: % be ignored in the dvi and ps files. smh22@2882: % smh22@2882: \newcommand{\htmladdimg}[1]{} smh22@2882: smh22@2882: smh22@2882: %%% CROSS-REFERENCES BETWEEN (LOCAL OR REMOTE) DOCUMENTS smh22@2882: % smh22@2882: % This can be used to refer to symbolic labels in other Latex smh22@2882: % documents that have already been processed by the translator. smh22@2882: % The arguments should be: smh22@2882: % #1 : the URL to the directory containing the external document smh22@2882: % #2 : the path to the labels.pl file of the external document. smh22@2882: % If the external document lives on a remote machine then labels.pl smh22@2882: % must be copied on the local machine. smh22@2882: % smh22@2882: %e.g. \externallabels{http://cbl.leeds.ac.uk/nikos/WWW/doc/tex2html/latex2html} smh22@2882: % {/usr/cblelca/nikos/tmp/labels.pl} smh22@2882: % The arguments are ignored in the dvi and ps files. smh22@2882: % smh22@2882: \newcommand{\externallabels}[2]{} smh22@2882: smh22@2882: smh22@2882: % This complements the \externallabels command above. The argument smh22@2882: % should be a label defined in another latex document and will be smh22@2882: % ignored in the dvi and ps files. smh22@2882: % smh22@2882: \newcommand{\externalref}[1]{} smh22@2882: smh22@2882: smh22@2882: % Suggested by Uffe Engberg (http://www.brics.dk/~engberg/) smh22@2882: % This allows the same effect for citations in external bibliographies. smh22@2882: % An \externallabels command must be given, locating a labels.pl file smh22@2882: % which defines the location and keys used in the external .html file. smh22@2882: % smh22@2882: \newcommand{\externalcite}{\nocite} smh22@2882: smh22@2882: smh22@2882: %%% HTMLRULE smh22@2882: % This command adds a horizontal rule and is valid even within smh22@2882: % a figure caption. smh22@2882: % Here we introduce a stub for compatibility. smh22@2882: \newcommand{\htmlrule}{\protect\HTMLrule} smh22@2882: \newcommand{\HTMLrule}{\@ifstar\htmlrulestar\htmlrulestar} smh22@2882: \newcommand{\htmlrulestar}[1]{} smh22@2882: smh22@2882: % This command adds information within the ... tag smh22@2882: % smh22@2882: \newcommand{\bodytext}[1]{} smh22@2882: \newcommand{\htmlbody}{} smh22@2882: smh22@2882: smh22@2882: %%% HYPERREF smh22@2882: % Suggested by Eric M. Carol smh22@2882: % Similar to \ref but accepts conditional text. smh22@2882: % The first argument is HTML text which will become ``hyperized'' smh22@2882: % (underlined). smh22@2882: % The second and third arguments are text which will appear only in the paper smh22@2882: % version (DVI file), enclosing the fourth argument which is a reference to a label. smh22@2882: % smh22@2882: %e.g. \hyperref{using the tracer}{using the tracer (see Section}{)}{trace} smh22@2882: % where there is a corresponding \label{trace} smh22@2882: % smh22@2882: \newcommand{\hyperref}{\hyperrefx[ref]} smh22@2882: \def\hyperrefx[#1]{{\def\next{#1}% smh22@2882: \def\tmp{ref}\ifx\next\tmp\aftergroup\hyperrefref smh22@2882: \else\def\tmp{pageref}\ifx\next\tmp\aftergroup\hyperpageref smh22@2882: \else\def\tmp{page}\ifx\next\tmp\aftergroup\hyperpageref smh22@2882: \else\def\tmp{noref}\ifx\next\tmp\aftergroup\hypernoref smh22@2882: \else\def\tmp{no}\ifx\next\tmp\aftergroup\hypernoref smh22@2882: \else\typeout{*** unknown option \next\space to hyperref ***}% smh22@2882: \fi\fi\fi\fi\fi}} smh22@2882: \newcommand{\hyperrefref}[4]{#2\ref{#4}#3} smh22@2882: \newcommand{\hyperpageref}[4]{#2\pageref{#4}#3} smh22@2882: \newcommand{\hypernoref}[3]{#2} smh22@2882: smh22@2882: smh22@2882: %%% HYPERCITE --- added by RRM smh22@2882: % Suggested by Stephen Simpson smh22@2882: % effects the same ideas as in \hyperref, but for citations. smh22@2882: % It does not allow an optional argument to the \cite, in LaTeX. smh22@2882: % smh22@2882: % \hypercite{}{}{}{} smh22@2882: % smh22@2882: % uses the pre/post-texts in LaTeX, with a \cite{} smh22@2882: % smh22@2882: % \hypercite[ext]{}{}{} smh22@2882: % smh22@2882: % uses the pre/post-texts in LaTeX, with a \nocite{} smh22@2882: % the actual reference comes from an \externallabels file. smh22@2882: % smh22@2882: \newcommand{\hypercite}{\hypercitex[int]} smh22@2882: \def\hypercitex[#1]{{\def\next{#1}% smh22@2882: \def\tmp{int}\ifx\next\tmp\aftergroup\hyperciteint smh22@2882: \else\def\tmp{cite}\ifx\next\tmp\aftergroup\hyperciteint smh22@2882: \else\def\tmp{ext}\ifx\next\tmp\aftergroup\hyperciteext smh22@2882: \else\def\tmp{nocite}\ifx\next\tmp\aftergroup\hyperciteext smh22@2882: \else\def\tmp{no}\ifx\next\tmp\aftergroup\hyperciteext smh22@2882: \else\typeout{*** unknown option \next\space to hypercite ***}% smh22@2882: \fi\fi\fi\fi\fi}} smh22@2882: \newcommand{\hyperciteint}[4]{#2{\def\tmp{#3}\def\emptyopt{}% smh22@2882: \ifx\tmp\emptyopt\cite{#4}\else\cite[#3]{#4}\fi}} smh22@2882: \newcommand{\hyperciteext}[3]{#2\nocite{#3}} smh22@2882: smh22@2882: smh22@2882: smh22@2882: %%% HTMLREF smh22@2882: % Reference in HTML version only. smh22@2882: % Mix between \htmladdnormallink and \hyperref. smh22@2882: % First arg is text for in both versions, second is label for use in HTML smh22@2882: % version. smh22@2882: \newcommand{\htmlref}[2]{#1} smh22@2882: smh22@2882: %%% HTMLCITE smh22@2882: % Reference in HTML version only. smh22@2882: % Mix between \htmladdnormallink and \hypercite. smh22@2882: % First arg is text for in both versions, second is citation for use in HTML smh22@2882: % version. smh22@2882: \newcommand{\htmlcite}[2]{#1} smh22@2882: smh22@2882: smh22@2882: %%% HTMLIMAGE smh22@2882: % This command can be used inside any environment that is converted smh22@2882: % into an inlined image (eg a "figure" environment) in order to change smh22@2882: % the way the image will be translated. The argument of \htmlimage smh22@2882: % is really a string of options separated by commas ie smh22@2882: % [scale=],[external],[thumbnail= smh22@2882: % The scale option allows control over the size of the final image. smh22@2882: % The ``external'' option will cause the image not to be inlined smh22@2882: % (images are inlined by default). External images will be accessible smh22@2882: % via a hypertext link. smh22@2882: % The ``thumbnail'' option will cause a small inlined image to be smh22@2882: % placed in the caption. The size of the thumbnail depends on the smh22@2882: % reduction factor. The use of the ``thumbnail'' option implies smh22@2882: % the ``external'' option. smh22@2882: % smh22@2882: % Example: smh22@2882: % \htmlimage{scale=1.5,external,thumbnail=0.2} smh22@2882: % will cause a small thumbnail image 1/5th of the original size to be smh22@2882: % placed in the final document, pointing to an external image 1.5 smh22@2882: % times bigger than the original. smh22@2882: % smh22@2882: \newcommand{\htmlimage}[1]{} smh22@2882: smh22@2882: smh22@2882: % \htmlborder causes a border to be placed around an image or table smh22@2882: % when the image is placed within a cell. smh22@2882: \newcommand{\htmlborder}[1]{} smh22@2882: smh22@2882: % Put \begin{makeimage}, \end{makeimage} around LaTeX to ensure its smh22@2882: % translation into an image. smh22@2882: % This shields sensitive text from being translated. smh22@2882: \newenvironment{makeimage}{}{} smh22@2882: smh22@2882: smh22@2882: % A dummy environment that can be useful to alter the order smh22@2882: % in which commands are processed, in LaTeX2HTML smh22@2882: \newenvironment{tex2html_deferred}{}{} smh22@2882: smh22@2882: smh22@2882: %%% HTMLADDTONAVIGATION smh22@2882: % This command appends its argument to the buttons in the navigation smh22@2882: % panel. It is ignored by LaTeX. smh22@2882: % smh22@2882: % Example: smh22@2882: % \htmladdtonavigation{\htmladdnormallink smh22@2882: % {\htmladdimg{http://server/path/to/gif}} smh22@2882: % {http://server/path}} smh22@2882: \newcommand{\htmladdtonavigation}[1]{} smh22@2882: smh22@2882: smh22@2882: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% smh22@2882: % Comment.sty version 2.0, 19 June 1992 smh22@2882: % selectively in/exclude pieces of text: the user can define new smh22@2882: % comment versions, and each is controlled separately. smh22@2882: % This style can be used with plain TeX or LaTeX, and probably smh22@2882: % most other packages too. smh22@2882: % smh22@2882: % Examples of use in LaTeX and TeX follow \endinput smh22@2882: % smh22@2882: % Author smh22@2882: % Victor Eijkhout smh22@2882: % Department of Computer Science smh22@2882: % University Tennessee at Knoxville smh22@2882: % 104 Ayres Hall smh22@2882: % Knoxville, TN 37996 smh22@2882: % USA smh22@2882: % smh22@2882: % eijkhout@cs.utk.edu smh22@2882: % smh22@2882: % Usage: all text included in between smh22@2882: % \comment ... \endcomment smh22@2882: % or \begin{comment} ... \end{comment} smh22@2882: % is discarded. The closing command should appear on a line smh22@2882: % of its own. No starting spaces, nothing after it. smh22@2882: % This environment should work with arbitrary amounts smh22@2882: % of comment. smh22@2882: % smh22@2882: % Other 'comment' environments are defined by smh22@2882: % and are selected/deselected with smh22@2882: % \includecomment{versiona} smh22@2882: % \excludecoment{versionb} smh22@2882: % smh22@2882: % These environments are used as smh22@2882: % \versiona ... \endversiona smh22@2882: % or \begin{versiona} ... \end{versiona} smh22@2882: % with the closing command again on a line of its own. smh22@2882: % smh22@2882: % Basic approach: smh22@2882: % to comment something out, scoop up every line in verbatim mode smh22@2882: % as macro argument, then throw it away. smh22@2882: % For inclusions, both the opening and closing comands smh22@2882: % are defined as noop smh22@2882: % smh22@2882: % Changed \next to \html@next to prevent clashes with other sty files smh22@2882: % (mike@emn.fr) smh22@2882: % Changed \html@next to \htmlnext so the \makeatletter and smh22@2882: % \makeatother commands could be removed (they were causing other smh22@2882: % style files - changebar.sty - to crash) (nikos@cbl.leeds.ac.uk) smh22@2882: % Changed \htmlnext back to \html@next... smh22@2882: smh22@2882: \def\makeinnocent#1{\catcode`#1=12 } smh22@2882: \def\csarg#1#2{\expandafter#1\csname#2\endcsname} smh22@2882: smh22@2882: \def\ThrowAwayComment#1{\begingroup smh22@2882: \def\CurrentComment{#1}% smh22@2882: \let\do\makeinnocent \dospecials smh22@2882: \makeinnocent\^^L% and whatever other special cases smh22@2882: \endlinechar`\^^M \catcode`\^^M=12 \xComment} smh22@2882: {\catcode`\^^M=12 \endlinechar=-1 % smh22@2882: \gdef\xComment#1^^M{\def\test{#1}\edef\test{\meaning\test} smh22@2882: \csarg\ifx{PlainEnd\CurrentComment Test}\test smh22@2882: \let\html@next\endgroup smh22@2882: \else \csarg\ifx{LaLaEnd\CurrentComment Test}\test smh22@2882: \edef\html@next{\endgroup\noexpand\end{\CurrentComment}} smh22@2882: \else \csarg\ifx{LaInnEnd\CurrentComment Test}\test smh22@2882: \edef\html@next{\endgroup\noexpand\end{\CurrentComment}} smh22@2882: \else \let\html@next\xComment smh22@2882: \fi \fi \fi \html@next} smh22@2882: } smh22@2882: smh22@2882: \def\includecomment smh22@2882: #1{\expandafter\def\csname#1\endcsname{}% smh22@2882: \expandafter\def\csname end#1\endcsname{}} smh22@2882: \def\excludecomment smh22@2882: #1{\expandafter\def\csname#1\endcsname{\ThrowAwayComment{#1}}% smh22@2882: {\escapechar=-1\relax smh22@2882: \edef\tmp{\string\\end#1}% smh22@2882: \csarg\xdef{PlainEnd#1Test}{\meaning\tmp}% smh22@2882: \edef\tmp{\string\\end\string\{#1\string\}}% smh22@2882: \csarg\xdef{LaLaEnd#1Test}{\meaning\tmp}% smh22@2882: \edef\tmp{\string\\end \string\{#1\string\}}% smh22@2882: \csarg\xdef{LaInnEnd#1Test}{\meaning\tmp}% smh22@2882: }} smh22@2882: smh22@2882: \excludecomment{comment} smh22@2882: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% smh22@2882: % end Comment.sty smh22@2882: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% smh22@2882: smh22@2882: % smh22@2882: % Alternative code by Robin Fairbairns, 22 September 1997 smh22@2882: % smh22@2882: \newcommand\@gobbleenv{\let\reserved@a\@currenvir\@gobble@nv} smh22@2882: \long\def\@gobble@nv#1\end#2{\def\reserved@b{#2}% smh22@2882: \ifx\reserved@a\reserved@b smh22@2882: \edef\reserved@a{\noexpand\end{\reserved@a}}% smh22@2882: \expandafter\reserved@a smh22@2882: \else smh22@2882: \expandafter\@gobble@nv smh22@2882: \fi} smh22@2882: smh22@2882: \renewcommand{\excludecomment}[1]{% smh22@2882: \csname newenvironment\endcsname{#1}{\@gobbleenv}{}} smh22@2882: smh22@2882: %%% RAW HTML smh22@2882: % smh22@2882: % Enclose raw HTML between a \begin{rawhtml} and \end{rawhtml}. smh22@2882: % The html environment ignores its body smh22@2882: % smh22@2882: \excludecomment{rawhtml} smh22@2882: smh22@2882: smh22@2882: %%% HTML ONLY smh22@2882: % smh22@2882: % Enclose LaTeX constructs which will only appear in the smh22@2882: % HTML output and will be ignored by LaTeX with smh22@2882: % \begin{htmlonly} and \end{htmlonly} smh22@2882: % smh22@2882: \excludecomment{htmlonly} smh22@2882: % Shorter version smh22@2882: \newcommand{\html}[1]{} smh22@2882: smh22@2882: % for images.tex only smh22@2882: \excludecomment{imagesonly} smh22@2882: smh22@2882: %%% LaTeX ONLY smh22@2882: % Enclose LaTeX constructs which will only appear in the smh22@2882: % DVI output and will be ignored by latex2html with smh22@2882: %\begin{latexonly} and \end{latexonly} smh22@2882: % smh22@2882: \newenvironment{latexonly}{}{} smh22@2882: % Shorter version smh22@2882: \newcommand{\latex}[1]{#1} smh22@2882: smh22@2882: smh22@2882: %%% LaTeX or HTML smh22@2882: % Combination of \latex and \html. smh22@2882: % Say \latexhtml{this should be latex text}{this html text} smh22@2882: % smh22@2882: %\newcommand{\latexhtml}[2]{#1} smh22@2882: \long\def\latexhtml#1#2{#1} smh22@2882: smh22@2882: smh22@2882: %%% tracing the HTML conversions smh22@2882: % This alters the tracing-level within the processing smh22@2882: % performed by latex2html by adjusting $VERBOSITY smh22@2882: % (see latex2html.config for the appropriate values) smh22@2882: % smh22@2882: \newcommand{\htmltracing}[1]{} smh22@2882: \newcommand{\htmltracenv}[1]{} smh22@2882: smh22@2882: smh22@2882: %%% \strikeout for HTML only smh22@2882: % uses ... tags on the argument smh22@2882: % LaTeX just gobbles it up. smh22@2882: \newcommand{\strikeout}[1]{} smh22@2882: smh22@2882: smh22@2882: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% smh22@2882: %%% JCL - stop input here if LaTeX2e is not present smh22@2882: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% smh22@2882: \ifx\if@compatibility\undefined smh22@2882: %LaTeX209 smh22@2882: \makeatother\relax\expandafter\endinput smh22@2882: \fi smh22@2882: \if@compatibility smh22@2882: %LaTeX2e in LaTeX209 compatibility mode smh22@2882: \makeatother\relax\expandafter\endinput smh22@2882: \fi smh22@2882: smh22@2882: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% smh22@2882: % smh22@2882: % Start providing LaTeX2e extension: smh22@2882: % This is currently: smh22@2882: % - additional optional argument for \htmladdimg smh22@2882: % - support for segmented documents smh22@2882: % smh22@2882: smh22@2882: \ProvidesPackage{html} smh22@2882: [1996/12/22 v1.1 hypertext commands for latex2html (nd, hws, rrm)] smh22@2882: %%%%MG smh22@2882: smh22@2882: % This command takes as argument a URL pointing to an image. smh22@2882: % The image will be embedded in the HTML document but will smh22@2882: % be ignored in the dvi and ps files. The optional argument smh22@2882: % denotes additional HTML tags. smh22@2882: % smh22@2882: % Example: \htmladdimg[ALT="portrait" ALIGN=CENTER]{portrait.gif} smh22@2882: % smh22@2882: \renewcommand{\htmladdimg}[2][]{} smh22@2882: smh22@2882: %%% HTMLRULE for LaTeX2e smh22@2882: % This command adds a horizontal rule and is valid even within smh22@2882: % a figure caption. smh22@2882: % smh22@2882: % This command is best used with LaTeX2e and HTML 3.2 support. smh22@2882: % It is like \hrule, but allows for options via key--value pairs smh22@2882: % as follows: \htmlrule[key1=value1, key2=value2, ...] . smh22@2882: % Use \htmlrule* to suppress the
tag. smh22@2882: % Eg. \htmlrule[left, 15, 5pt, "none", NOSHADE] produces smh22@2882: %

. smh22@2882: % Renew the necessary part. smh22@2882: \renewcommand{\htmlrulestar}[1][all]{} smh22@2882: smh22@2882: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% smh22@2882: % smh22@2882: % renew some definitions to allow optional arguments smh22@2882: % smh22@2882: % The description of the options is missing, as yet. smh22@2882: % smh22@2882: \renewcommand{\latextohtml}{\textup{\LaTeX2\texttt{HTML}}} smh22@2882: \renewcommand{\htmladdnormallinkfoot}[3][]{#2\footnote{#3}} smh22@2882: \renewcommand{\htmladdnormallink}[3][]{#2} smh22@2882: \renewcommand{\htmlbody}[1][]{} smh22@2882: \renewcommand{\hyperref}[1][ref]{\hyperrefx[#1]} smh22@2882: \renewcommand{\hypercite}[1][int]{\hypercitex[#1]} smh22@2882: \renewcommand{\htmlref}[3][]{#2} smh22@2882: \renewcommand{\htmlcite}[1]{#1\htmlcitex} smh22@2882: \newcommand{\htmlcitex}[2][]{{\def\tmp{#1}\ifx\tmp\@empty\else~[#1]\fi}} smh22@2882: \renewcommand{\htmlimage}[2][]{} smh22@2882: \renewcommand{\htmlborder}[2][]{} smh22@2882: smh22@2882: smh22@2882: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% smh22@2882: % smh22@2882: % HTML HTMLset HTMLsetenv smh22@2882: % smh22@2882: % These commands do nothing in LaTeX, but can be used to place smh22@2882: % HTML tags or set Perl variables during the LaTeX2HTML processing; smh22@2882: % They are intended for expert use only. smh22@2882: smh22@2882: \newcommand{\HTMLcode}[2][]{} smh22@2882: \ifx\undefined\HTML\newcommand{\HTML}[2][]{}\else smh22@2882: \typeout{*** Warning: \string\HTML\space had an incompatible definition ***}% smh22@2882: \typeout{*** instead use \string\HTMLcode\space for raw HTML code ***}% smh22@2882: \fi smh22@2882: \newcommand{\HTMLset}[3][]{} smh22@2882: \newcommand{\HTMLsetenv}[3][]{} smh22@2882: smh22@2882: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% smh22@2882: % smh22@2882: % The following commands pertain to document segmentation, and smh22@2882: % were added by Herbert Swan (with help from smh22@2882: % Michel Goossens ): smh22@2882: % smh22@2882: % smh22@2882: % This command inputs internal latex2html tables so that large smh22@2882: % documents can to partitioned into smaller (more manageable) smh22@2882: % segments. smh22@2882: % smh22@2882: \newcommand{\internal}[2][internals]{} smh22@2882: smh22@2882: % smh22@2882: % Define a dummy stub \htmlhead{}. This command causes latex2html smh22@2882: % to define the title of the start of a new segment. It is not smh22@2882: % normally placed in the user's document. Rather, it is passed to smh22@2882: % latex2html via a .ptr file written by \segment. smh22@2882: % smh22@2882: \newcommand{\htmlhead}[3][]{} smh22@2882: smh22@2882: % In the LaTeX2HTML version this will eliminate the title line smh22@2882: % generated by a \segment command, but retains the title string smh22@2882: % for use in other places. smh22@2882: % smh22@2882: \newcommand{\htmlnohead}{} smh22@2882: smh22@2882: smh22@2882: % In the LaTeX2HTML version this put a URL into a tag smh22@2882: % within the ... portion of a document. smh22@2882: % smh22@2882: \newcommand{\htmlbase}[1]{} smh22@2882: % smh22@2882: smh22@2882: % smh22@2882: % The dummy command \endpreamble is needed by latex2html to smh22@2882: % mark the end of the preamble in document segments that do smh22@2882: % not contain a \begin{document} smh22@2882: % smh22@2882: \newcommand{\startdocument}{} smh22@2882: smh22@2882: smh22@2882: % \tableofchildlinks, \htmlinfo smh22@2882: % by Ross Moore --- extensions dated 27 September 1997 smh22@2882: % smh22@2882: % These do nothing in LaTeX but for LaTeX2HTML they mark smh22@2882: % where the table of child-links and info-page should be placed, smh22@2882: % when the user wants other than the default. smh22@2882: % \tableofchildlinks % put mini-TOC at this location smh22@2882: % \tableofchildlinks[off] % not on current page smh22@2882: % \tableofchildlinks[none] % not on current and subsequent pages smh22@2882: % \tableofchildlinks[on] % selectively on current page smh22@2882: % \tableofchildlinks[all] % on current and all subsequent pages smh22@2882: % \htmlinfo % put info-page at this location smh22@2882: % \htmlinfo[off] % no info-page in current document smh22@2882: % \htmlinfo[none] % no info-page in current document smh22@2882: % *-versions omit the preceding
tag. smh22@2882: % smh22@2882: \newcommand{\tableofchildlinks}{% smh22@2882: \@ifstar\tableofchildlinksstar\tableofchildlinksstar} smh22@2882: \newcommand{\tableofchildlinksstar}[1][]{} smh22@2882: smh22@2882: \newcommand{\htmlinfo}{\@ifstar\htmlinfostar\htmlinfostar} smh22@2882: \newcommand{\htmlinfostar}[1][]{} smh22@2882: smh22@2882: smh22@2882: % This redefines \begin to allow for an optional argument smh22@2882: % which is used by LaTeX2HTML to specify `style-sheet' information smh22@2882: smh22@2882: \let\realLaTeX@begin=\begin smh22@2882: \renewcommand{\begin}[1][]{\realLaTeX@begin} smh22@2882: smh22@2882: smh22@2882: % smh22@2882: % Allocate a new set of section counters, which will get incremented smh22@2882: % for "*" forms of sectioning commands, and for a few miscellaneous smh22@2882: % commands. smh22@2882: % smh22@2882: smh22@2882: \newcounter{lpart} smh22@2882: \newcounter{lchapter}[part] smh22@2882: \@ifundefined{c@chapter}% smh22@2882: {\let\Hchapter\relax \newcounter{lsection}[part]}% smh22@2882: {\let\Hchapter=\chapter \newcounter{lsection}[chapter]} smh22@2882: \newcounter{lsubsection}[section] smh22@2882: \newcounter{lsubsubsection}[subsection] smh22@2882: \newcounter{lparagraph}[subsubsection] smh22@2882: \newcounter{lsubparagraph}[paragraph] smh22@2882: \newcounter{lequation} smh22@2882: smh22@2882: % smh22@2882: % Redefine "*" forms of sectioning commands to increment their smh22@2882: % respective counters. smh22@2882: % smh22@2882: \let\Hpart=\part smh22@2882: %\let\Hchapter=\chapter smh22@2882: \let\Hsection=\section smh22@2882: \let\Hsubsection=\subsection smh22@2882: \let\Hsubsubsection=\subsubsection smh22@2882: \let\Hparagraph=\paragraph smh22@2882: \let\Hsubparagraph=\subparagraph smh22@2882: \let\Hsubsubparagraph=\subsubparagraph smh22@2882: smh22@2882: \ifx\c@subparagraph\undefined smh22@2882: \newcounter{lsubsubparagraph}[lsubparagraph] smh22@2882: \else smh22@2882: \newcounter{lsubsubparagraph}[subparagraph] smh22@2882: \fi smh22@2882: smh22@2882: % smh22@2882: % The following definitions are specific to LaTeX2e: smh22@2882: % (They must be commented out for LaTeX 2.09) smh22@2882: % smh22@2882: \renewcommand{\part}{\@ifstar{\stepcounter{lpart}% smh22@2882: \bgroup\def\tmp{*}\H@part}{\bgroup\def\tmp{}\H@part}} smh22@2882: \newcommand{\H@part}[1][]{\def\tmp@a{#1}\check@align smh22@2882: \expandafter\egroup\expandafter\Hpart\tmp} smh22@2882: smh22@2882: \ifx\Hchapter\relax\else smh22@2882: \def\chapter{\resetsections \@ifstar{\stepcounter{lchapter}% smh22@2882: \bgroup\def\tmp{*}\H@chapter}{\bgroup\def\tmp{}\H@chapter}}\fi smh22@2882: \newcommand{\H@chapter}[1][]{\def\tmp@a{#1}\check@align smh22@2882: \expandafter\egroup\expandafter\Hchapter\tmp} smh22@2882: smh22@2882: \renewcommand{\section}{\resetsubsections smh22@2882: \@ifstar{\stepcounter{lsection}\bgroup\def\tmp{*}% smh22@2882: \H@section}{\bgroup\def\tmp{}\H@section}} smh22@2882: \newcommand{\H@section}[1][]{\def\tmp@a{#1}\check@align smh22@2882: \expandafter\egroup\expandafter\Hsection\tmp} smh22@2882: smh22@2882: \renewcommand{\subsection}{\resetsubsubsections smh22@2882: \@ifstar{\stepcounter{lsubsection}\bgroup\def\tmp{*}% smh22@2882: \H@subsection}{\bgroup\def\tmp{}\H@subsection}} smh22@2882: \newcommand{\H@subsection}[1][]{\def\tmp@a{#1}\check@align smh22@2882: \expandafter\egroup\expandafter\Hsubsection\tmp} smh22@2882: smh22@2882: \renewcommand{\subsubsection}{\resetparagraphs smh22@2882: \@ifstar{\stepcounter{lsubsubsection}\bgroup\def\tmp{*}% smh22@2882: \H@subsubsection}{\bgroup\def\tmp{}\H@subsubsection}} smh22@2882: \newcommand{\H@subsubsection}[1][]{\def\tmp@a{#1}\check@align smh22@2882: \expandafter\egroup\expandafter\Hsubsubsection\tmp} smh22@2882: smh22@2882: \renewcommand{\paragraph}{\resetsubparagraphs smh22@2882: \@ifstar{\stepcounter{lparagraph}\bgroup\def\tmp{*}% smh22@2882: \H@paragraph}{\bgroup\def\tmp{}\H@paragraph}} smh22@2882: \newcommand\H@paragraph[1][]{\def\tmp@a{#1}\check@align smh22@2882: \expandafter\egroup\expandafter\Hparagraph\tmp} smh22@2882: smh22@2882: \renewcommand{\subparagraph}{\resetsubsubparagraphs smh22@2882: \@ifstar{\stepcounter{lsubparagraph}\bgroup\def\tmp{*}% smh22@2882: \H@subparagraph}{\bgroup\def\tmp{}\H@subparagraph}} smh22@2882: \newcommand\H@subparagraph[1][]{\def\tmp@a{#1}\check@align smh22@2882: \expandafter\egroup\expandafter\Hsubparagraph\tmp} smh22@2882: smh22@2882: \ifx\Hsubsubparagraph\relax\else\@ifundefined{subsubparagraph}{}{% smh22@2882: \def\subsubparagraph{% smh22@2882: \@ifstar{\stepcounter{lsubsubparagraph}\bgroup\def\tmp{*}% smh22@2882: \H@subsubparagraph}{\bgroup\def\tmp{}\H@subsubparagraph}}}\fi smh22@2882: \newcommand\H@subsubparagraph[1][]{\def\tmp@a{#1}\check@align smh22@2882: \expandafter\egroup\expandafter\Hsubsubparagraph\tmp} smh22@2882: smh22@2882: \def\check@align{\def\empty{}\ifx\tmp@a\empty smh22@2882: \else\def\tmp@b{center}\ifx\tmp@a\tmp@b\let\tmp@a\empty smh22@2882: \else\def\tmp@b{left}\ifx\tmp@a\tmp@b\let\tmp@a\empty smh22@2882: \else\def\tmp@b{right}\ifx\tmp@a\tmp@b\let\tmp@a\empty smh22@2882: \else\expandafter\def\expandafter\tmp@a\expandafter{\expandafter[\tmp@a]}% smh22@2882: \fi\fi\fi \def\empty{}\ifx\tmp\empty\let\tmp=\tmp@a \else smh22@2882: \expandafter\def\expandafter\tmp\expandafter{\expandafter*\tmp@a}% smh22@2882: \fi\fi} smh22@2882: % smh22@2882: \def\resetsections{\setcounter{section}{0}\setcounter{lsection}{0}% smh22@2882: \reset@dependents{section}\resetsubsections } smh22@2882: \def\resetsubsections{\setcounter{subsection}{0}\setcounter{lsubsection}{0}% smh22@2882: \reset@dependents{subsection}\resetsubsubsections } smh22@2882: \def\resetsubsubsections{\setcounter{subsubsection}{0}\setcounter{lsubsubsection}{0}% smh22@2882: \reset@dependents{subsubsection}\resetparagraphs } smh22@2882: % smh22@2882: \def\resetparagraphs{\setcounter{lparagraph}{0}\setcounter{lparagraph}{0}% smh22@2882: \reset@dependents{paragraph}\resetsubparagraphs } smh22@2882: \def\resetsubparagraphs{\ifx\c@subparagraph\undefined\else smh22@2882: \setcounter{subparagraph}{0}\fi \setcounter{lsubparagraph}{0}% smh22@2882: \reset@dependents{subparagraph}\resetsubsubparagraphs } smh22@2882: \def\resetsubsubparagraphs{\ifx\c@subsubparagraph\undefined\else smh22@2882: \setcounter{subsubparagraph}{0}\fi \setcounter{lsubsubparagraph}{0}} smh22@2882: % smh22@2882: \def\reset@dependents#1{\begingroup\let \@elt \@stpelt smh22@2882: \csname cl@#1\endcsname\endgroup} smh22@2882: % smh22@2882: % smh22@2882: % Define a helper macro to dump a single \secounter command to a file. smh22@2882: % smh22@2882: \newcommand{\DumpPtr}[2]{% smh22@2882: \count255=\arabic{#1}\def\dummy{dummy}\def\tmp{#2}% smh22@2882: \ifx\tmp\dummy\else\advance\count255 by \arabic{#2}\fi smh22@2882: \immediate\write\ptrfile{% smh22@2882: \noexpand\setcounter{#1}{\number\count255}}} smh22@2882: smh22@2882: % smh22@2882: % Define a helper macro to dump all counters to the file. smh22@2882: % The value for each counter will be the sum of the l-counter smh22@2882: % actual LaTeX section counter. smh22@2882: % Also dump an \htmlhead{section-command}{section title} command smh22@2882: % to the file. smh22@2882: % smh22@2882: \newwrite\ptrfile smh22@2882: \def\DumpCounters#1#2#3#4{% smh22@2882: \begingroup\let\protect=\noexpand smh22@2882: \immediate\openout\ptrfile = #1.ptr smh22@2882: \DumpPtr{part}{lpart}% smh22@2882: \ifx\Hchapter\relax\else\DumpPtr{chapter}{lchapter}\fi smh22@2882: \DumpPtr{section}{lsection}% smh22@2882: \DumpPtr{subsection}{lsubsection}% smh22@2882: \DumpPtr{subsubsection}{lsubsubsection}% smh22@2882: \DumpPtr{paragraph}{lparagraph}% smh22@2882: \DumpPtr{subparagraph}{lsubparagraph}% smh22@2882: \DumpPtr{equation}{lequation}% smh22@2882: \DumpPtr{footnote}{dummy}% smh22@2882: \def\tmp{#4}\ifx\tmp\@empty smh22@2882: \immediate\write\ptrfile{\noexpand\htmlhead{#2}{#3}}\else smh22@2882: \immediate\write\ptrfile{\noexpand\htmlhead[#4]{#2}{#3}}\fi smh22@2882: \dumpcitestatus \dumpcurrentcolor smh22@2882: \immediate\closeout\ptrfile smh22@2882: \endgroup } smh22@2882: smh22@2882: smh22@2882: %% interface to natbib.sty smh22@2882: smh22@2882: \def\dumpcitestatus{} smh22@2882: \def\loadcitestatus{\def\dumpcitestatus{% smh22@2882: \ifciteindex\immediate\write\ptrfile{\noexpand\citeindextrue}% smh22@2882: \else\immediate\write\ptrfile{\noexpand\citeindexfalse}\fi }% smh22@2882: } smh22@2882: \@ifpackageloaded{natbib}{\loadcitestatus}{% smh22@2882: \AtBeginDocument{\@ifpackageloaded{natbib}{\loadcitestatus}{}}} smh22@2882: smh22@2882: smh22@2882: %% interface to color.sty smh22@2882: smh22@2882: \def\dumpcurrentcolor{} smh22@2882: \def\loadsegmentcolors{% smh22@2882: \let\real@pagecolor=\pagecolor smh22@2882: \let\pagecolor\segmentpagecolor smh22@2882: \let\segmentcolor\color smh22@2882: \ifx\current@page@color\undefined \def\current@page@color{{}}\fi smh22@2882: \def\dumpcurrentcolor{\bgroup\def\@empty@{{}}% smh22@2882: \expandafter\def\expandafter\tmp\space####1@{\def\thiscol{####1}}% smh22@2882: \ifx\current@color\@empty@\def\thiscol{}\else smh22@2882: \expandafter\tmp\current@color @\fi smh22@2882: \immediate\write\ptrfile{\noexpand\segmentcolor{\thiscol}}% smh22@2882: \ifx\current@page@color\@empty@\def\thiscol{}\else smh22@2882: \expandafter\tmp\current@page@color @\fi smh22@2882: \immediate\write\ptrfile{\noexpand\segmentpagecolor{\thiscol}}% smh22@2882: \egroup}% smh22@2882: \global\let\loadsegmentcolors=\relax smh22@2882: } smh22@2882: smh22@2882: % These macros are needed within images.tex since this inputs smh22@2882: % the .ptr files for a segment, so that counters are smh22@2882: % colors are synchronised. smh22@2882: % smh22@2882: \newcommand{\segmentpagecolor}[1][]{% smh22@2882: \@ifpackageloaded{color}{\loadsegmentcolors\bgroup smh22@2882: \def\tmp{#1}\ifx\@empty\tmp\def\next{[]}\else\def\next{[#1]}\fi smh22@2882: \expandafter\segmentpagecolor@\next}% smh22@2882: {\@gobble}} smh22@2882: \def\segmentpagecolor@[#1]#2{\def\tmp{#1}\def\tmpB{#2}% smh22@2882: \ifx\tmpB\@empty\let\next=\egroup smh22@2882: \else smh22@2882: \let\realendgroup=\endgroup smh22@2882: \def\endgroup{\edef\next{\noexpand\realendgroup smh22@2882: \def\noexpand\current@page@color{\current@color}}\next}% smh22@2882: \ifx\tmp\@empty\real@pagecolor{#2}\def\model{}% smh22@2882: \else\real@pagecolor[#1]{#2}\def\model{[#1]}% smh22@2882: \fi smh22@2882: \edef\next{\egroup\def\noexpand\current@page@color{\current@page@color}% smh22@2882: \noexpand\real@pagecolor\model{#2}}% smh22@2882: \fi\next} smh22@2882: % smh22@2882: \newcommand{\segmentcolor}[2][named]{\@ifpackageloaded{color}% smh22@2882: {\loadsegmentcolors\segmentcolor[#1]{#2}}{}} smh22@2882: smh22@2882: \@ifpackageloaded{color}{\loadsegmentcolors}{\let\real@pagecolor=\@gobble smh22@2882: \AtBeginDocument{\@ifpackageloaded{color}{\loadsegmentcolors}{}}} smh22@2882: smh22@2882: smh22@2882: % Define the \segment[align]{file}{section-command}{section-title} command, smh22@2882: % and its helper macros. This command does four things: smh22@2882: % 1) Begins a new LaTeX section; smh22@2882: % 2) Writes a list of section counters to file.ptr, each smh22@2882: % of which represents the sum of the LaTeX section smh22@2882: % counters, and the l-counters, defined above; smh22@2882: % 3) Write an \htmlhead{section-title} command to file.ptr; smh22@2882: % 4) Inputs file.tex. smh22@2882: smh22@2882: \def\segment{\@ifstar{\@@htmls}{\@@html}} smh22@2882: \def\endsegment{} smh22@2882: \newcommand{\@@htmls}[1][]{\@@htmlsx{#1}} smh22@2882: \newcommand{\@@html}[1][]{\@@htmlx{#1}} smh22@2882: \def\@@htmlsx#1#2#3#4{\csname #3\endcsname* {#4}% smh22@2882: \DumpCounters{#2}{#3*}{#4}{#1}\input{#2}} smh22@2882: \def\@@htmlx#1#2#3#4{\csname #3\endcsname {#4}% smh22@2882: \DumpCounters{#2}{#3}{#4}{#1}\input{#2}} smh22@2882: smh22@2882: \makeatother smh22@2882: \endinput smh22@2882: smh22@2882: smh22@2882: % Modifications: smh22@2882: % smh22@2882: % (The listing of Initiales see Changes) smh22@2882: smh22@2882: % $Log: html.sty,v $ smh22@2882: % Revision 1.23 1998/02/26 10:32:24 latex2html smh22@2882: % -- use \providecommand for \latextohtml smh22@2882: % -- implemented \HTMLcode to do what \HTML did previously smh22@2882: % \HTML still works, unless already defined by another package smh22@2882: % -- fixed problems remaining with undefined \chapter smh22@2882: % -- defined \endsegment smh22@2882: % smh22@2882: % Revision 1.22 1997/12/05 11:38:18 RRM smh22@2882: % -- implemented an optional argument to \begin for style-sheet info. smh22@2882: % -- modified use of an optional argument with sectioning-commands smh22@2882: % smh22@2882: % Revision 1.21 1997/11/05 10:28:56 RRM smh22@2882: % -- replaced redefinition of \@htmlrule with \htmlrulestar smh22@2882: % smh22@2882: % Revision 1.20 1997/10/28 02:15:58 RRM smh22@2882: % -- altered the way some special html-macros are defined, so that smh22@2882: % star-variants are explicitly defined for LaTeX smh22@2882: % -- it is possible for these to occur within images.tex smh22@2882: % e.g. \htmlinfostar \htmlrulestar \tableofchildlinksstar smh22@2882: % smh22@2882: % Revision 1.19 1997/10/11 05:47:48 RRM smh22@2882: % -- allow the dummy {tex2html_nowrap} environment in LaTeX smh22@2882: % use it to make its contents be evaluated in environment order smh22@2882: % smh22@2882: % Revision 1.18 1997/10/04 06:56:50 RRM smh22@2882: % -- uses Robin Fairbairns' code for ignored environments, smh22@2882: % replacing the previous comment.sty stuff. smh22@2882: % -- extensions to the \tableofchildlinks command smh22@2882: % -- extensions to the \htmlinfo command smh22@2882: % smh22@2882: % Revision 1.17 1997/07/08 11:23:39 RRM smh22@2882: % include value of footnote counter in .ptr files for segments smh22@2882: % smh22@2882: % Revision 1.16 1997/07/03 08:56:34 RRM smh22@2882: % use \textup within the \latextohtml macro smh22@2882: % smh22@2882: % Revision 1.15 1997/06/15 10:24:58 RRM smh22@2882: % new command \htmltracenv as environment-ordered \htmltracing smh22@2882: % smh22@2882: % Revision 1.14 1997/06/06 10:30:37 RRM smh22@2882: % - new command: \htmlborder puts environment into a
cell smh22@2882: % with a border of specified width, + other attributes. smh22@2882: % - new commands: \HTML for setting arbitrary HTML tags, with attributes smh22@2882: % \HTMLset for setting Perl variables, while processing smh22@2882: % \HTMLsetenv same as \HTMLset , but it gets processed smh22@2882: % as if it were an environment. smh22@2882: % - new command: \latextohtml --- to set the LaTeX2HTML name/logo smh22@2882: % - fixed some remaining problems with \segmentcolor & \segmentpagecolor smh22@2882: % smh22@2882: % Revision 1.13 1997/05/19 13:55:46 RRM smh22@2882: % alterations and extra options to \hypercite smh22@2882: % smh22@2882: % Revision 1.12 1997/05/09 12:28:39 RRM smh22@2882: % - Added the optional argument to \htmlhead, also in \DumpCounters smh22@2882: % - Implemented \HTMLset as a no-op in LaTeX. smh22@2882: % - Fixed a bug in accessing the page@color settings. smh22@2882: % smh22@2882: % Revision 1.11 1997/03/26 09:32:40 RRM smh22@2882: % - Implements LaTeX versions of \externalcite and \hypercite commands. smh22@2882: % Thanks to Uffe Engberg and Stephen Simpson for the suggestions. smh22@2882: % smh22@2882: % Revision 1.10 1997/03/06 07:37:58 RRM smh22@2882: % Added the \htmltracing command, for altering $VERBOSITY . smh22@2882: % smh22@2882: % Revision 1.9 1997/02/17 02:26:26 RRM smh22@2882: % - changes to counter handling (RRM) smh22@2882: % - shuffled around some definitions smh22@2882: % - changed \htmlrule of 209 mode smh22@2882: % smh22@2882: % Revision 1.8 1997/01/26 09:04:12 RRM smh22@2882: % RRM: added optional argument to sectioning commands smh22@2882: % \htmlbase sets the tag smh22@2882: % \htmlinfo and \htmlinfo* allow the document info to be positioned smh22@2882: % smh22@2882: % Revision 1.7 1997/01/03 12:15:44 L2HADMIN smh22@2882: % % - fixes to the color and natbib interfaces smh22@2882: % % - extended usage of \hyperref, via an optional argument. smh22@2882: % % - extended use comment environments to allow shifting expansions smh22@2882: % % e.g. within \multicolumn (`bug' reported by Luc De Coninck). smh22@2882: % % - allow optional argument to: \htmlimage, \htmlhead, smh22@2882: % % \htmladdimg, \htmladdnormallink, \htmladdnormallinkfoot smh22@2882: % % - added new commands: \htmlbody, \htmlnohead smh22@2882: % % - added new command: \tableofchildlinks smh22@2882: % smh22@2882: % Revision 1.6 1996/12/25 03:04:54 JCL smh22@2882: % added patches to segment feature from Martin Wilck smh22@2882: % smh22@2882: % Revision 1.5 1996/12/23 01:48:06 JCL smh22@2882: % o introduced the environment makeimage, which may be used to force smh22@2882: % LaTeX2HTML to generate an image from the contents. smh22@2882: % There's no magic, all what we have now is a defined empty environment smh22@2882: % which LaTeX2HTML will not recognize and thus pass it to images.tex. smh22@2882: % o provided \protect to the \htmlrule commands to allow for usage smh22@2882: % within captions. smh22@2882: % smh22@2882: % Revision 1.4 1996/12/21 19:59:22 JCL smh22@2882: % - shuffled some entries smh22@2882: % - added \latexhtml command smh22@2882: % smh22@2882: % Revision 1.3 1996/12/21 12:22:59 JCL smh22@2882: % removed duplicate \htmlrule, changed \htmlrule back not to create a \hrule smh22@2882: % to allow occurrence in caption smh22@2882: % smh22@2882: % Revision 1.2 1996/12/20 04:03:41 JCL smh22@2882: % changed occurrence of \makeatletter, \makeatother smh22@2882: % added new \htmlrule command both for the LaTeX2.09 and LaTeX2e smh22@2882: % sections smh22@2882: % smh22@2882: % smh22@2882: % jcl 30-SEP-96 smh22@2882: % - Stuck the commands commonly used by both LaTeX versions to the top, smh22@2882: % added a check which stops input or reads further if the document smh22@2882: % makes use of LaTeX2e. smh22@2882: % - Introduced rrm's \dumpcurrentcolor and \bodytext smh22@2882: % hws 31-JAN-96 - Added support for document segmentation smh22@2882: % hws 10-OCT-95 - Added \htmlrule command smh22@2882: % jz 22-APR-94 - Added support for htmlref smh22@2882: % nd - Created