ia64/xen-unstable

annotate docs/html.sty @ 2882:3dc3b5f86f14

bitkeeper revision 1.1159.161.1 (418a3249MX0PQyRbhsfQoMbvQ4Q62A)

finalized interface manual, user manual still needs a bit more work
author smh22@tempest.cl.cam.ac.uk
date Thu Nov 04 13:44:41 2004 +0000 (2004-11-04)
parents
children f6afd85efce0
rev   line source
smh22@2882 1 %
smh22@2882 2 % $Id: html.sty,v 1.23 1998/02/26 10:32:24 latex2html Exp $
smh22@2882 3 % LaTeX2HTML Version 96.2 : html.sty
smh22@2882 4 %
smh22@2882 5 % This file contains definitions of LaTeX commands which are
smh22@2882 6 % processed in a special way by the translator.
smh22@2882 7 % For example, there are commands for embedding external hypertext links,
smh22@2882 8 % for cross-references between documents or for including raw HTML.
smh22@2882 9 % This file includes the comments.sty file v2.0 by Victor Eijkhout
smh22@2882 10 % In most cases these commands do nothing when processed by LaTeX.
smh22@2882 11 %
smh22@2882 12 % Place this file in a directory accessible to LaTeX (i.e., somewhere
smh22@2882 13 % in the TEXINPUTS path.)
smh22@2882 14 %
smh22@2882 15 % NOTE: This file works with LaTeX 2.09 or (the newer) LaTeX2e.
smh22@2882 16 % If you only have LaTeX 2.09, some complex LaTeX2HTML features
smh22@2882 17 % like support for segmented documents are not available.
smh22@2882 18
smh22@2882 19 % Changes:
smh22@2882 20 % See the change log at end of file.
smh22@2882 21
smh22@2882 22
smh22@2882 23 % Exit if the style file is already loaded
smh22@2882 24 % (suggested by Lee Shombert <las@potomac.wash.inmet.com>
smh22@2882 25 \ifx \htmlstyloaded\relax \endinput\else\let\htmlstyloaded\relax\fi
smh22@2882 26 \makeatletter
smh22@2882 27
smh22@2882 28 \providecommand{\latextohtml}{\LaTeX2\texttt{HTML}}
smh22@2882 29
smh22@2882 30
smh22@2882 31 %%% LINKS TO EXTERNAL DOCUMENTS
smh22@2882 32 %
smh22@2882 33 % This can be used to provide links to arbitrary documents.
smh22@2882 34 % The first argumment should be the text that is going to be
smh22@2882 35 % highlighted and the second argument a URL.
smh22@2882 36 % The hyperlink will appear as a hyperlink in the HTML
smh22@2882 37 % document and as a footnote in the dvi or ps files.
smh22@2882 38 %
smh22@2882 39 \newcommand{\htmladdnormallinkfoot}[2]{#1\footnote{#2}}
smh22@2882 40
smh22@2882 41
smh22@2882 42 % This is an alternative definition of the command above which
smh22@2882 43 % will ignore the URL in the dvi or ps files.
smh22@2882 44 \newcommand{\htmladdnormallink}[2]{#1}
smh22@2882 45
smh22@2882 46
smh22@2882 47 % This command takes as argument a URL pointing to an image.
smh22@2882 48 % The image will be embedded in the HTML document but will
smh22@2882 49 % be ignored in the dvi and ps files.
smh22@2882 50 %
smh22@2882 51 \newcommand{\htmladdimg}[1]{}
smh22@2882 52
smh22@2882 53
smh22@2882 54 %%% CROSS-REFERENCES BETWEEN (LOCAL OR REMOTE) DOCUMENTS
smh22@2882 55 %
smh22@2882 56 % This can be used to refer to symbolic labels in other Latex
smh22@2882 57 % documents that have already been processed by the translator.
smh22@2882 58 % The arguments should be:
smh22@2882 59 % #1 : the URL to the directory containing the external document
smh22@2882 60 % #2 : the path to the labels.pl file of the external document.
smh22@2882 61 % If the external document lives on a remote machine then labels.pl
smh22@2882 62 % must be copied on the local machine.
smh22@2882 63 %
smh22@2882 64 %e.g. \externallabels{http://cbl.leeds.ac.uk/nikos/WWW/doc/tex2html/latex2html}
smh22@2882 65 % {/usr/cblelca/nikos/tmp/labels.pl}
smh22@2882 66 % The arguments are ignored in the dvi and ps files.
smh22@2882 67 %
smh22@2882 68 \newcommand{\externallabels}[2]{}
smh22@2882 69
smh22@2882 70
smh22@2882 71 % This complements the \externallabels command above. The argument
smh22@2882 72 % should be a label defined in another latex document and will be
smh22@2882 73 % ignored in the dvi and ps files.
smh22@2882 74 %
smh22@2882 75 \newcommand{\externalref}[1]{}
smh22@2882 76
smh22@2882 77
smh22@2882 78 % Suggested by Uffe Engberg (http://www.brics.dk/~engberg/)
smh22@2882 79 % This allows the same effect for citations in external bibliographies.
smh22@2882 80 % An \externallabels command must be given, locating a labels.pl file
smh22@2882 81 % which defines the location and keys used in the external .html file.
smh22@2882 82 %
smh22@2882 83 \newcommand{\externalcite}{\nocite}
smh22@2882 84
smh22@2882 85
smh22@2882 86 %%% HTMLRULE
smh22@2882 87 % This command adds a horizontal rule and is valid even within
smh22@2882 88 % a figure caption.
smh22@2882 89 % Here we introduce a stub for compatibility.
smh22@2882 90 \newcommand{\htmlrule}{\protect\HTMLrule}
smh22@2882 91 \newcommand{\HTMLrule}{\@ifstar\htmlrulestar\htmlrulestar}
smh22@2882 92 \newcommand{\htmlrulestar}[1]{}
smh22@2882 93
smh22@2882 94 % This command adds information within the <BODY> ... </BODY> tag
smh22@2882 95 %
smh22@2882 96 \newcommand{\bodytext}[1]{}
smh22@2882 97 \newcommand{\htmlbody}{}
smh22@2882 98
smh22@2882 99
smh22@2882 100 %%% HYPERREF
smh22@2882 101 % Suggested by Eric M. Carol <eric@ca.utoronto.utcc.enfm>
smh22@2882 102 % Similar to \ref but accepts conditional text.
smh22@2882 103 % The first argument is HTML text which will become ``hyperized''
smh22@2882 104 % (underlined).
smh22@2882 105 % The second and third arguments are text which will appear only in the paper
smh22@2882 106 % version (DVI file), enclosing the fourth argument which is a reference to a label.
smh22@2882 107 %
smh22@2882 108 %e.g. \hyperref{using the tracer}{using the tracer (see Section}{)}{trace}
smh22@2882 109 % where there is a corresponding \label{trace}
smh22@2882 110 %
smh22@2882 111 \newcommand{\hyperref}{\hyperrefx[ref]}
smh22@2882 112 \def\hyperrefx[#1]{{\def\next{#1}%
smh22@2882 113 \def\tmp{ref}\ifx\next\tmp\aftergroup\hyperrefref
smh22@2882 114 \else\def\tmp{pageref}\ifx\next\tmp\aftergroup\hyperpageref
smh22@2882 115 \else\def\tmp{page}\ifx\next\tmp\aftergroup\hyperpageref
smh22@2882 116 \else\def\tmp{noref}\ifx\next\tmp\aftergroup\hypernoref
smh22@2882 117 \else\def\tmp{no}\ifx\next\tmp\aftergroup\hypernoref
smh22@2882 118 \else\typeout{*** unknown option \next\space to hyperref ***}%
smh22@2882 119 \fi\fi\fi\fi\fi}}
smh22@2882 120 \newcommand{\hyperrefref}[4]{#2\ref{#4}#3}
smh22@2882 121 \newcommand{\hyperpageref}[4]{#2\pageref{#4}#3}
smh22@2882 122 \newcommand{\hypernoref}[3]{#2}
smh22@2882 123
smh22@2882 124
smh22@2882 125 %%% HYPERCITE --- added by RRM
smh22@2882 126 % Suggested by Stephen Simpson <simpson@math.psu.edu>
smh22@2882 127 % effects the same ideas as in \hyperref, but for citations.
smh22@2882 128 % It does not allow an optional argument to the \cite, in LaTeX.
smh22@2882 129 %
smh22@2882 130 % \hypercite{<html-text>}{<LaTeX-text>}{<opt-text>}{<key>}
smh22@2882 131 %
smh22@2882 132 % uses the pre/post-texts in LaTeX, with a \cite{<key>}
smh22@2882 133 %
smh22@2882 134 % \hypercite[ext]{<html-text>}{<LaTeX-text>}{<key>}
smh22@2882 135 %
smh22@2882 136 % uses the pre/post-texts in LaTeX, with a \nocite{<key>}
smh22@2882 137 % the actual reference comes from an \externallabels file.
smh22@2882 138 %
smh22@2882 139 \newcommand{\hypercite}{\hypercitex[int]}
smh22@2882 140 \def\hypercitex[#1]{{\def\next{#1}%
smh22@2882 141 \def\tmp{int}\ifx\next\tmp\aftergroup\hyperciteint
smh22@2882 142 \else\def\tmp{cite}\ifx\next\tmp\aftergroup\hyperciteint
smh22@2882 143 \else\def\tmp{ext}\ifx\next\tmp\aftergroup\hyperciteext
smh22@2882 144 \else\def\tmp{nocite}\ifx\next\tmp\aftergroup\hyperciteext
smh22@2882 145 \else\def\tmp{no}\ifx\next\tmp\aftergroup\hyperciteext
smh22@2882 146 \else\typeout{*** unknown option \next\space to hypercite ***}%
smh22@2882 147 \fi\fi\fi\fi\fi}}
smh22@2882 148 \newcommand{\hyperciteint}[4]{#2{\def\tmp{#3}\def\emptyopt{}%
smh22@2882 149 \ifx\tmp\emptyopt\cite{#4}\else\cite[#3]{#4}\fi}}
smh22@2882 150 \newcommand{\hyperciteext}[3]{#2\nocite{#3}}
smh22@2882 151
smh22@2882 152
smh22@2882 153
smh22@2882 154 %%% HTMLREF
smh22@2882 155 % Reference in HTML version only.
smh22@2882 156 % Mix between \htmladdnormallink and \hyperref.
smh22@2882 157 % First arg is text for in both versions, second is label for use in HTML
smh22@2882 158 % version.
smh22@2882 159 \newcommand{\htmlref}[2]{#1}
smh22@2882 160
smh22@2882 161 %%% HTMLCITE
smh22@2882 162 % Reference in HTML version only.
smh22@2882 163 % Mix between \htmladdnormallink and \hypercite.
smh22@2882 164 % First arg is text for in both versions, second is citation for use in HTML
smh22@2882 165 % version.
smh22@2882 166 \newcommand{\htmlcite}[2]{#1}
smh22@2882 167
smh22@2882 168
smh22@2882 169 %%% HTMLIMAGE
smh22@2882 170 % This command can be used inside any environment that is converted
smh22@2882 171 % into an inlined image (eg a "figure" environment) in order to change
smh22@2882 172 % the way the image will be translated. The argument of \htmlimage
smh22@2882 173 % is really a string of options separated by commas ie
smh22@2882 174 % [scale=<scale factor>],[external],[thumbnail=<reduction factor>
smh22@2882 175 % The scale option allows control over the size of the final image.
smh22@2882 176 % The ``external'' option will cause the image not to be inlined
smh22@2882 177 % (images are inlined by default). External images will be accessible
smh22@2882 178 % via a hypertext link.
smh22@2882 179 % The ``thumbnail'' option will cause a small inlined image to be
smh22@2882 180 % placed in the caption. The size of the thumbnail depends on the
smh22@2882 181 % reduction factor. The use of the ``thumbnail'' option implies
smh22@2882 182 % the ``external'' option.
smh22@2882 183 %
smh22@2882 184 % Example:
smh22@2882 185 % \htmlimage{scale=1.5,external,thumbnail=0.2}
smh22@2882 186 % will cause a small thumbnail image 1/5th of the original size to be
smh22@2882 187 % placed in the final document, pointing to an external image 1.5
smh22@2882 188 % times bigger than the original.
smh22@2882 189 %
smh22@2882 190 \newcommand{\htmlimage}[1]{}
smh22@2882 191
smh22@2882 192
smh22@2882 193 % \htmlborder causes a border to be placed around an image or table
smh22@2882 194 % when the image is placed within a <TABLE> cell.
smh22@2882 195 \newcommand{\htmlborder}[1]{}
smh22@2882 196
smh22@2882 197 % Put \begin{makeimage}, \end{makeimage} around LaTeX to ensure its
smh22@2882 198 % translation into an image.
smh22@2882 199 % This shields sensitive text from being translated.
smh22@2882 200 \newenvironment{makeimage}{}{}
smh22@2882 201
smh22@2882 202
smh22@2882 203 % A dummy environment that can be useful to alter the order
smh22@2882 204 % in which commands are processed, in LaTeX2HTML
smh22@2882 205 \newenvironment{tex2html_deferred}{}{}
smh22@2882 206
smh22@2882 207
smh22@2882 208 %%% HTMLADDTONAVIGATION
smh22@2882 209 % This command appends its argument to the buttons in the navigation
smh22@2882 210 % panel. It is ignored by LaTeX.
smh22@2882 211 %
smh22@2882 212 % Example:
smh22@2882 213 % \htmladdtonavigation{\htmladdnormallink
smh22@2882 214 % {\htmladdimg{http://server/path/to/gif}}
smh22@2882 215 % {http://server/path}}
smh22@2882 216 \newcommand{\htmladdtonavigation}[1]{}
smh22@2882 217
smh22@2882 218
smh22@2882 219 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
smh22@2882 220 % Comment.sty version 2.0, 19 June 1992
smh22@2882 221 % selectively in/exclude pieces of text: the user can define new
smh22@2882 222 % comment versions, and each is controlled separately.
smh22@2882 223 % This style can be used with plain TeX or LaTeX, and probably
smh22@2882 224 % most other packages too.
smh22@2882 225 %
smh22@2882 226 % Examples of use in LaTeX and TeX follow \endinput
smh22@2882 227 %
smh22@2882 228 % Author
smh22@2882 229 % Victor Eijkhout
smh22@2882 230 % Department of Computer Science
smh22@2882 231 % University Tennessee at Knoxville
smh22@2882 232 % 104 Ayres Hall
smh22@2882 233 % Knoxville, TN 37996
smh22@2882 234 % USA
smh22@2882 235 %
smh22@2882 236 % eijkhout@cs.utk.edu
smh22@2882 237 %
smh22@2882 238 % Usage: all text included in between
smh22@2882 239 % \comment ... \endcomment
smh22@2882 240 % or \begin{comment} ... \end{comment}
smh22@2882 241 % is discarded. The closing command should appear on a line
smh22@2882 242 % of its own. No starting spaces, nothing after it.
smh22@2882 243 % This environment should work with arbitrary amounts
smh22@2882 244 % of comment.
smh22@2882 245 %
smh22@2882 246 % Other 'comment' environments are defined by
smh22@2882 247 % and are selected/deselected with
smh22@2882 248 % \includecomment{versiona}
smh22@2882 249 % \excludecoment{versionb}
smh22@2882 250 %
smh22@2882 251 % These environments are used as
smh22@2882 252 % \versiona ... \endversiona
smh22@2882 253 % or \begin{versiona} ... \end{versiona}
smh22@2882 254 % with the closing command again on a line of its own.
smh22@2882 255 %
smh22@2882 256 % Basic approach:
smh22@2882 257 % to comment something out, scoop up every line in verbatim mode
smh22@2882 258 % as macro argument, then throw it away.
smh22@2882 259 % For inclusions, both the opening and closing comands
smh22@2882 260 % are defined as noop
smh22@2882 261 %
smh22@2882 262 % Changed \next to \html@next to prevent clashes with other sty files
smh22@2882 263 % (mike@emn.fr)
smh22@2882 264 % Changed \html@next to \htmlnext so the \makeatletter and
smh22@2882 265 % \makeatother commands could be removed (they were causing other
smh22@2882 266 % style files - changebar.sty - to crash) (nikos@cbl.leeds.ac.uk)
smh22@2882 267 % Changed \htmlnext back to \html@next...
smh22@2882 268
smh22@2882 269 \def\makeinnocent#1{\catcode`#1=12 }
smh22@2882 270 \def\csarg#1#2{\expandafter#1\csname#2\endcsname}
smh22@2882 271
smh22@2882 272 \def\ThrowAwayComment#1{\begingroup
smh22@2882 273 \def\CurrentComment{#1}%
smh22@2882 274 \let\do\makeinnocent \dospecials
smh22@2882 275 \makeinnocent\^^L% and whatever other special cases
smh22@2882 276 \endlinechar`\^^M \catcode`\^^M=12 \xComment}
smh22@2882 277 {\catcode`\^^M=12 \endlinechar=-1 %
smh22@2882 278 \gdef\xComment#1^^M{\def\test{#1}\edef\test{\meaning\test}
smh22@2882 279 \csarg\ifx{PlainEnd\CurrentComment Test}\test
smh22@2882 280 \let\html@next\endgroup
smh22@2882 281 \else \csarg\ifx{LaLaEnd\CurrentComment Test}\test
smh22@2882 282 \edef\html@next{\endgroup\noexpand\end{\CurrentComment}}
smh22@2882 283 \else \csarg\ifx{LaInnEnd\CurrentComment Test}\test
smh22@2882 284 \edef\html@next{\endgroup\noexpand\end{\CurrentComment}}
smh22@2882 285 \else \let\html@next\xComment
smh22@2882 286 \fi \fi \fi \html@next}
smh22@2882 287 }
smh22@2882 288
smh22@2882 289 \def\includecomment
smh22@2882 290 #1{\expandafter\def\csname#1\endcsname{}%
smh22@2882 291 \expandafter\def\csname end#1\endcsname{}}
smh22@2882 292 \def\excludecomment
smh22@2882 293 #1{\expandafter\def\csname#1\endcsname{\ThrowAwayComment{#1}}%
smh22@2882 294 {\escapechar=-1\relax
smh22@2882 295 \edef\tmp{\string\\end#1}%
smh22@2882 296 \csarg\xdef{PlainEnd#1Test}{\meaning\tmp}%
smh22@2882 297 \edef\tmp{\string\\end\string\{#1\string\}}%
smh22@2882 298 \csarg\xdef{LaLaEnd#1Test}{\meaning\tmp}%
smh22@2882 299 \edef\tmp{\string\\end \string\{#1\string\}}%
smh22@2882 300 \csarg\xdef{LaInnEnd#1Test}{\meaning\tmp}%
smh22@2882 301 }}
smh22@2882 302
smh22@2882 303 \excludecomment{comment}
smh22@2882 304 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
smh22@2882 305 % end Comment.sty
smh22@2882 306 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
smh22@2882 307
smh22@2882 308 %
smh22@2882 309 % Alternative code by Robin Fairbairns, 22 September 1997
smh22@2882 310 %
smh22@2882 311 \newcommand\@gobbleenv{\let\reserved@a\@currenvir\@gobble@nv}
smh22@2882 312 \long\def\@gobble@nv#1\end#2{\def\reserved@b{#2}%
smh22@2882 313 \ifx\reserved@a\reserved@b
smh22@2882 314 \edef\reserved@a{\noexpand\end{\reserved@a}}%
smh22@2882 315 \expandafter\reserved@a
smh22@2882 316 \else
smh22@2882 317 \expandafter\@gobble@nv
smh22@2882 318 \fi}
smh22@2882 319
smh22@2882 320 \renewcommand{\excludecomment}[1]{%
smh22@2882 321 \csname newenvironment\endcsname{#1}{\@gobbleenv}{}}
smh22@2882 322
smh22@2882 323 %%% RAW HTML
smh22@2882 324 %
smh22@2882 325 % Enclose raw HTML between a \begin{rawhtml} and \end{rawhtml}.
smh22@2882 326 % The html environment ignores its body
smh22@2882 327 %
smh22@2882 328 \excludecomment{rawhtml}
smh22@2882 329
smh22@2882 330
smh22@2882 331 %%% HTML ONLY
smh22@2882 332 %
smh22@2882 333 % Enclose LaTeX constructs which will only appear in the
smh22@2882 334 % HTML output and will be ignored by LaTeX with
smh22@2882 335 % \begin{htmlonly} and \end{htmlonly}
smh22@2882 336 %
smh22@2882 337 \excludecomment{htmlonly}
smh22@2882 338 % Shorter version
smh22@2882 339 \newcommand{\html}[1]{}
smh22@2882 340
smh22@2882 341 % for images.tex only
smh22@2882 342 \excludecomment{imagesonly}
smh22@2882 343
smh22@2882 344 %%% LaTeX ONLY
smh22@2882 345 % Enclose LaTeX constructs which will only appear in the
smh22@2882 346 % DVI output and will be ignored by latex2html with
smh22@2882 347 %\begin{latexonly} and \end{latexonly}
smh22@2882 348 %
smh22@2882 349 \newenvironment{latexonly}{}{}
smh22@2882 350 % Shorter version
smh22@2882 351 \newcommand{\latex}[1]{#1}
smh22@2882 352
smh22@2882 353
smh22@2882 354 %%% LaTeX or HTML
smh22@2882 355 % Combination of \latex and \html.
smh22@2882 356 % Say \latexhtml{this should be latex text}{this html text}
smh22@2882 357 %
smh22@2882 358 %\newcommand{\latexhtml}[2]{#1}
smh22@2882 359 \long\def\latexhtml#1#2{#1}
smh22@2882 360
smh22@2882 361
smh22@2882 362 %%% tracing the HTML conversions
smh22@2882 363 % This alters the tracing-level within the processing
smh22@2882 364 % performed by latex2html by adjusting $VERBOSITY
smh22@2882 365 % (see latex2html.config for the appropriate values)
smh22@2882 366 %
smh22@2882 367 \newcommand{\htmltracing}[1]{}
smh22@2882 368 \newcommand{\htmltracenv}[1]{}
smh22@2882 369
smh22@2882 370
smh22@2882 371 %%% \strikeout for HTML only
smh22@2882 372 % uses <STRIKE>...</STRIKE> tags on the argument
smh22@2882 373 % LaTeX just gobbles it up.
smh22@2882 374 \newcommand{\strikeout}[1]{}
smh22@2882 375
smh22@2882 376
smh22@2882 377 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
smh22@2882 378 %%% JCL - stop input here if LaTeX2e is not present
smh22@2882 379 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
smh22@2882 380 \ifx\if@compatibility\undefined
smh22@2882 381 %LaTeX209
smh22@2882 382 \makeatother\relax\expandafter\endinput
smh22@2882 383 \fi
smh22@2882 384 \if@compatibility
smh22@2882 385 %LaTeX2e in LaTeX209 compatibility mode
smh22@2882 386 \makeatother\relax\expandafter\endinput
smh22@2882 387 \fi
smh22@2882 388
smh22@2882 389 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
smh22@2882 390 %
smh22@2882 391 % Start providing LaTeX2e extension:
smh22@2882 392 % This is currently:
smh22@2882 393 % - additional optional argument for \htmladdimg
smh22@2882 394 % - support for segmented documents
smh22@2882 395 %
smh22@2882 396
smh22@2882 397 \ProvidesPackage{html}
smh22@2882 398 [1996/12/22 v1.1 hypertext commands for latex2html (nd, hws, rrm)]
smh22@2882 399 %%%%MG
smh22@2882 400
smh22@2882 401 % This command takes as argument a URL pointing to an image.
smh22@2882 402 % The image will be embedded in the HTML document but will
smh22@2882 403 % be ignored in the dvi and ps files. The optional argument
smh22@2882 404 % denotes additional HTML tags.
smh22@2882 405 %
smh22@2882 406 % Example: \htmladdimg[ALT="portrait" ALIGN=CENTER]{portrait.gif}
smh22@2882 407 %
smh22@2882 408 \renewcommand{\htmladdimg}[2][]{}
smh22@2882 409
smh22@2882 410 %%% HTMLRULE for LaTeX2e
smh22@2882 411 % This command adds a horizontal rule and is valid even within
smh22@2882 412 % a figure caption.
smh22@2882 413 %
smh22@2882 414 % This command is best used with LaTeX2e and HTML 3.2 support.
smh22@2882 415 % It is like \hrule, but allows for options via key--value pairs
smh22@2882 416 % as follows: \htmlrule[key1=value1, key2=value2, ...] .
smh22@2882 417 % Use \htmlrule* to suppress the <BR> tag.
smh22@2882 418 % Eg. \htmlrule[left, 15, 5pt, "none", NOSHADE] produces
smh22@2882 419 % <BR CLEAR="left"><HR NOSHADE SIZE="15">.
smh22@2882 420 % Renew the necessary part.
smh22@2882 421 \renewcommand{\htmlrulestar}[1][all]{}
smh22@2882 422
smh22@2882 423 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
smh22@2882 424 %
smh22@2882 425 % renew some definitions to allow optional arguments
smh22@2882 426 %
smh22@2882 427 % The description of the options is missing, as yet.
smh22@2882 428 %
smh22@2882 429 \renewcommand{\latextohtml}{\textup{\LaTeX2\texttt{HTML}}}
smh22@2882 430 \renewcommand{\htmladdnormallinkfoot}[3][]{#2\footnote{#3}}
smh22@2882 431 \renewcommand{\htmladdnormallink}[3][]{#2}
smh22@2882 432 \renewcommand{\htmlbody}[1][]{}
smh22@2882 433 \renewcommand{\hyperref}[1][ref]{\hyperrefx[#1]}
smh22@2882 434 \renewcommand{\hypercite}[1][int]{\hypercitex[#1]}
smh22@2882 435 \renewcommand{\htmlref}[3][]{#2}
smh22@2882 436 \renewcommand{\htmlcite}[1]{#1\htmlcitex}
smh22@2882 437 \newcommand{\htmlcitex}[2][]{{\def\tmp{#1}\ifx\tmp\@empty\else~[#1]\fi}}
smh22@2882 438 \renewcommand{\htmlimage}[2][]{}
smh22@2882 439 \renewcommand{\htmlborder}[2][]{}
smh22@2882 440
smh22@2882 441
smh22@2882 442 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
smh22@2882 443 %
smh22@2882 444 % HTML HTMLset HTMLsetenv
smh22@2882 445 %
smh22@2882 446 % These commands do nothing in LaTeX, but can be used to place
smh22@2882 447 % HTML tags or set Perl variables during the LaTeX2HTML processing;
smh22@2882 448 % They are intended for expert use only.
smh22@2882 449
smh22@2882 450 \newcommand{\HTMLcode}[2][]{}
smh22@2882 451 \ifx\undefined\HTML\newcommand{\HTML}[2][]{}\else
smh22@2882 452 \typeout{*** Warning: \string\HTML\space had an incompatible definition ***}%
smh22@2882 453 \typeout{*** instead use \string\HTMLcode\space for raw HTML code ***}%
smh22@2882 454 \fi
smh22@2882 455 \newcommand{\HTMLset}[3][]{}
smh22@2882 456 \newcommand{\HTMLsetenv}[3][]{}
smh22@2882 457
smh22@2882 458 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
smh22@2882 459 %
smh22@2882 460 % The following commands pertain to document segmentation, and
smh22@2882 461 % were added by Herbert Swan <dprhws@edp.Arco.com> (with help from
smh22@2882 462 % Michel Goossens <goossens@cern.ch>):
smh22@2882 463 %
smh22@2882 464 %
smh22@2882 465 % This command inputs internal latex2html tables so that large
smh22@2882 466 % documents can to partitioned into smaller (more manageable)
smh22@2882 467 % segments.
smh22@2882 468 %
smh22@2882 469 \newcommand{\internal}[2][internals]{}
smh22@2882 470
smh22@2882 471 %
smh22@2882 472 % Define a dummy stub \htmlhead{}. This command causes latex2html
smh22@2882 473 % to define the title of the start of a new segment. It is not
smh22@2882 474 % normally placed in the user's document. Rather, it is passed to
smh22@2882 475 % latex2html via a .ptr file written by \segment.
smh22@2882 476 %
smh22@2882 477 \newcommand{\htmlhead}[3][]{}
smh22@2882 478
smh22@2882 479 % In the LaTeX2HTML version this will eliminate the title line
smh22@2882 480 % generated by a \segment command, but retains the title string
smh22@2882 481 % for use in other places.
smh22@2882 482 %
smh22@2882 483 \newcommand{\htmlnohead}{}
smh22@2882 484
smh22@2882 485
smh22@2882 486 % In the LaTeX2HTML version this put a URL into a <BASE> tag
smh22@2882 487 % within the <HEAD>...</HEAD> portion of a document.
smh22@2882 488 %
smh22@2882 489 \newcommand{\htmlbase}[1]{}
smh22@2882 490 %
smh22@2882 491
smh22@2882 492 %
smh22@2882 493 % The dummy command \endpreamble is needed by latex2html to
smh22@2882 494 % mark the end of the preamble in document segments that do
smh22@2882 495 % not contain a \begin{document}
smh22@2882 496 %
smh22@2882 497 \newcommand{\startdocument}{}
smh22@2882 498
smh22@2882 499
smh22@2882 500 % \tableofchildlinks, \htmlinfo
smh22@2882 501 % by Ross Moore --- extensions dated 27 September 1997
smh22@2882 502 %
smh22@2882 503 % These do nothing in LaTeX but for LaTeX2HTML they mark
smh22@2882 504 % where the table of child-links and info-page should be placed,
smh22@2882 505 % when the user wants other than the default.
smh22@2882 506 % \tableofchildlinks % put mini-TOC at this location
smh22@2882 507 % \tableofchildlinks[off] % not on current page
smh22@2882 508 % \tableofchildlinks[none] % not on current and subsequent pages
smh22@2882 509 % \tableofchildlinks[on] % selectively on current page
smh22@2882 510 % \tableofchildlinks[all] % on current and all subsequent pages
smh22@2882 511 % \htmlinfo % put info-page at this location
smh22@2882 512 % \htmlinfo[off] % no info-page in current document
smh22@2882 513 % \htmlinfo[none] % no info-page in current document
smh22@2882 514 % *-versions omit the preceding <BR> tag.
smh22@2882 515 %
smh22@2882 516 \newcommand{\tableofchildlinks}{%
smh22@2882 517 \@ifstar\tableofchildlinksstar\tableofchildlinksstar}
smh22@2882 518 \newcommand{\tableofchildlinksstar}[1][]{}
smh22@2882 519
smh22@2882 520 \newcommand{\htmlinfo}{\@ifstar\htmlinfostar\htmlinfostar}
smh22@2882 521 \newcommand{\htmlinfostar}[1][]{}
smh22@2882 522
smh22@2882 523
smh22@2882 524 % This redefines \begin to allow for an optional argument
smh22@2882 525 % which is used by LaTeX2HTML to specify `style-sheet' information
smh22@2882 526
smh22@2882 527 \let\realLaTeX@begin=\begin
smh22@2882 528 \renewcommand{\begin}[1][]{\realLaTeX@begin}
smh22@2882 529
smh22@2882 530
smh22@2882 531 %
smh22@2882 532 % Allocate a new set of section counters, which will get incremented
smh22@2882 533 % for "*" forms of sectioning commands, and for a few miscellaneous
smh22@2882 534 % commands.
smh22@2882 535 %
smh22@2882 536
smh22@2882 537 \newcounter{lpart}
smh22@2882 538 \newcounter{lchapter}[part]
smh22@2882 539 \@ifundefined{c@chapter}%
smh22@2882 540 {\let\Hchapter\relax \newcounter{lsection}[part]}%
smh22@2882 541 {\let\Hchapter=\chapter \newcounter{lsection}[chapter]}
smh22@2882 542 \newcounter{lsubsection}[section]
smh22@2882 543 \newcounter{lsubsubsection}[subsection]
smh22@2882 544 \newcounter{lparagraph}[subsubsection]
smh22@2882 545 \newcounter{lsubparagraph}[paragraph]
smh22@2882 546 \newcounter{lequation}
smh22@2882 547
smh22@2882 548 %
smh22@2882 549 % Redefine "*" forms of sectioning commands to increment their
smh22@2882 550 % respective counters.
smh22@2882 551 %
smh22@2882 552 \let\Hpart=\part
smh22@2882 553 %\let\Hchapter=\chapter
smh22@2882 554 \let\Hsection=\section
smh22@2882 555 \let\Hsubsection=\subsection
smh22@2882 556 \let\Hsubsubsection=\subsubsection
smh22@2882 557 \let\Hparagraph=\paragraph
smh22@2882 558 \let\Hsubparagraph=\subparagraph
smh22@2882 559 \let\Hsubsubparagraph=\subsubparagraph
smh22@2882 560
smh22@2882 561 \ifx\c@subparagraph\undefined
smh22@2882 562 \newcounter{lsubsubparagraph}[lsubparagraph]
smh22@2882 563 \else
smh22@2882 564 \newcounter{lsubsubparagraph}[subparagraph]
smh22@2882 565 \fi
smh22@2882 566
smh22@2882 567 %
smh22@2882 568 % The following definitions are specific to LaTeX2e:
smh22@2882 569 % (They must be commented out for LaTeX 2.09)
smh22@2882 570 %
smh22@2882 571 \renewcommand{\part}{\@ifstar{\stepcounter{lpart}%
smh22@2882 572 \bgroup\def\tmp{*}\H@part}{\bgroup\def\tmp{}\H@part}}
smh22@2882 573 \newcommand{\H@part}[1][]{\def\tmp@a{#1}\check@align
smh22@2882 574 \expandafter\egroup\expandafter\Hpart\tmp}
smh22@2882 575
smh22@2882 576 \ifx\Hchapter\relax\else
smh22@2882 577 \def\chapter{\resetsections \@ifstar{\stepcounter{lchapter}%
smh22@2882 578 \bgroup\def\tmp{*}\H@chapter}{\bgroup\def\tmp{}\H@chapter}}\fi
smh22@2882 579 \newcommand{\H@chapter}[1][]{\def\tmp@a{#1}\check@align
smh22@2882 580 \expandafter\egroup\expandafter\Hchapter\tmp}
smh22@2882 581
smh22@2882 582 \renewcommand{\section}{\resetsubsections
smh22@2882 583 \@ifstar{\stepcounter{lsection}\bgroup\def\tmp{*}%
smh22@2882 584 \H@section}{\bgroup\def\tmp{}\H@section}}
smh22@2882 585 \newcommand{\H@section}[1][]{\def\tmp@a{#1}\check@align
smh22@2882 586 \expandafter\egroup\expandafter\Hsection\tmp}
smh22@2882 587
smh22@2882 588 \renewcommand{\subsection}{\resetsubsubsections
smh22@2882 589 \@ifstar{\stepcounter{lsubsection}\bgroup\def\tmp{*}%
smh22@2882 590 \H@subsection}{\bgroup\def\tmp{}\H@subsection}}
smh22@2882 591 \newcommand{\H@subsection}[1][]{\def\tmp@a{#1}\check@align
smh22@2882 592 \expandafter\egroup\expandafter\Hsubsection\tmp}
smh22@2882 593
smh22@2882 594 \renewcommand{\subsubsection}{\resetparagraphs
smh22@2882 595 \@ifstar{\stepcounter{lsubsubsection}\bgroup\def\tmp{*}%
smh22@2882 596 \H@subsubsection}{\bgroup\def\tmp{}\H@subsubsection}}
smh22@2882 597 \newcommand{\H@subsubsection}[1][]{\def\tmp@a{#1}\check@align
smh22@2882 598 \expandafter\egroup\expandafter\Hsubsubsection\tmp}
smh22@2882 599
smh22@2882 600 \renewcommand{\paragraph}{\resetsubparagraphs
smh22@2882 601 \@ifstar{\stepcounter{lparagraph}\bgroup\def\tmp{*}%
smh22@2882 602 \H@paragraph}{\bgroup\def\tmp{}\H@paragraph}}
smh22@2882 603 \newcommand\H@paragraph[1][]{\def\tmp@a{#1}\check@align
smh22@2882 604 \expandafter\egroup\expandafter\Hparagraph\tmp}
smh22@2882 605
smh22@2882 606 \renewcommand{\subparagraph}{\resetsubsubparagraphs
smh22@2882 607 \@ifstar{\stepcounter{lsubparagraph}\bgroup\def\tmp{*}%
smh22@2882 608 \H@subparagraph}{\bgroup\def\tmp{}\H@subparagraph}}
smh22@2882 609 \newcommand\H@subparagraph[1][]{\def\tmp@a{#1}\check@align
smh22@2882 610 \expandafter\egroup\expandafter\Hsubparagraph\tmp}
smh22@2882 611
smh22@2882 612 \ifx\Hsubsubparagraph\relax\else\@ifundefined{subsubparagraph}{}{%
smh22@2882 613 \def\subsubparagraph{%
smh22@2882 614 \@ifstar{\stepcounter{lsubsubparagraph}\bgroup\def\tmp{*}%
smh22@2882 615 \H@subsubparagraph}{\bgroup\def\tmp{}\H@subsubparagraph}}}\fi
smh22@2882 616 \newcommand\H@subsubparagraph[1][]{\def\tmp@a{#1}\check@align
smh22@2882 617 \expandafter\egroup\expandafter\Hsubsubparagraph\tmp}
smh22@2882 618
smh22@2882 619 \def\check@align{\def\empty{}\ifx\tmp@a\empty
smh22@2882 620 \else\def\tmp@b{center}\ifx\tmp@a\tmp@b\let\tmp@a\empty
smh22@2882 621 \else\def\tmp@b{left}\ifx\tmp@a\tmp@b\let\tmp@a\empty
smh22@2882 622 \else\def\tmp@b{right}\ifx\tmp@a\tmp@b\let\tmp@a\empty
smh22@2882 623 \else\expandafter\def\expandafter\tmp@a\expandafter{\expandafter[\tmp@a]}%
smh22@2882 624 \fi\fi\fi \def\empty{}\ifx\tmp\empty\let\tmp=\tmp@a \else
smh22@2882 625 \expandafter\def\expandafter\tmp\expandafter{\expandafter*\tmp@a}%
smh22@2882 626 \fi\fi}
smh22@2882 627 %
smh22@2882 628 \def\resetsections{\setcounter{section}{0}\setcounter{lsection}{0}%
smh22@2882 629 \reset@dependents{section}\resetsubsections }
smh22@2882 630 \def\resetsubsections{\setcounter{subsection}{0}\setcounter{lsubsection}{0}%
smh22@2882 631 \reset@dependents{subsection}\resetsubsubsections }
smh22@2882 632 \def\resetsubsubsections{\setcounter{subsubsection}{0}\setcounter{lsubsubsection}{0}%
smh22@2882 633 \reset@dependents{subsubsection}\resetparagraphs }
smh22@2882 634 %
smh22@2882 635 \def\resetparagraphs{\setcounter{lparagraph}{0}\setcounter{lparagraph}{0}%
smh22@2882 636 \reset@dependents{paragraph}\resetsubparagraphs }
smh22@2882 637 \def\resetsubparagraphs{\ifx\c@subparagraph\undefined\else
smh22@2882 638 \setcounter{subparagraph}{0}\fi \setcounter{lsubparagraph}{0}%
smh22@2882 639 \reset@dependents{subparagraph}\resetsubsubparagraphs }
smh22@2882 640 \def\resetsubsubparagraphs{\ifx\c@subsubparagraph\undefined\else
smh22@2882 641 \setcounter{subsubparagraph}{0}\fi \setcounter{lsubsubparagraph}{0}}
smh22@2882 642 %
smh22@2882 643 \def\reset@dependents#1{\begingroup\let \@elt \@stpelt
smh22@2882 644 \csname cl@#1\endcsname\endgroup}
smh22@2882 645 %
smh22@2882 646 %
smh22@2882 647 % Define a helper macro to dump a single \secounter command to a file.
smh22@2882 648 %
smh22@2882 649 \newcommand{\DumpPtr}[2]{%
smh22@2882 650 \count255=\arabic{#1}\def\dummy{dummy}\def\tmp{#2}%
smh22@2882 651 \ifx\tmp\dummy\else\advance\count255 by \arabic{#2}\fi
smh22@2882 652 \immediate\write\ptrfile{%
smh22@2882 653 \noexpand\setcounter{#1}{\number\count255}}}
smh22@2882 654
smh22@2882 655 %
smh22@2882 656 % Define a helper macro to dump all counters to the file.
smh22@2882 657 % The value for each counter will be the sum of the l-counter
smh22@2882 658 % actual LaTeX section counter.
smh22@2882 659 % Also dump an \htmlhead{section-command}{section title} command
smh22@2882 660 % to the file.
smh22@2882 661 %
smh22@2882 662 \newwrite\ptrfile
smh22@2882 663 \def\DumpCounters#1#2#3#4{%
smh22@2882 664 \begingroup\let\protect=\noexpand
smh22@2882 665 \immediate\openout\ptrfile = #1.ptr
smh22@2882 666 \DumpPtr{part}{lpart}%
smh22@2882 667 \ifx\Hchapter\relax\else\DumpPtr{chapter}{lchapter}\fi
smh22@2882 668 \DumpPtr{section}{lsection}%
smh22@2882 669 \DumpPtr{subsection}{lsubsection}%
smh22@2882 670 \DumpPtr{subsubsection}{lsubsubsection}%
smh22@2882 671 \DumpPtr{paragraph}{lparagraph}%
smh22@2882 672 \DumpPtr{subparagraph}{lsubparagraph}%
smh22@2882 673 \DumpPtr{equation}{lequation}%
smh22@2882 674 \DumpPtr{footnote}{dummy}%
smh22@2882 675 \def\tmp{#4}\ifx\tmp\@empty
smh22@2882 676 \immediate\write\ptrfile{\noexpand\htmlhead{#2}{#3}}\else
smh22@2882 677 \immediate\write\ptrfile{\noexpand\htmlhead[#4]{#2}{#3}}\fi
smh22@2882 678 \dumpcitestatus \dumpcurrentcolor
smh22@2882 679 \immediate\closeout\ptrfile
smh22@2882 680 \endgroup }
smh22@2882 681
smh22@2882 682
smh22@2882 683 %% interface to natbib.sty
smh22@2882 684
smh22@2882 685 \def\dumpcitestatus{}
smh22@2882 686 \def\loadcitestatus{\def\dumpcitestatus{%
smh22@2882 687 \ifciteindex\immediate\write\ptrfile{\noexpand\citeindextrue}%
smh22@2882 688 \else\immediate\write\ptrfile{\noexpand\citeindexfalse}\fi }%
smh22@2882 689 }
smh22@2882 690 \@ifpackageloaded{natbib}{\loadcitestatus}{%
smh22@2882 691 \AtBeginDocument{\@ifpackageloaded{natbib}{\loadcitestatus}{}}}
smh22@2882 692
smh22@2882 693
smh22@2882 694 %% interface to color.sty
smh22@2882 695
smh22@2882 696 \def\dumpcurrentcolor{}
smh22@2882 697 \def\loadsegmentcolors{%
smh22@2882 698 \let\real@pagecolor=\pagecolor
smh22@2882 699 \let\pagecolor\segmentpagecolor
smh22@2882 700 \let\segmentcolor\color
smh22@2882 701 \ifx\current@page@color\undefined \def\current@page@color{{}}\fi
smh22@2882 702 \def\dumpcurrentcolor{\bgroup\def\@empty@{{}}%
smh22@2882 703 \expandafter\def\expandafter\tmp\space####1@{\def\thiscol{####1}}%
smh22@2882 704 \ifx\current@color\@empty@\def\thiscol{}\else
smh22@2882 705 \expandafter\tmp\current@color @\fi
smh22@2882 706 \immediate\write\ptrfile{\noexpand\segmentcolor{\thiscol}}%
smh22@2882 707 \ifx\current@page@color\@empty@\def\thiscol{}\else
smh22@2882 708 \expandafter\tmp\current@page@color @\fi
smh22@2882 709 \immediate\write\ptrfile{\noexpand\segmentpagecolor{\thiscol}}%
smh22@2882 710 \egroup}%
smh22@2882 711 \global\let\loadsegmentcolors=\relax
smh22@2882 712 }
smh22@2882 713
smh22@2882 714 % These macros are needed within images.tex since this inputs
smh22@2882 715 % the <segment>.ptr files for a segment, so that counters are
smh22@2882 716 % colors are synchronised.
smh22@2882 717 %
smh22@2882 718 \newcommand{\segmentpagecolor}[1][]{%
smh22@2882 719 \@ifpackageloaded{color}{\loadsegmentcolors\bgroup
smh22@2882 720 \def\tmp{#1}\ifx\@empty\tmp\def\next{[]}\else\def\next{[#1]}\fi
smh22@2882 721 \expandafter\segmentpagecolor@\next}%
smh22@2882 722 {\@gobble}}
smh22@2882 723 \def\segmentpagecolor@[#1]#2{\def\tmp{#1}\def\tmpB{#2}%
smh22@2882 724 \ifx\tmpB\@empty\let\next=\egroup
smh22@2882 725 \else
smh22@2882 726 \let\realendgroup=\endgroup
smh22@2882 727 \def\endgroup{\edef\next{\noexpand\realendgroup
smh22@2882 728 \def\noexpand\current@page@color{\current@color}}\next}%
smh22@2882 729 \ifx\tmp\@empty\real@pagecolor{#2}\def\model{}%
smh22@2882 730 \else\real@pagecolor[#1]{#2}\def\model{[#1]}%
smh22@2882 731 \fi
smh22@2882 732 \edef\next{\egroup\def\noexpand\current@page@color{\current@page@color}%
smh22@2882 733 \noexpand\real@pagecolor\model{#2}}%
smh22@2882 734 \fi\next}
smh22@2882 735 %
smh22@2882 736 \newcommand{\segmentcolor}[2][named]{\@ifpackageloaded{color}%
smh22@2882 737 {\loadsegmentcolors\segmentcolor[#1]{#2}}{}}
smh22@2882 738
smh22@2882 739 \@ifpackageloaded{color}{\loadsegmentcolors}{\let\real@pagecolor=\@gobble
smh22@2882 740 \AtBeginDocument{\@ifpackageloaded{color}{\loadsegmentcolors}{}}}
smh22@2882 741
smh22@2882 742
smh22@2882 743 % Define the \segment[align]{file}{section-command}{section-title} command,
smh22@2882 744 % and its helper macros. This command does four things:
smh22@2882 745 % 1) Begins a new LaTeX section;
smh22@2882 746 % 2) Writes a list of section counters to file.ptr, each
smh22@2882 747 % of which represents the sum of the LaTeX section
smh22@2882 748 % counters, and the l-counters, defined above;
smh22@2882 749 % 3) Write an \htmlhead{section-title} command to file.ptr;
smh22@2882 750 % 4) Inputs file.tex.
smh22@2882 751
smh22@2882 752 \def\segment{\@ifstar{\@@htmls}{\@@html}}
smh22@2882 753 \def\endsegment{}
smh22@2882 754 \newcommand{\@@htmls}[1][]{\@@htmlsx{#1}}
smh22@2882 755 \newcommand{\@@html}[1][]{\@@htmlx{#1}}
smh22@2882 756 \def\@@htmlsx#1#2#3#4{\csname #3\endcsname* {#4}%
smh22@2882 757 \DumpCounters{#2}{#3*}{#4}{#1}\input{#2}}
smh22@2882 758 \def\@@htmlx#1#2#3#4{\csname #3\endcsname {#4}%
smh22@2882 759 \DumpCounters{#2}{#3}{#4}{#1}\input{#2}}
smh22@2882 760
smh22@2882 761 \makeatother
smh22@2882 762 \endinput
smh22@2882 763
smh22@2882 764
smh22@2882 765 % Modifications:
smh22@2882 766 %
smh22@2882 767 % (The listing of Initiales see Changes)
smh22@2882 768
smh22@2882 769 % $Log: html.sty,v $
smh22@2882 770 % Revision 1.23 1998/02/26 10:32:24 latex2html
smh22@2882 771 % -- use \providecommand for \latextohtml
smh22@2882 772 % -- implemented \HTMLcode to do what \HTML did previously
smh22@2882 773 % \HTML still works, unless already defined by another package
smh22@2882 774 % -- fixed problems remaining with undefined \chapter
smh22@2882 775 % -- defined \endsegment
smh22@2882 776 %
smh22@2882 777 % Revision 1.22 1997/12/05 11:38:18 RRM
smh22@2882 778 % -- implemented an optional argument to \begin for style-sheet info.
smh22@2882 779 % -- modified use of an optional argument with sectioning-commands
smh22@2882 780 %
smh22@2882 781 % Revision 1.21 1997/11/05 10:28:56 RRM
smh22@2882 782 % -- replaced redefinition of \@htmlrule with \htmlrulestar
smh22@2882 783 %
smh22@2882 784 % Revision 1.20 1997/10/28 02:15:58 RRM
smh22@2882 785 % -- altered the way some special html-macros are defined, so that
smh22@2882 786 % star-variants are explicitly defined for LaTeX
smh22@2882 787 % -- it is possible for these to occur within images.tex
smh22@2882 788 % e.g. \htmlinfostar \htmlrulestar \tableofchildlinksstar
smh22@2882 789 %
smh22@2882 790 % Revision 1.19 1997/10/11 05:47:48 RRM
smh22@2882 791 % -- allow the dummy {tex2html_nowrap} environment in LaTeX
smh22@2882 792 % use it to make its contents be evaluated in environment order
smh22@2882 793 %
smh22@2882 794 % Revision 1.18 1997/10/04 06:56:50 RRM
smh22@2882 795 % -- uses Robin Fairbairns' code for ignored environments,
smh22@2882 796 % replacing the previous comment.sty stuff.
smh22@2882 797 % -- extensions to the \tableofchildlinks command
smh22@2882 798 % -- extensions to the \htmlinfo command
smh22@2882 799 %
smh22@2882 800 % Revision 1.17 1997/07/08 11:23:39 RRM
smh22@2882 801 % include value of footnote counter in .ptr files for segments
smh22@2882 802 %
smh22@2882 803 % Revision 1.16 1997/07/03 08:56:34 RRM
smh22@2882 804 % use \textup within the \latextohtml macro
smh22@2882 805 %
smh22@2882 806 % Revision 1.15 1997/06/15 10:24:58 RRM
smh22@2882 807 % new command \htmltracenv as environment-ordered \htmltracing
smh22@2882 808 %
smh22@2882 809 % Revision 1.14 1997/06/06 10:30:37 RRM
smh22@2882 810 % - new command: \htmlborder puts environment into a <TABLE> cell
smh22@2882 811 % with a border of specified width, + other attributes.
smh22@2882 812 % - new commands: \HTML for setting arbitrary HTML tags, with attributes
smh22@2882 813 % \HTMLset for setting Perl variables, while processing
smh22@2882 814 % \HTMLsetenv same as \HTMLset , but it gets processed
smh22@2882 815 % as if it were an environment.
smh22@2882 816 % - new command: \latextohtml --- to set the LaTeX2HTML name/logo
smh22@2882 817 % - fixed some remaining problems with \segmentcolor & \segmentpagecolor
smh22@2882 818 %
smh22@2882 819 % Revision 1.13 1997/05/19 13:55:46 RRM
smh22@2882 820 % alterations and extra options to \hypercite
smh22@2882 821 %
smh22@2882 822 % Revision 1.12 1997/05/09 12:28:39 RRM
smh22@2882 823 % - Added the optional argument to \htmlhead, also in \DumpCounters
smh22@2882 824 % - Implemented \HTMLset as a no-op in LaTeX.
smh22@2882 825 % - Fixed a bug in accessing the page@color settings.
smh22@2882 826 %
smh22@2882 827 % Revision 1.11 1997/03/26 09:32:40 RRM
smh22@2882 828 % - Implements LaTeX versions of \externalcite and \hypercite commands.
smh22@2882 829 % Thanks to Uffe Engberg and Stephen Simpson for the suggestions.
smh22@2882 830 %
smh22@2882 831 % Revision 1.10 1997/03/06 07:37:58 RRM
smh22@2882 832 % Added the \htmltracing command, for altering $VERBOSITY .
smh22@2882 833 %
smh22@2882 834 % Revision 1.9 1997/02/17 02:26:26 RRM
smh22@2882 835 % - changes to counter handling (RRM)
smh22@2882 836 % - shuffled around some definitions
smh22@2882 837 % - changed \htmlrule of 209 mode
smh22@2882 838 %
smh22@2882 839 % Revision 1.8 1997/01/26 09:04:12 RRM
smh22@2882 840 % RRM: added optional argument to sectioning commands
smh22@2882 841 % \htmlbase sets the <BASE HREF=...> tag
smh22@2882 842 % \htmlinfo and \htmlinfo* allow the document info to be positioned
smh22@2882 843 %
smh22@2882 844 % Revision 1.7 1997/01/03 12:15:44 L2HADMIN
smh22@2882 845 % % - fixes to the color and natbib interfaces
smh22@2882 846 % % - extended usage of \hyperref, via an optional argument.
smh22@2882 847 % % - extended use comment environments to allow shifting expansions
smh22@2882 848 % % e.g. within \multicolumn (`bug' reported by Luc De Coninck).
smh22@2882 849 % % - allow optional argument to: \htmlimage, \htmlhead,
smh22@2882 850 % % \htmladdimg, \htmladdnormallink, \htmladdnormallinkfoot
smh22@2882 851 % % - added new commands: \htmlbody, \htmlnohead
smh22@2882 852 % % - added new command: \tableofchildlinks
smh22@2882 853 %
smh22@2882 854 % Revision 1.6 1996/12/25 03:04:54 JCL
smh22@2882 855 % added patches to segment feature from Martin Wilck
smh22@2882 856 %
smh22@2882 857 % Revision 1.5 1996/12/23 01:48:06 JCL
smh22@2882 858 % o introduced the environment makeimage, which may be used to force
smh22@2882 859 % LaTeX2HTML to generate an image from the contents.
smh22@2882 860 % There's no magic, all what we have now is a defined empty environment
smh22@2882 861 % which LaTeX2HTML will not recognize and thus pass it to images.tex.
smh22@2882 862 % o provided \protect to the \htmlrule commands to allow for usage
smh22@2882 863 % within captions.
smh22@2882 864 %
smh22@2882 865 % Revision 1.4 1996/12/21 19:59:22 JCL
smh22@2882 866 % - shuffled some entries
smh22@2882 867 % - added \latexhtml command
smh22@2882 868 %
smh22@2882 869 % Revision 1.3 1996/12/21 12:22:59 JCL
smh22@2882 870 % removed duplicate \htmlrule, changed \htmlrule back not to create a \hrule
smh22@2882 871 % to allow occurrence in caption
smh22@2882 872 %
smh22@2882 873 % Revision 1.2 1996/12/20 04:03:41 JCL
smh22@2882 874 % changed occurrence of \makeatletter, \makeatother
smh22@2882 875 % added new \htmlrule command both for the LaTeX2.09 and LaTeX2e
smh22@2882 876 % sections
smh22@2882 877 %
smh22@2882 878 %
smh22@2882 879 % jcl 30-SEP-96
smh22@2882 880 % - Stuck the commands commonly used by both LaTeX versions to the top,
smh22@2882 881 % added a check which stops input or reads further if the document
smh22@2882 882 % makes use of LaTeX2e.
smh22@2882 883 % - Introduced rrm's \dumpcurrentcolor and \bodytext
smh22@2882 884 % hws 31-JAN-96 - Added support for document segmentation
smh22@2882 885 % hws 10-OCT-95 - Added \htmlrule command
smh22@2882 886 % jz 22-APR-94 - Added support for htmlref
smh22@2882 887 % nd - Created