}\IgnorePar}{\end:env}
\ConfigureEnv{abstract}{}{}{}{}
\Configure{thanks}{\HCode{}}{\HCode{ }}
\Configure{subjclass}
{\ShowPar\par\HCode{}\bgroup
\Configure{HtmlPar}{\HCode{ }}
{\HCode{ }}{}{}}
{\egroup\HCode{ }}
\Configure{translators}{\HCode{}}{\HCode{ }}
>>>
\<<<
{\Configure{maketitle}{}{}{}{}%
\a:NoSection |\more:no \let\thanks|=\:gobble
\let\\|=\empty \def\TeX{TeX}%
\def\gobble:font##1##2{##2}\:TITLE: \no:fonts
\Tag{TITLE+}{\@title}}
>>>
\<<<
\let\leavevmode|=\empty \let\not@math@alphabet|=\:gobbleII
\def\text@command##1{##1}\let\selectfont|=\empty
\def\check@icl ##1\check@icr{}%
>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Footnotes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\<32,4 plain\><<<
\Configure{vfootnote}
{\HPageButton[fn\FNnum]{\FNmark}}
{\BeginHPage[fn\FNnum]{ }}
{\EndHPage{}}
>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{LaTeX}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\<<<
|
|
>>>
\<<<
\Configure{footnotetext}
{|%
\leavevmode \Link{}{|}%
\NoFonts
}
{\EndNoFonts \EndLink}
{|}
>>>
\<<<
\Configure{footnotemark}
{\leavevmode |\NoFonts
\Tag{|}{}}
{\EndNoFonts |}
>>>
\<<<
\ifTag{|}
{\expandafter\ifx\csname (|)\endcsname\def
\:warning{Multiple footnote texts for mark \FNnum}%
\else \HPage{}\fi
}
{}%
>>>
\<<<
\ifTag{|}
{\expandafter\ifx\csname (|)\endcsname\def
\else \EndHPage{}\fi
}
{}%
\expandafter\global\expandafter
\let\csname (|)\endcsname\def
>>>
\<<<
\ifTag{| |}
{\Link{|}{}}
{}%
>>>
\<<<
\ifTag{| |}
{\EndLink}
{}%
>>>
\<<<
fn\FNnum x\minipageNum
>>>
\ <<<
)Q>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{AMS}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\<<<
|
|
>>>
\<<<
\Configure{footnotetext}
{|%
\HCode{}\Link{}{|}%
\NoFonts
}
{\EndNoFonts \EndLink \HCode{ }}
{|}
>>>
\<<<
\Configure{footnotemark}
{\HCode{}|\NoFonts
\Tag{|}{}}
{\EndNoFonts |\HCode{ }}
>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Floating}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%
\section{Wrapfig}
%%%%%%%%%%%%%%%%%
\<<<
\Configure{wrapfloat}
{\getWFplace
\ifvmode\IgnorePar\EndP
\HCode{}%
\def\endWrap{\ifvmode\IgnorePar\fi\EndP\HCode{
}\par}%
\else
\HCode{}\bgroup
|%
\def\endWrap{\egroup\HCode{ }}%
\fi
}
{\endWrap}
\def\getWFplace{%
\let\:tempa=\empty
\def\:temp##1r##2//{\if !##2!\else
\def\:tempa{align="left"}\fi}%
\expandafter\:temp\WFplace l//%
\def\:temp##1r##2//{\if !##2!\else
\def\:tempa{align="right"}\fi}%
\expandafter\:temp\WFplace r//%
\let\WFplace=\:tempa }
>>>
\<<<
\Configure{caption}
{\HCode{}}
{\HCode{ }: }{}{\HCode{ }}%
>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Etc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\<0,32,4 preambles\><<<
|
|
\Configure{Preamble}
{|} {}
>>>
\<<<
{\ifdim \lastskip>\z@ \unskip\fi \IgnorePar\parindent\z@
\leavevmode}%
\writesixteen{--- file \aa:CssFile\space ---}%
\ht:special{t4ht>\aa:CssFile}\ht:special{t4ht=\Hnewline /* css.sty */}%
\ht:special{t4ht<\aa:CssFile}%
>>>
\verb'\special' are like \verb'\hbox', and they so they may introduve empty lines in
vertical mode. That might be a problem if we don't want empty lines at
the start of the files. Hence, in latex we give them special treatment.
\<<<
\ScriptCommand{\CssFile}{%
\writesixteen{--- file \aa:CssFile\space ---}%
\def\FontSize##1##2{\:Context{##1}\ht:special{t4ht;\%##2}\%}%
\def\FontName##1{\:Context{##1}\ht:special{t4ht;=}}%
\def\:Context##1{\ht:special{t4ht>\jobname.tmp}##1\ht:special
{t4ht>\aa:CssFile}}%
\ht:special{t4ht>\jobname.tmp}\ht:special{t4ht>\aa:CssFile}\bb:CssFile
\hfil\break\NoFonts}{\EndNoFonts
\ht:special{t4ht<\aa:CssFile}\ht:special{t4ht<\jobname.tmp}}
\let\Css:File|=\CssFile
\def\CssFile{\futurelet\:temp\Css:Fl}
\def\Css:Fl{\ifx [\:temp \expandafter\Css:fl
\else \expand:after{\Css:File \space}\fi}
\def\Css:fl[#1]{\Css:File\space \css:files #1,,|}
\def\css:files#1,#2|{\def\:temp{#1}\ifx \:temp\empty
\else \def\:temp{\in:css#1.|\css:files#2,,|}\fi
\:temp }
\def\in:css#1.#2|{\def\:temp{#2}\ifx \:temp\empty \input #1.css
\else \inc:ss#1.#2|\fi}
\def\inc:ss#1.|{\input #1 }
\NewConfigure{CssFile}[2]{\def\aa:CssFile{#1}\def\bb:CssFile{#2}}
>>>
\verb'\CssFile[file-name,filename.ext,..]...\EndCssFile'.
Default file, just in case the user doesn't provide one. If
the user does, the following file will be overwritten.
Can't use below \verb'\a:CssFile' and \verb'\b:CssFile', because
\verb'\ScriptFile{\CssFile}' also needs them.
\verb'\Css' changes its definition upon reachin \verb'\CssFile'. The
first definition is needed within the sty files, and the info is
sent to the lg file (where else it can be sent?).
\<<<
\def\Css#1{{\def\:temp{\Configure{Needs}}%
\expandafter\:temp\expandafter{\aa:Css}\Needs{#1}}}
\let\send:css|=\Css
\ScriptCommand{\Css}{\HCode{}}
\let\loc:css|=\Css
\def\Css{\futurelet\:temp\:Css}
\def\:Css{\ifx \:temp\bgroup \expandafter\send:css
\else \expandafter\loc:css\fi}
>>>
\<<<
\tmp:cnt|=\time \divide\tmp:cnt |by 60
\edef\:temp{\the\tmp:cnt}
\multiply\tmp:cnt |by -60 \advance\tmp:cnt |by \time
\edef\:today{\the\year-\ifnum \month<10 0\fi
\the\month-\ifnum \day<10 0\fi\the\day
\space\ifnum \:temp<10 0\fi \:temp
:\ifnum \tmp:cnt<10 0\fi\the\tmp:cnt :00}
>>>
\<<<
\:CheckOption{hooks++} \if:Option
\else \:CheckOption{hooks+}
\if:Option \else \:CheckOption{hooks}\fi
\fi
\if:Option
\Configure{hooks}
{\HCode{<}}{\HCode{> }}{}{}
\fi
>>>
The following provides a faster version
than \verb'\LinkCommand\Link{a,href,name,}' for the \verb'\Link'
command
\<32,4 tex4ht\><<<
\Configure{Link}{a}{href=}{name=}{}
>>>
\section{article}
\<<<
|
|
|
|
|
>>>
\<32,4 report,book\><<<
\ConfigureEnv{description}{\IgnorePar}{}{}{}
>>>
\section{alsart}
\<<<
|<32,4 elsart|>
\Configure{abstract}{\HCode{<\tbl:XV{abstract}>}}{\end:env}
\Configure{keyword}{\HCode{<\tbl:XV{keyword}> }}{\end:env}
\Configure{title}
{\IgnorePar\EndP\Tg\NoFonts}
{\EndNoFonts\Tg }
>>>
\<32,4 elsart\><<<
\ConfigureEnv{frontmatter}
{\EndP\IgnorePar
\HCode{<\tbl:XV{frontmatter}> }}
{\IgnorePar\EndP\HCode{
}\end:TTT\IgnorePar}
{}{}
>>>
\section{report}
\<32,4 report\><<<
\Configure{chapter}{}{}
{\IgnorePar\EndP\HCode{}%
\chaptername \ \thechapter\HCode{ }}
{\HCode{ }\IgnoreIndent}
\Configure{chapterTITLE+}{\thechapter\space#1}
>>>
\<32,4 report,book\><<<
\Configure{appendix}{}{}
{\IgnorePar\EndP\HCode{}
\appendixname \ \thechapter\HCode{ }}
{\HCode{ }\IgnoreIndent}
\Configure{appendixTITLE+}{\thechapter\space#1}
\Configure{likechapter}{}{}
{\IgnorePar\EndP\HCode{}}
{\HCode{ }\IgnoreIndent}
\Configure{endchapter}{likechapter,appendix,part,likepart}
\Configure{endlikechapter}{chapter,appendix,part,likepart}
\Configure{endappendix}{chapter,likechapter,part,likepart}
>>>
\section{book}
\<32,4 book\><<<
\Configure{chapter}{}{}
{\IgnorePar\EndP\HCode{}
\if@mainmatter \chaptername \ \thechapter\HCode{ }\fi}
{\HCode{ }\IgnoreIndent}
\Configure{chapterTITLE+}{\if@mainmatter\thechapter\space\fi#1}
\renewcommand\thechapter {\if@mainmatter\@arabic\c@chapter\fi}
>>>
%%%%%%%%%%%%%%%%%%%%%%%
\section{latex.ltx}
%%%%%%%%%%%%%%%%%%%%
\<<<
\:CheckOption{7} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
| |%cut toc before cutat|%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\else
| |%cut toc before cutat|%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fi
\else\:CheckOption{6} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
| |%cut toc before cutat|%
|
|
|
|
|
|
|
|
|
|
|
|
|
\else
| |%cut toc before cutat|%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fi
\else \:CheckOption{5} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
| |%cut toc before cutat|%
|
|
|
|
|
|
|
|
|
|
\else
| |%cut toc before cutat|%
|
|
|
|
|
|
|
|
|
|
|
|
|
\fi
\else\:CheckOption{4} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
| |%cut toc before cutat|%
|
|
|
|
|
|
|
\else
| |%cut toc before cutat|%
|
|
|
|
|
|
|
|
|
|
\fi
\else\:CheckOption{3} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
| |%cut toc before cutat|%
|
|
|
|
|
|
|
\else
| |%cut toc before cutat|%
|
|
|
|
|
|
|
\fi
\else\:CheckOption{2} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
| |%cut toc before cutat|%
|
|
|
|
\else
| |%cut toc before cutat|%
|
|
|
|
\fi
\else\:CheckOption{1} \if:Option
| |%cut toc before cutat|%
|
\else
\Log:Note{for automatic sectioning
pagination, use the command line option
`1', `2', `3', '4', '5', '6', or '7'}%
\fi \fi \fi \fi \fi \fi \fi
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
|
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
>>>
\<<<
\CutAt{part}
\CutAt{likepart}
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\TocAt*{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
>>>
\<<<
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
|
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection,likesubsection\fi}
\fi
>>>
\<<<
\CutAt{chapter,likechapter,appendix,part}
\CutAt{likechapter,appendix,part}
\CutAt{appendix,chapter,likechapter,part}
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
|
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\TocAt*{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\TocAt*{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
>>>
\<<<
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{chapter,/likechapter,/appendix,/part,%
section,subsection}
\TocAt*{likechapter,/appendix,/chapter,/part,%
section,subsection}
\TocAt*{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\TocAt*{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\TocAt*{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
|
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
>>>
\<<<
\CutAt{subsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\TocAt*{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\TocAt*{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
|
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\TocAt*{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\TocAt*{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
|
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{paragraph,/subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
|
\TocAt*{paragraph,/subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subparagraph}
\fi
\fi
>>>
\<<<
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,%
paragraph,subparagraph}
\else
|
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph,subparagraph}
\fi
>>>
\<<<
\CutAt{subsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
>>>
\<<<
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
>>>
\<<<
\CutAt{subparagraph,paragraph,subsubsection,likesubsubsection,%
subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
>>>
%%%%%%%%%%%%%%%%%%%%%%%
% ltplain.dtx
%%%%%%%%%%%%%%%%%%%%%%%
\subsection{obeylines}
%%%%%%%%%%%%%%%%%%%%%%%
% ltspace.dtx
%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Spaces}
\<32,4 latex\><<<
\Configure{hspace}{}{}{\:nbsp}
>>>
%%%%%%%%%%%%%%%%%%%%%%%
% ltlogos.dtx
%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Logos}
%%%%%%%%%%%%%%%%%%%%%%%
% ltoutenc.dtx
%%%%%%%%%%%%%%%%%%%%%%%
\<0,32,4 plain,latex accents\><<<
\:CheckOption{new-accents} \if:Option
|
\else
|