% html4.4ht (2026-05-25-13:26), generated from tex4ht-html4.tex
% Copyright 2009-2026 TeX Users Group
% Copyright 1997-2009 Eitan M. Gurari
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
% https://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
% of LaTeX version 2005/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainer of this work
% is the TeX4ht Project .
%
% If you modify this program, changing the
% version identification would be appreciated.
\immediate\write-1{version 2026-05-25-13:26}
\exit:ifnot{8859-6,%
CJK,%
IEEEtran,%
JHEP,%
Preamble,%
ProTex,%
SIunits,%
aa,%
abidir,%
accessibility,%
acm-proc-article-sp,%
adjustbox,%
algorithm,%
algorithmic,%
algorithmicx,%
alltt,%
alphanum,%
amsart,%
amsbook,%
amscd,%
amsdtx,%
amsmath,%
amsppt,%
amsproc,%
amstex1,%
amsthm,%
animate,%
apa,%
appendix,%
arabicore,%
array,%
article,%
austrian,%
awesomebox,%
babel,%
background,%
beamer,%
biblatex,%
bibtopic,%
book,%
booktabs,%
boxedminipage,%
bussproofs,%
cancel,%
catalan,%
cgloss4e,%
changepage,%
chapterbib,%
chemfig,%
chessboard,%
color,%
colortbl,%
context,%
contour,%
covington,%
cp1250,%
cp1252,%
cp1256,%
cp437,%
cp437de,%
cp850,%
cp852,%
cp862,%
cp865,%
croatian,%
csquotes,%
curve,%
czech,%
danish,%
debug,%
diagram,%
diagrams,%
doc,%
dratex,%
dutch,%
elsart,%
emulateapj,%
endfloat,%
endnotes,%
english,%
enotez,%
enumerate,%
enumitem,%
epigraph,%
eplain,%
epsf,%
esperant,%
estonian,%
europecv,%
eurosym,%
exam,%
exerquiz,%
fancybox,%
fancyvrb,%
finnish,%
floatflt,%
foils,%
fontspec,%
framed,%
francais,%
french,%
frenchb,%
g-brief,%
galician,%
german,%
germanb,%
gloss,%
glossaries,%
glossary,%
go,%
graphics,%
graphicx,%
greek,%
harvard,%
hebrew,%
hebtex,%
hyperref,%
index,%
jeep,%
jurabib,%
jurabook,%
koi8-r,%
latex,%
latin1,%
latin2,%
letter,%
lettrine,%
lineno,%
linguex,%
listings,%
llncs,%
lncse,%
longdiv,%
longtable,%
ltugboat,%
ltugproc,%
ltxguide,%
lua-ul,%
manju,%
manmac,%
marginnote,%
mdframed,%
mdwlist,%
mdwtab,%
memoir,%
mex,%
mfpic,%
mhchem,%
microtype,%
minitoc,%
minted,%
mls,%
moderncv,%
moreverb,%
multicol,%
multind,%
multirow,%
mwart,%
mwbk,%
mwrep,%
ngerman,%
ngermanb,%
nicefrac,%
nomencl,%
norsk,%
ntheorem,%
ot4enc,%
overpic,%
pagenote,%
paralist,%
parallel,%
path,%
pb-diagram,%
pd1enc,%
pgf,%
picins,%
pictex,%
pifont,%
piton,%
plain,%
polish,%
polski,%
polyglossia,%
portuges,%
powerdot,%
proof,%
prosper,%
psfig,%
pst-all,%
pstricks,%
pythontex,%
reading,%
report,%
res,%
resume,%
revtex4,%
rlbabel,%
romanian,%
rotating,%
russianb,%
scottish,%
scrartcl,%
scrbook,%
scrjura,%
scrreprt,%
sectionbreak,%
seminar,%
seslideb,%
sistyle,%
siunitx,%
skak,%
slides,%
slidesec,%
slovak,%
slovene,%
soul,%
spanish,%
subcaption,%
subeqnarray,%
subfigure,%
subscript,%
supertabular,%
sverb,%
swedish,%
syntax,%
t2benc,%
tabto,%
tabularray,%
tabularx,%
tabulary,%
tasks,%
tcilatex,%
tcolorbox,%
tcolorbox.documentation,%
tex4ht,%
tex4ht2,%
texinfo,%
texmate,%
th4,%
threeparttable,%
titlesec,%
transparent,%
tugboat,%
turkish,%
ukraineb,%
ulem,%
url,%
usorbian,%
vanilla,%
verbatim,%
verse,%
vowel,%
web,%
welsh,%
wrapfig,%
writer,%
xcolor,%
xskak,%
xy}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{Preamble}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET}
\:CheckOption{mouseover} \if:Option
\:CheckOption{xhtml} \if:Option \else
\:CheckOption{DOCTYPE} \if:Option
\Log:Note{to request a DOCTYPE declaration
use the command line option `DOCTYPE'}
\else
\edef\Preamble{\Preamble,no-DOCTYPE}
\fi
\fi
\fi
\:CheckOption{no-DOCTYPE} \if:Option
\:CheckOption{no-VERSION} \if:Option
\Configure{PROLOG}{*XML-STYLESHEET}
\else
\Configure{PROLOG}{VERSION,*XML-STYLESHEET}
\Log:Note{to remove the processing instruction
use the command line option `no-VERSION'}
\fi
\else
\:CheckOption{no-VERSION} \if:Option
\Configure{PROLOG}{DOCTYPE,*XML-STYLESHEET}
\else
\Log:Note{to remove the processing instruction
use the command line option `no-VERSION'}
\fi
\Log:Note{to remove the DOCTYPE declaration
use the command line option `no-DOCTYPE'}
\fi
\:CheckOption{frames-fn} \if:Option
\edef\Preamble{\Preamble,frames}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NewConfigure{frames-altDOCTYPE}{1}
\Configure{frames-altDOCTYPE}
{\:CheckOption{xhtml} \if:Option
\Configure{VERSION}
{\HCode{\Hnewline}}
%
\Configure{DOCTYPE}
{\HCode{ \Hnewline
\Hnewline}}
\def\xhtml:DOCTYPE{PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//\expandafter
\ifx \csname a:dtd-lang\endcsname\relax EN\else
\csname a:dtd-lang\endcsname
\fi
"\Hnewline
\space\space
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"}
\Configure{@DOCTYPE}
{\Hnewline\%xhtml.dtd; \Hnewline}
%
\def\:DTD{xhtml}
\else
\Configure{DOCTYPE}{\IgnorePar\HCode
{
\Hnewline}}
%
\fi
}
\:CheckOption{7}
\if:Option \else \:CheckOption{6}\fi
\if:Option \else \:CheckOption{5}\fi
\if:Option \else \:CheckOption{4}\fi
\if:Option \else \:CheckOption{3}\fi
\if:Option \else \:CheckOption{2}\fi
\if:Option \else \:CheckOption{1}\fi
\if:Option
\:CheckOption{sec-filename}
\if:Option
\Configure{CutAt-filename}{%
\ifx \:NxtNwFN\:Undef
\tmp:toks={#2}%
\immediate\openout15=\jobname .tmp
\immediate\write15{\string\next{\the\tmp:toks}}%
\immediate\closeout15
\bgroup
\def\next{\csname no:catcodes\endcsname{92}{92}{9}%
\xdef\:temp}%
\csname no:catcodes\endcsname{32}{47}{9}%
\csname no:catcodes\endcsname{58}{64}{9}%
\csname no:catcodes\endcsname{91}{91}{9}%
\csname no:catcodes\endcsname{93}{96}{9}%
\csname no:catcodes\endcsname{126}{126}{9}%
\csname a:sec-filename*\endcsname
\input \jobname .tmp
\egroup
%
\immediate\openout15=\jobname .tmp
\immediate\write15{\string\next[\:temp]}%
\immediate\closeout15
\bgroup
\def\next{\xdef\:temp}%
\csname no:catcodes\endcsname{91}{91}{1}%
\csname no:catcodes\endcsname{93}{93}{2}%
\csname no:catcodes\endcsname{123}{123}{9}%
\csname no:catcodes\endcsname{125}{125}{9}%
\input \jobname .tmp
\egroup
%
\tmp:cnt=0 \uniq:fn
\fi
}
\def\uniq:fn{%
\expandafter\ifx
\csname ct:fn\:temp
\ifnum \tmp:cnt>0 \the\tmp:cnt\fi\endcsname\relax
\expandafter\global\expandafter\let
\csname ct:fn\:temp
\ifnum\tmp:cnt>0 \the\tmp:cnt\fi
\endcsname=\def
\ifx \:temp\empty \else
\NextFile{\:temp
\ifnum \tmp:cnt>0 \the\tmp:cnt\fi .\:html}%
\fi
\else
\advance\tmp:cnt by 1 \expandafter\uniq:fn
\fi
}
\NewConfigure{sec-filename*}{1}
\else
\Log:Note{For section filenames that reflect on
their titles use the command line
option `sec-filename'}
\:CheckOption{cut-fullname}
\if:Option
\let\j:bname\jobname
\def\fx:pt#1xxx!*?: {%
\expandafter\ifx \csname big:#1:\endcsname\relax%
\expandafter\gHAssign\csname big:#1:\endcsname 0 \fi%
\expandafter\gHAdvance\csname big:#1:\endcsname 1%
\edef\big:fn{#1\csname big:#1:\endcsname}}
\else
\Log:Note{For section filenames that use full
jobname and section type use the command line
option `cut-fullname'}
\:CheckOption{sec-slugname}
\if:Option
\ifdefined\directlua
\directlua{
local chardata = require "make4ht-char-def"
local uchar = utf8.char
local function is_letter(info)
%-- test if character is letter
local category = info.category or ""
return category:match("^l")
end
local function is_number(char)
return char >= 48 and char <= 57
end
local function is_space(info)
local category = info.category or ""
return category == "zs"
end
% this code is reused from make4ht sectionid DOM filter
% it will convert accented characters to ASCII
local function normalize_letter(char, result)
local info = chardata[char] or {}
% -- first get lower case of the letter
local lowercase = info.lccode or char
%-- remove accents. the base letter is in the shcode field
local lowerinfo = chardata[lowercase] or {}
%-- when no shcode, use the current lowercase char
local shcode = lowerinfo.shcode or lowercase
%-- shcode can be table if it contains multiple characters
%-- normaliz it to a table, so we can add all letters to
%-- the resulting string
shcode = type(shcode) == "table" and shcode or {shcode}
for _, x in ipairs(shcode) do
table.insert(result, uchar(x))
end
end
local used_names = {}
function tex4ht_sanitize_section_name(filename)
% name = unicode.utf8.lower(name)
local result = {}
% create table with slugified characters
for _,char in utf8.codes(filename) do
local info = chardata[char] or {}
if is_space(info) then
%-- replace spaces with underscores
table.insert(result, "_")
elseif is_letter(info) then
normalize_letter(char, result)
elseif is_number(char) then
% the make4ht char library doesn't contain Unicode data for numbers, so we need to check them manually
table.insert(result, uchar(char))
end
end
% -- convert table with normalized characters to string
local name = table.concat(result)
% -- handle multiple names with the same name
local count = used_names[name] or 0
used_names[name] = count + 1
% add numeric suffix to the name if there are duplicates
% we need to use a different separator before the number, to prevent clashes
% with sections that contains numbers at the end
name = count > 0 and name .. "-" .. count or name
% register also the name with the suffix, to prevent filename clashes
return name
end
}
\ExplSyntaxOn
\Configure{CutAt-filename}{\expandafter\NextFile\expandafter{\directlua{
% remove commands from the section name and pass it to the slugify function
tex.print(tex4ht_sanitize_section_name("\luaescapestring{\text_purify:n{#2}}"))
}.html}}
\ExplSyntaxOff
\else
\:warning{The `sec-slugname' option requires LuaTeX. Try `sec-filename' with other engines.}%
\fi
\else
\Log:Note{For section filenames based on slugified
titles use the command line option `sec-slugname'}
\fi
\fi
\fi
\fi
\def\getClass#1{\expandafter
\ifx \csname a:#1Class\endcsname\relax\else
\csname a:#1Class\endcsname
\fi}
\def\afterGetClass#1{\csname b:#1Class\endcsname}
\if:latex \Hinclude{\input #1.4ht}{latex}
\else \ifx \contextversion\Un:def
\Hinclude{\input #1.4ht}{plain}
\def\:temp{t}%
\ifx \eplain\:temp
\Hinclude{\input #1.4ht}{eplain}
\fi
\def\:temp{M\kern-.111em\lower.6ex\hbox{E}\kern-.075emX}
\ifx \nM@X\:temp
\expandafter\ifx\csname emulateplain\endcsname\relax \else
\Hinclude{\input #1.4ht}{mex}
\fi\fi
\ifx \d@nger\:UnDef \else
\let\leftheadline\empty
\let\rightheadline\empty
\Hinclude{\input #1.4ht}{manmac}
\fi
\else
\Hinclude{\input #1.4ht}{context}
\fi
\fi
\NewConfigure{charset}[1]{\def\a:charset{#1}}
\def\:temp#1charset=#2,#3!*?: {%
\if !#2!%
\Log:Note{for alternative charset, use
the command line option `charset=...'}
\else \Configure{charset}{charset=#2}\fi}
\expandafter\:temp\Preamble ,charset=,!*?:
\Configure{Link}{a}{href=}{id=}{}
\:CheckOption{NoFonts} \if:Option
\NoFonts
\else
\Log:Note{to ignore CSS font decoration, use the `NoFonts'
command line option}
\fi
\Configure{HVerbatim+}{\z@}{\:nbsp}
\:CheckOption{jpg} \if:Option
\Configure{Picture}{.jpg}
\else
\Log:Note{for jpg bitmaps of pictures, use the `jpg'
command line option. (Character bitmaps are controled only by `g' records of tex4ht.env and `-g'
switches of tex4ht.c)
}
\fi
\:CheckOption{gif} \if:Option
\Configure{Picture}{.gif}
\else
\Log:Note{for gif bitmaps of pictures, use the `gif'
command line option. (Character bitmaps are controled only by `g' records of tex4ht.env and `-g'
switches of tex4ht.c)
}
\fi
\:CheckOption{hooks++} \if:Option
\else \:CheckOption{hooks+}
\if:Option \else \:CheckOption{hooks}\fi
\fi
\if:Option
\Configure{hooks}
{\HCode{<}}{\HCode{>}}{}{}
\fi
\:CheckOption{-css} \if:Option
\def\Css#1{}
\NewConfigure{CssFile}{2}
\else
\ScriptCommand{\CssFile}{%
\immediate\write-1{--- 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}%
\bgroup \everypar{}\NoFonts \bb:CssFile \hfil\break}
{\egroup \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
\inc:ss#1.css!*?:
\else \inc:ss#1.#2!*?: \fi}
\def\inc:ss#1.!*?: { \immediate\openin15=#1
\ifeof15 \immediate\closein15
\:warning{Missing file: #1}%
\else \immediate\closein15 \input #1 \fi
}
\NewConfigure{CssFile}[2]{\def\aa:CssFile{#1}\def\bb:CssFile{#2}}
\def\Css#1{{\def\:temp{\Configure{Needs}}%
\let\%\prcnt:ch%
\expandafter\:temp\expandafter{\aa:Css}\Needs{#1}}}
\begingroup
\catcode`\{ = 12 \catcode`\} = 12
\catcode`\[ = 1 \catcode`\] = 2
\gdef\:lbracechar[{]%
\gdef\:rbracechar[}]%
\endgroup
% #1 media query, such as screen. Leave blank if the media query is universal
% #2 condition, such as min-width: 600px
\def\CssMediaQueryStart#1#2{\Css{@media\ifx\relax#1\relax\else\space#1 and \fi(#2)\:lbracechar}}
\def\CssMediaQueryEnd{\Css{\:rbracechar}}
\Configure{Preamble}
{{\ifdim \lastskip>\z@ \unskip\fi \IgnorePar\parindent\z@
\leavevmode}%
\immediate\write-1{--- file \aa:CssFile\space ---}%
\ht:special{t4ht>\aa:CssFile}\ht:special{t4ht=\Hnewline /* css.sty */}%
\ht:special{t4ht<\aa:CssFile}%
} {}
\fi
\ifx \a:FontCss:\:UnDef
\Configure{FontCss}{Font\string_Css##1}
{Font\string_Css\string_Plus\space##1}
\fi
\expandafter\ifx \csname aa:Css\endcsname\relax
\Configure{Css}{Css: ##1}
\fi
\:CheckOption{edit} \if:Option
\Configure{edit}{\HCode{<}}{\HCode{>}}
{<}{>}
\fi
\:CheckOption{hooks++} \if:Option
\else \:CheckOption{hooks+} \if:Option
\else \:CheckOption{hooks} \if:Option
\fi\fi\fi
\if:Option
\Configure{hooks}
{\HCode{<}}{\HCode{>}}{}{}
\fi
\Configure{ExitHPage}{exit}{exit }{}
\Configure{TocLink}{\Link{#2}{#3}#4\ifvmode\IgnorePar\fi\EndLink}
\Configure{MiniHalign}{\hlg:a}{\hlg:b}\hlg:c\hlg:d{\hlg:e}\hlg:f
\:CheckOption{no-halign} \if:Option \else
\Configure{noalign-}{}{}
\fi
\Configure{PictureAlt*+}
{\let\sv:HtmlPar\HtmlPar \let\HtmlPar\empty
\def\PsCode##1{{\ht:special{\PsCodeSpecial##1}}}%
%
\iffalse{\fi
\let\sv:halign\halign
\let\sv:cr\cr
\let\sv:crcr\crcr
\iffalse}\fi
\RecallTeXcr \let\halign \TeXhalign
%
\NoFonts\csname PauseMathClass\endcsname \SUBOff \SUPOff
\let\HCode\:gobble
\let\EndPicture\empty}
{\let\HCode\:HCode
\let\EndPicture\:UnDef \let\HtmlPar\sv:HtmlPar \SUBOn \SUPOn
\csname EndPauseMathClass\endcsname \EndNoFonts
\iffalse{\fi
\let\halign\sv:halign
\let\cr\sv:cr
\let\crcr\sv:crcr
\iffalse}\fi
%
\let\PsCode\relax
}
\NewConfigure{AddCss}[1]{%
{\Configure{Needs}{File: #1}\Needs{}}
\Configure{@HEAD}{\HCode{\Hnewline}}
}
\NewConfigure{AddJs}[1]{%
{\Configure{Needs}{File: #1}\Needs{}}
\Configure{@HEAD}{\HCode{\Hnewline\Hnewline}}
}
% \newcommand\AddFontFace[4]{%
\def\AddFontFace#1#2#3#4{%
\Css{@font-face {
font-family: #1;
src: local("#2"),
url('#3');
#4
}}
{\Configure{Needs}{File: #3}\Needs{}}
}
% If more font families are used, they need to have different names
\NewConfigure{FontFamily}{2}
\Configure{FontFamily}{rmfamily}{Latin Modern}
% Declarations for common font styles, just local family name and font file name are needed to be provided
\NewConfigure{NormalFont}[1]{\AddFontFace{\a:FontFamily}{\b:FontFamily}{#1}{font-weight: normal;font-style: normal;}}
\NewConfigure{BoldFont}[1]{\AddFontFace{\a:FontFamily}{\b:FontFamily}{#1}{font-weight: bold;font-style: normal;}}
\NewConfigure{ItalicFont}[1]{\AddFontFace{\a:FontFamily}{\b:FontFamily}{#1}{font-weight: normal;font-style: italic;}}
\NewConfigure{BoldItalicFont}[1]{\AddFontFace{\a:FontFamily}{\b:FontFamily}{#1}{font-weight: bold;font-style: italic;}}
\Configure{writetoc}{}
\Configure{CutAtTITLE+}{}
\Configure{HPageTITLE+}{}
\Configure{AtBeginDocument}
{\edef\recallcatcodes{%
\catcode`\noexpand\_\the\catcode`\_
\catcode`\noexpand\^\the\catcode`\^ }%
\catcode`\_=8\catcode`\^=7}
{\recallcatcodes}
\Configure{crosslinks}{[}{]
}{next}{prev}{prev-tail}{front}{tail}{up}
\:CheckOption{next} \if:Option
\Configure{next+}
{\ShowPar\par\noindent \HCode{}[}
{]\HCode{}}
\Css{@media print {span.next {visibility:hidden;}}}
\fi
\Configure{halignTB}{\HCode{
}\ShowPar}
{\HCode{ }} {}
\:CheckOption{fulltoc} \if:Option
% this configures list of sectioning types that should be included in the full TOC
\NewConfigure{fulltocsections}{1}
\Configure{fulltocsections}{chapter,likechapter,section,likesection,subsection,likesubsection}
\NewConfigure{sitetitle}{1}
\Configure{sitetitle}{\LikeRef{TITLE+}}
% print site header and the hamburger menu button
\NewConfigure{siteheader}{1}
\Configure{siteheader}{\ifvmode\IgnorePar\fi\EndP\HCode{\Hnewline
\a:sitetitle
\Hnewline
}}
\Configure{@BODY}{\a:siteheader}
% put full TOC on each page
\Configure{crosslinks+}{%
\bgroup
% container for the page toc
\Configure{tableofcontents}{\IgnorePar\EndP\HCode{\Hnewline}\ShowPar}{}{}%
\expandafter\TableOfContents\expandafter[\a:fulltocsections]% Print table of contents before crosslinks
\egroup
\ifvmode\IgnorePar\fi\EndP%
\HCode{\Hnewline\Hnewline}}%
{\ifvmode\IgnorePar\fi\EndP%
\HCode{}}{}{}
% configuration for TOC on the main page, it is not configured by the previous command
% we added also the bookTOC class, so that we can style it differently than minitocs on subpages
\Configure{tableofcontents}{\IgnorePar\EndP\HCode{\Hnewline\Hnewline}\ShowPar}{}{}%
% close the element started in \Configure{crosslinks+} and \Configure{tableofcontents}
\Configure{@/BODY}{\ifvmode\IgnorePar\fi\EndP\HCode{}}
\Css{nav.TOC > span{display:block;}}
\def\:declaresectionnumberlink#1{%
% these configurations are inspired by this post: https://tex.stackexchange.com/a/523739/2891
\expandafter\def\csname toc#1\endcsname##1##2##3{%
% configure the toclink so that the number is within the link
\Configure{TocLink}{\Link{####2}{####3}##1 ####4\EndLink}%
\HCode{}##2\HCode{}}%
\expandafter\def\csname toclike#1\endcsname##1##2##3{%
% configure the toclink so that the number is within the link
\Configure{TocLink}{\Link{####2}{####3}##1 ####4\EndLink}%
\HCode{}##2\HCode{}}%
}
\def\:tocsectionnumberlinks{%
\:declaresectionnumberlink{part}%
\:declaresectionnumberlink{chapter}%
\:declaresectionnumberlink{section}%
\:declaresectionnumberlink{subsection}%
\:declaresectionnumberlink{subsubsection}%
}
\NewConfigure{body:width}{2}
\NewConfigure{body:padding}{2}
\NewConfigure{maintoc:width}{2}
\NewConfigure{maintoc:padding}{2}
\NewConfigure{header:height}{2}
\NewConfigure{header:padding}{2}
\NewConfigure{footer:height}{2}
\Configure{body:width}{80}{ch}
\Configure{body:padding}{2}{ch}
\Configure{maintoc:width}{30}{ch}
\Configure{maintoc:padding}{2}{ch}
\Configure{header:height}{3}{rem}
\Configure{header:padding}{1}{ch}
\Configure{footer:height}{2}{ch}
\NewConfigure{maintoc:background}{1}
\NewConfigure{maintoc:color}{1}
\NewConfigure{maintoc:hover}{1}
\NewConfigure{header:background}{1}
\NewConfigure{header:color}{1}
\NewConfigure{footer:background}{1}
\Configure{maintoc:background}{\#2E3A3F}
\Configure{maintoc:color}{\#E6F0EF}
\Configure{maintoc:hover}{\#00AFA0}
\Configure{header:background}{\#B8D8D5}
\Configure{header:color}{\#2C3E50}
\Configure{footer:background}{\#DDD}
\AtBeginDocument{%
% execute it in
\Css{:root{
--maintoc-width: \csname a:maintoc:width\endcsname\csname b:maintoc:width\endcsname;
--maintoc-background: \csname a:maintoc:background\endcsname;
--maintoc-padding: \csname a:maintoc:padding\endcsname\csname b:maintoc:padding\endcsname;
--maintoc-color: \csname a:maintoc:color\endcsname;
--maintoc-hover: \csname a:maintoc:hover\endcsname;
--body-width: \csname a:body:width\endcsname\csname b:body:width\endcsname;
--body-padding: \csname a:body:padding\endcsname\csname b:body:padding\endcsname;
--header-background: \csname a:header:background\endcsname;
--header-color: \csname a:header:color\endcsname;
--header-height: \csname a:header:height\endcsname\csname b:header:height\endcsname;
--header-padding: \csname a:header:padding\endcsname\csname b:header:padding\endcsname;
--footer-height: \csname a:footer:height\endcsname\csname b:footer:height\endcsname;
--footer-background: \csname a:footer:background\endcsname;
}}
}
\Css{*, *::before, *::after {
box-sizing: border-box;
}}
\Css{* {
margin: 0;
}}
\Css{nav.TOC,main.main-content,header.header-bar, .maketitle {
box-sizing: border-box;
}}
\Css{nav.TOC {
position: fixed;
top: var(--header-height);
left: 0;
width: var(--maintoc-width);
height: 100vh;
overflow-y: auto;
background-color: var(--maintoc-background);
color: var(--maintoc-color);
overflow-y: scroll;
scrollbar-color: \#888 var(--maintoc-background);
scrollbar-width: thin;
padding: var(--maintoc-padding);
}}
\Css{nav.TOC a {
color: var(--maintoc-color);
text-decoration: none;
}}
\Css{nav.TOC a:hover, nav.TOC a:focus {
color: var(--maintoc-hover);
text-decoration: underline;
}}
% reset the default styling of body
\Css{body{margin:0;width: auto; max-width: 100\%;}}
\Css{main.main-content, .maketitle {
margin: 1ch;
margin-top: var(--header-height);
padding: var(--body-padding);
margin-left: var(--maintoc-width);
max-width: var(--body-width);
}}
\Css{[id]{
scroll-margin-top: var(--header-height);
}}
\Css{.hamburger {
display: none;
margin-left: auto;
background-color: var(--maintoc-background);
}}
\Css{header.header-bar {
position: fixed;
width: 100vw;
top: 0;
left: 0;
align-items: center;
justify-content: space-between;
background-color: var(--header-background);
color: var(--header-color);
height: var(--header-height);
padding: var(--header-padding) ;
margin: 0;
}}
\Css{header.header-bar h1 {
font-size: 1rem;
}}
\Css{footer.footer-bar {
display: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: var(--footer-height);
background-color: var(--footer-background);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}}
\Css{.sectionTOCS{
padding: var(--content-padding);
position: fixed;
top: var(--header-height);
left: var(--sectiontoc-padding);
max-width: var(--sectiontoc-width);
}}
\Css{nav.TOC, .sectionTOCS{
transition: transform 0.3s ease;
transform: translateY(0); /* default state */
}}
\Css{.sectionTOCS .likesectionToc, .sectionTOCS .sectionToc,
.sectionTOCS .likesubsectionToc, .sectionTOCS .subsectionToc,
.sectionTOCS .likesubsectionToc, .sectionTOCS .subsectionToc,
.sectionTOCS .likesubsubsectionToc, .sectionTOCS .subsubsectionToc {margin-left:0em;}}
\Css{.hamburger {
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
cursor: pointer;
gap: 6px;
}}
\Css{.hamburger span {
display: inline-flex;
width: 24px;
height: 3px;
background-color: black;
border-radius: 2px;
}}
\Css{body.no-scroll {
overflow: hidden;
}}
\CssMediaQueryStart{}{max-width: 768px}
\Css{
nav.TOC {
width: 100vw;
height: auto;
position: relative;
top: auto;
left: 0;
}
}
\Css{
main.main-content, .maketitle {
margin-left: 0;
padding-top: var(--header-height);
}
}
\Css{
.hamburger {
display: block;
cursor: pointer;
}
}
\CssMediaQueryEnd
\else
\Log:Note{For full TOC on each page compatible with the collapsetoc DOM filter,
use the `fulltoc' command line option.}
\fi
\Css{li p.indent { text-indent: 0em }}
\Css{li p:first-child{ margin-top:0em; }}
\Css{li p:last-child, li div:last-child { margin-bottom:0.5em; }}
% fix for
with only one paragraph
\Css{li p:first-child{ margin-bottom:0; }}
\Css{li p\string ~ul:last-child,
li p\string ~ol:last-child{ margin-bottom:0.5em; }}
\ConfigureEnv{trivlist}
{}{\ShowPar
}{}{}
\ConfigureList{trivlist}%
{\EndP\HCode{
}\par\ShowPar
\AnchorLabel
}
% remove spurious blanks line before the text of the list item
\Css{li.enumerate > a[id]:first-child {float: left;}}
\else
\:CheckOption{enumerate+} \if:Option
\ConfigureList{enumerate}%
{\EndP\HCode{
}\d:HA}
\Configure{arrayparbox}{\ShowPar}
\fi
\let\VBorder\empty \let\AllColMargins\empty
\def\VBorder:color{black}
\Configure{VBorder}
{\let\VBorder\empty \let\AllColMargins\empty
\global\let\GROUPS\empty \HAssign\NewGroup = 0
\gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo }
{\xdef\VBorder{\VBorder\ifnum \NewGroup> 0 \fi}
\HAssign\NewGroup = 0 % \gdef\GROUPS{rules="groups"}}
% put vertical border for a column
\ifnum\ar:cnt > 0%
% in all other cases, we should put right border
\Css{\#TBL-\TableNo-\ar:cnt {border-right:1px solid \VBorder:color;}}%
\else%
% columns are numbered from 1. if \ar:cnt == 0 then it is the left border
\Css{\#TBL-\TableNo-1{border-left: 1px solid \VBorder:color;}}%
\fi%
}
{\Advance:\NewGroup by 1
\ifnum \NewGroup=1 \xdef\VBorder{\VBorder
}}%
\par
\else
\SaveEndP
\HCode{}%
\bgroup
\Configure{HtmlPar}{\HCode{ }}{\HCode{ }}{}{}%
\def\end:margp{\egroup\HCode{}\RecallEndP}%
\fi
}
{\end:margp}
\Css{.marginpar,.reversemarginpar {width:20\%; float:right; text-align:left;
margin-left:auto; margin-top:0.5em; font-size:85\%;
text-decoration:underline;}}
\Css{.marginpar p,.reversemarginpar p{margin-top:0.4em; margin-bottom:0.4em;}}
\Css{.reversemarginpar{float:left;}}
\:CheckOption{fonts} \if:Option
\Configure{textbf}{\Protect\HCode{}\NoFonts}
{\EndNoFonts\Protect\HCode{}}
\Configure{textit}{\Protect\HCode{}\NoFonts}
{\EndNoFonts\Protect\HCode{}}
\Configure{textrm}{\Protect\HCode{}\NoFonts}
{\EndNoFonts\Protect\HCode{}}
\Configure{textup}{\Protect\HCode{}\NoFonts}
{\EndNoFonts\Protect\HCode{}}
\Configure{textsc}{\Protect\HCode{}\NoFonts}
{\EndNoFonts\Protect\HCode{}}
\Configure{textsf}{\Protect\HCode{}\NoFonts}
{\EndNoFonts\Protect\HCode{}}
\Configure{textsl}{\Protect\HCode{}\NoFonts}
{\EndNoFonts\Protect\HCode{}}
\Configure{texttt}{\Protect\HCode{}\NoFonts}
{\EndNoFonts\Protect\HCode{}}
\Configure{emph}{\Protect\HCode{}\NoFonts}
{\EndNoFonts\Protect\HCode{}}
\Css{span.textbf { font-weight: bold; }}
\Css{span.textit { font-style: italic; }}
\Css{span.textrm { font-family: serif; }}
\Css{span.textsc { font-variant: small-caps; }}
\Css{span.textsf { font-family: sans-serif; }}
\Css{span.texttt { font-family: monospace,monospace; }}
\Css{span.emph { font-style: italic;}}
\Css{span.emph span.emph {font-style: normal;}}
\else
\Log:Note{for tracing of latex font commands,
use the command line option `fonts'}
\fi
\:CheckOption{p-width} \if:Option
\HAssign\:hcolwidthtbl=0
\gdef\:hcolwidthfirst{1}
\ExplSyntaxOn
\Configure{HColWidth}
{%
% in some cases, the first \HRow is not 1, for example with \multicolumn
% see https://github.com/michal-h21/make4ht/issues/114
% when we enter a new table, we will save the first row
\ifx\:hcolwidthtbl\TableNo\else
\global\let\:hcolwidthtbl=\TableNo
\global\let\:hcolwidthfirst=\HRow
\fi
\ifx\HRow\:hcolwidthfirst% output CSS only on the first row, to prevent duplication
\tmp:dim=\fp_to_dim:n{\dim_to_fp:n{\HColWidth}/\f@size}
\Css{\#TBL-\TableNo\space td:nth-child(\HCol)% CSS selects ID of the current table column
{width:\strip@pt\tmp:dim em;}}
\fi}
\ExplSyntaxOff
\else
\Log:Note{for width specifications of tabular p entries, use
the `p-width' command line option or a configuration similar
to \string\Configure{HColWidth}{\string\HCode
{ style="width:\string\HColWidth"}}}
\fi
\def\:tempc{\special{t4ht@+\string&{35}xAE{59}}x}
\HLet\textregistered\:tempc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{book}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\tocpart#1#2#3{\par
\HCode{}\if !#1!\else #1\ \ \fi #2\HCode{}\par}%
\def\toclikepart#1#2#3{\par
\HCode{}#2\HCode{}\par}%
\Css{.partToc a, .partToc, .likepartToc a, .likepartToc
{line-height: 200\%; font-weight:bold; font-size:110\%;}}
%
\expandafter\ifx \csname @chapter\endcsname\relax
\def\tocsection#1#2#3{\par
\HCode{}\def\:temp{#1}\ifx \:temp\empty\else
#1 \fi #2\HCode{}\par}
\def\toclikesection#1#2#3{\par
\HCode{}#2\HCode{}\par}%
\def\tocsubsection#1#2#3{\par\toc:num{subsection}{#1}{#2}\par}
\def\toclikesubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubsubsection#1#2#3{\par\toc:num{subsubsection}{#1}{#2}\par}
\def\toclikesubsubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocparagraph#1#2#3{\par\toc:num{paragraph}{#1}{#2}\par}
\def\toclikeparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubparagraph#1#2#3{\par\toc:num{subparagraph}{#1}{#2}\par}
\def\toclikesubparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\else
\Css{.chapterToc a, .chapterToc, .likechapterToc a, .likechapterToc,
.appendixToc a, .appendixToc
{line-height: 200\%; font-weight:bold;}}
%
\def\tocchapter#1#2#3{\par
\HCode{}\ifnum \c@secnumdepth >\m@ne
#1 \fi #2\HCode{}\par}
\def\toclikechapter#1#2#3{\par
\HCode{}#2\HCode{}\par}%
\def\tocappendix#1#2#3{\par
\HCode{}#1 #2\HCode{}\par}
\def\tocsection#1#2#3{\par\toc:num{section}{#1}{#2}\par}
\def\toclikesection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubsection#1#2#3{\par\toc:num{subsection}{#1}{#2}\par}
\def\toclikesubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubsubsection#1#2#3{\par\toc:num{subsubsection}{#1}{#2}\par}
\def\toclikesubsubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocparagraph#1#2#3{\par\toc:num{paragraph}{#1}{#2}\par}
\def\toclikeparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubparagraph#1#2#3{\par\toc:num{subparagraph}{#1}{#2}\par}
\def\toclikesubparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\fi
\def\toc:num#1#2#3{\def\:temp{#1#2}%
\HCode{}\ifx \:temp\empty
\else \def\:temp{#2}\ifx\:temp\empty\else #2 \fi \fi #3\HCode{}}
%\def\:SPAN#1#2{\HCode{}#2\HCode{}}
\:CheckOption{7} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,%
paragraph,subparagraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph,subparagraph}
\fi
\CutAt{subparagraph,paragraph,subsubsection,likesubsubsection,%
subsection,likesubsection,%
section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subparagraph}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,%
paragraph,subparagraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph,subparagraph}
\fi
\CutAt{subparagraph,paragraph,subsubsection,likesubsubsection,%
subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subparagraph}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{6} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else \:CheckOption{5} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{4} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{3} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{2} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{1} \if:Option
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else
% This should prevent duplication of TOC when document is not split into subpages
\pend:def\tableofcontents{%
\ifx \au:StartSec\:UnDef\else%
\gdef\:StartSec{\au:StartSec}%
\fi%
}%
\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{sec-filename} \if:Option \else
\Log:Note{for files named derived from section
titles, use the command line option `sec-filename'}%
\fi
\:CheckOption{1} \if:Option
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,appendix,section}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\fi
\def\:temp#1index=#2,#3!*?: {%
\ifnum #2>1 \NewConfigure{IndexColumns}{1}
\Configure{IndexColumns}{#2}
\fi
\def\:temp{#2}%
}
\expandafter\:temp\Preamble,index=0,!*?:
\ifnum \:temp<2
\Log:Note{for i-columns index,
use the command line option `index=i' (e.g., index=2)}
\Configure{theindex}
{\ifvmode \IgnorePar\fi \EndP
\HCode{
}\HCode{
}\def\end:theidx{\HCode{
}}}
{\end:theidx\HCode{
}}
{\hbox\bgroup\HCode{
}}
{\HCode{
}\egroup\hfill\break}
{\hbox\bgroup\HCode{
}}
{\HCode{
}\egroup\hfill\break}
{\hbox\bgroup\HCode{
}}
{\HCode{
}\egroup\hfill\break}
{\hbox{\end:theidx\HCode{
}}}
\else
\Log:Note{the number of columns
requested by the option `index=\a:IndexColumns' can
be modified through the command \string\Configure{IndexColumns}{i}}
\Configure{theindex}
{\ifvmode \IgnorePar\fi \EndP
\HCode{
}\IgnoreIndent\par}
% \:CheckOption{2} \if:Option
% \else
% \:CheckOption{3} \if:Option \else
% \:CheckOption{4} \if:Option \else
% \:CheckOption{5} \if:Option \else
% \:CheckOption{6} \if:Option \else
% \:CheckOption{7} \if:Option \else
% \fi
% \fi
% \fi
% \fi
% \fi
% \if:Option
% \Css{.sectionToc, .likesectionToc {margin-left:2em;}}
% \Css{.subsectionToc, .likesubsectionToc {margin-left:4em;}}
% \Css{.subsubsectionToc, .likesubsubsectionToc {margin-left:6em;}}
% \fi
% \fi
\Css{
.chapterToc,
.likechapterToc
{margin-left:0em;}}
\Css{
.likesectionToc,
.sectionToc
{margin-left:1em;}}
\Css{
.likesubsectionToc,
.subsectionToc
{margin-left:2em;}}
\Css{
.likesubsectionToc,
.subsectionToc
{margin-left:2em;}}
\Css{
.likesubsubsectionToc,
.subsubsectionToc
{margin-left:3em;}}
\Css{.paragraphToc, .likeparagraphToc {margin-left:4em;}}
\Css{.subparagraphToc, .likesubparagraphToc {margin-left:5em;}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{report}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\tocpart#1#2#3{\par
\HCode{}\if !#1!\else #1\ \ \fi #2\HCode{}\par}%
\def\toclikepart#1#2#3{\par
\HCode{}#2\HCode{}\par}%
\Css{.partToc a, .partToc, .likepartToc a, .likepartToc
{line-height: 200\%; font-weight:bold; font-size:110\%;}}
%
\expandafter\ifx \csname @chapter\endcsname\relax
\def\tocsection#1#2#3{\par
\HCode{}\def\:temp{#1}\ifx \:temp\empty\else
#1 \fi #2\HCode{}\par}
\def\toclikesection#1#2#3{\par
\HCode{}#2\HCode{}\par}%
\def\tocsubsection#1#2#3{\par\toc:num{subsection}{#1}{#2}\par}
\def\toclikesubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubsubsection#1#2#3{\par\toc:num{subsubsection}{#1}{#2}\par}
\def\toclikesubsubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocparagraph#1#2#3{\par\toc:num{paragraph}{#1}{#2}\par}
\def\toclikeparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubparagraph#1#2#3{\par\toc:num{subparagraph}{#1}{#2}\par}
\def\toclikesubparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\else
\Css{.chapterToc a, .chapterToc, .likechapterToc a, .likechapterToc,
.appendixToc a, .appendixToc
{line-height: 200\%; font-weight:bold;}}
%
\def\tocchapter#1#2#3{\par
\HCode{}\ifnum \c@secnumdepth >\m@ne
#1 \fi #2\HCode{}\par}
\def\toclikechapter#1#2#3{\par
\HCode{}#2\HCode{}\par}%
\def\tocappendix#1#2#3{\par
\HCode{}#1 #2\HCode{}\par}
\def\tocsection#1#2#3{\par\toc:num{section}{#1}{#2}\par}
\def\toclikesection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubsection#1#2#3{\par\toc:num{subsection}{#1}{#2}\par}
\def\toclikesubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubsubsection#1#2#3{\par\toc:num{subsubsection}{#1}{#2}\par}
\def\toclikesubsubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocparagraph#1#2#3{\par\toc:num{paragraph}{#1}{#2}\par}
\def\toclikeparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubparagraph#1#2#3{\par\toc:num{subparagraph}{#1}{#2}\par}
\def\toclikesubparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\fi
\def\toc:num#1#2#3{\def\:temp{#1#2}%
\HCode{}\ifx \:temp\empty
\else \def\:temp{#2}\ifx\:temp\empty\else #2 \fi \fi #3\HCode{}}
%\def\:SPAN#1#2{\HCode{}#2\HCode{}}
\:CheckOption{7} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,%
paragraph,subparagraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph,subparagraph}
\fi
\CutAt{subparagraph,paragraph,subsubsection,likesubsubsection,%
subsection,likesubsection,%
section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subparagraph}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,%
paragraph,subparagraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph,subparagraph}
\fi
\CutAt{subparagraph,paragraph,subsubsection,likesubsubsection,%
subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subparagraph}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{6} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else \:CheckOption{5} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{4} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{3} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{2} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{1} \if:Option
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else
% This should prevent duplication of TOC when document is not split into subpages
\pend:def\tableofcontents{%
\ifx \au:StartSec\:UnDef\else%
\gdef\:StartSec{\au:StartSec}%
\fi%
}%
\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{sec-filename} \if:Option \else
\Log:Note{for files named derived from section
titles, use the command line option `sec-filename'}%
\fi
\:CheckOption{1} \if:Option
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,section,subsection}
\fi
\Configure{tableofcontents*}{part,section}
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,section,likesection,%
subsection,likesubsection}
\fi
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,section,likesection}
\fi
\fi
\def\:temp#1index=#2,#3!*?: {%
\ifnum #2>1 \NewConfigure{IndexColumns}{1}
\Configure{IndexColumns}{#2}
\fi
\def\:temp{#2}%
}
\expandafter\:temp\Preamble,index=0,!*?:
\ifnum \:temp<2
\Log:Note{for i-columns index,
use the command line option `index=i' (e.g., index=2)}
\Configure{theindex}
{\ifvmode \IgnorePar\fi \EndP
\HCode{
}\HCode{
}\def\end:theidx{\HCode{
}}}
{\end:theidx\HCode{
}}
{\hbox\bgroup\HCode{
}}
{\HCode{
}\egroup\hfill\break}
{\hbox\bgroup\HCode{
}}
{\HCode{
}\egroup\hfill\break}
{\hbox\bgroup\HCode{
}}
{\HCode{
}\egroup\hfill\break}
{\hbox{\end:theidx\HCode{
}}}
\else
\Log:Note{the number of columns
requested by the option `index=\a:IndexColumns' can
be modified through the command \string\Configure{IndexColumns}{i}}
\Configure{theindex}
{\ifvmode \IgnorePar\fi \EndP
\HCode{
}\IgnoreIndent\par}
\Css{
.chapterToc,
.likechapterToc
{margin-left:0em;}}
\Css{
.likesectionToc,
.sectionToc
{margin-left:1em;}}
\Css{
.likesubsectionToc,
.subsectionToc
{margin-left:2em;}}
\Css{
.likesubsectionToc,
.subsectionToc
{margin-left:2em;}}
\Css{
.likesubsubsectionToc,
.subsubsectionToc
{margin-left:3em;}}
\Css{.paragraphToc, .likeparagraphToc {margin-left:4em;}}
\Css{.subparagraphToc, .likesubparagraphToc {margin-left:5em;}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{@begin}{theindex}{\ifx \indexname\empty \else
\section*{\indexname}\fi}
\def\tocpart#1#2#3{\par
\HCode{}\if !#1!\else #1\ \ \fi #2\HCode{}\par}%
\def\toclikepart#1#2#3{\par
\HCode{}#2\HCode{}\par}%
\Css{.partToc a, .partToc, .likepartToc a, .likepartToc
{line-height: 200\%; font-weight:bold; font-size:110\%;}}
%
\expandafter\ifx \csname @chapter\endcsname\relax
\def\tocsection#1#2#3{\par
\HCode{}\def\:temp{#1}\ifx \:temp\empty\else
#1 \fi #2\HCode{}\par}
\def\toclikesection#1#2#3{\par
\HCode{}#2\HCode{}\par}%
\def\tocsubsection#1#2#3{\par\toc:num{subsection}{#1}{#2}\par}
\def\toclikesubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubsubsection#1#2#3{\par\toc:num{subsubsection}{#1}{#2}\par}
\def\toclikesubsubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocparagraph#1#2#3{\par\toc:num{paragraph}{#1}{#2}\par}
\def\toclikeparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubparagraph#1#2#3{\par\toc:num{subparagraph}{#1}{#2}\par}
\def\toclikesubparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\else
\Css{.chapterToc a, .chapterToc, .likechapterToc a, .likechapterToc,
.appendixToc a, .appendixToc
{line-height: 200\%; font-weight:bold;}}
%
\def\tocchapter#1#2#3{\par
\HCode{}\ifnum \c@secnumdepth >\m@ne
#1 \fi #2\HCode{}\par}
\def\toclikechapter#1#2#3{\par
\HCode{}#2\HCode{}\par}%
\def\tocappendix#1#2#3{\par
\HCode{}#1 #2\HCode{}\par}
\def\tocsection#1#2#3{\par\toc:num{section}{#1}{#2}\par}
\def\toclikesection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubsection#1#2#3{\par\toc:num{subsection}{#1}{#2}\par}
\def\toclikesubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubsubsection#1#2#3{\par\toc:num{subsubsection}{#1}{#2}\par}
\def\toclikesubsubsection#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocparagraph#1#2#3{\par\toc:num{paragraph}{#1}{#2}\par}
\def\toclikeparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\def\tocsubparagraph#1#2#3{\par\toc:num{subparagraph}{#1}{#2}\par}
\def\toclikesubparagraph#1#2#3{\par\HCode{}#2\HCode{}\par}
\fi
\def\toc:num#1#2#3{\def\:temp{#1#2}%
\HCode{}\ifx \:temp\empty
\else \def\:temp{#2}\ifx\:temp\empty\else #2 \fi \fi #3\HCode{}}
%\def\:SPAN#1#2{\HCode{}#2\HCode{}}
\:CheckOption{7} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,%
paragraph,subparagraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph,subparagraph}
\fi
\CutAt{subparagraph,paragraph,subsubsection,likesubsubsection,%
subsection,likesubsection,%
section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subparagraph}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,%
paragraph,subparagraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph,subparagraph}
\fi
\CutAt{subparagraph,paragraph,subsubsection,likesubsubsection,%
subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{paragraph,/subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subparagraph}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{6} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection,paragraph}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection,%
paragraph}
\fi
\CutAt{paragraph,subsubsection,likesubsubsection,subsection,likesubsection,%
section,likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,/subsection,%
/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,%
/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsubsection,/likesubsubsection,%
/subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\MiniToc:At{likesubsubsection,/subsubsection,/likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
paragraph,subparagraph}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else \:CheckOption{5} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection,subsubsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,%
likesubsection,subsection,likesubsubsection,subsubsection}
\fi
\CutAt{subsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\CutAt{likesubsubsection,subsection,likesubsection,section,likesection,%
chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,%
/appendix,/part,%
subsubsection,paragraph}
\MiniToc:At{likesubsection,/subsection,/likesection,%
/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,paragraph}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{subsection,/likesubsection,/section,/likesection,%
/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\MiniToc:At{likesubsection,/subsection,%
/likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsubsection,likesubsubsection,%
paragraph}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{4} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{3} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section,subsection}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection,likesubsection,subsection}
\fi
\CutAt{subsection,section,likesection,part}
\CutAt{likesubsection,section,likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,subsubsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{section,/likesection,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\MiniToc:At{likesection,/section,/chapter,/likechapter,/appendix,/part,%
subsection,likesubsection,subsubsection,likesubsubsection}
\fi
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,chapter,likechapter,appendix,part}
\CutAt{likesection,chapter,likechapter,appendix,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,subsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,subsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,subsection}
\fi
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{chapter,/likechapter,/appendix,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likechapter,/appendix,/chapter,/part,%
section,likesection,subsection,likesubsection}
\MiniToc:At{appendix,/chapter,/likechapter,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{2} \if:Option
\expandafter\ifx \csname @chapter\endcsname\relax
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,appendix,section%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,chapter,likechapter,%
appendix,section,likesection%
\expandafter\ifx \csname @chapter\endcsname\relax
,subsection,likesubsection\fi}
\fi
\CutAt{section,likesection,part}
\CutAt{likesection,part}
\:CheckOption{notoc*} \if:Option
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,%
section,likesection,subsection,likesubsection}
\MiniToc:At{likepart,/part,%
section,likesection,subsection,likesubsection}
\fi
\fi
\else
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}{part,chapter,%
appendix,section\expandafter\ifx
\csname @chapter\endcsname\relax ,subsection\fi}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\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
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,chapter,likechapter,appendix,%
section,likesection}
\MiniToc:At{likepart,/part,chapter,likechapter,appendix,%
section,likesection}
\fi
\fi
\fi
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else\:CheckOption{1} \if:Option
\:CheckOption{notoc*} \if:Option
\Configure{tableofcontents*}
{part,chapter,appendix}
\else
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}
{part,likepart,chapter,likechapter,appendix}
\fi
\CutAt{part}
\CutAt{likepart}
\:CheckOption{obj-toc} \if:Option
\Css{object.toc { float: left;
width: 25\%;
height: 100\%;
border: 1px solid \#888888;
margin-left:0em;
margin-top:0em;
margin-bottom:1em;
margin-right:1em;
padding-right:1em;
}}
\Css{body\#jobname-toc{margin:0em;}}
\Css{body\#jobname-toc .tableofcontents{ white-space: nowrap; }}
\Configure{@BODY}
{\edef\:temp{\jobname-toc.\:html}
\edef\:tempa{\FileName}
\edef\:temp{\expandafter\string\csname\:temp\endcsname}
\edef\:tempa{\expandafter\string\csname\:tempa\endcsname}
\ifx\:temp\:tempa\else
\hbox{
\HCode{}}
\fi
}
{}
\pend:defI\Auto:ent{%
\bgroup
\let\contentsname=\empty
\Configure{!BODY}{ id="jobname-toc"}%
\Configure{Link}{a}{target="\string _top" href=}{id=}{}%
\NextFile{\jobname-toc.\csname :html\endcsname}%
\HPage{}%
}
\append:defI\Auto:ent{%
\EndHPage{}%
\egroup
}
\else
\Log:Note{for frames-like object-based table of contents,
use the command line option `obj-toc'}
\fi
\else
% This should prevent duplication of TOC when document is not split into subpages
\pend:def\tableofcontents{%
\ifx \au:StartSec\:UnDef\else%
\gdef\:StartSec{\au:StartSec}%
\fi%
}%
\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{sec-filename} \if:Option \else
\Log:Note{for files named derived from section
titles, use the command line option `sec-filename'}%
\fi
\:CheckOption{1} \if:Option
\:CheckOption{notoc*} \if:Option
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,section,subsection}
\fi
\Configure{tableofcontents*}{part,section}
\else
\:CheckOption{nominitoc} \if:Option
\else
\Log:Note{to eliminate mini tables of
contents, use the command line option `nominitoc'}
\MiniToc:At{part,/likepart,section,likesection,%
subsection,likesubsection}
\fi
\Log:Note{for tocs without * entries, use
command line option `notoc*'}
\Configure{tableofcontents*}{part,likepart,section,likesection}
\fi
\fi
\def\:temp#1index=#2,#3!*?: {%
\ifnum #2>1 \NewConfigure{IndexColumns}{1}
\Configure{IndexColumns}{#2}
\fi
\def\:temp{#2}%
}
\expandafter\:temp\Preamble,index=0,!*?:
\ifnum \:temp<2
\Log:Note{for i-columns index,
use the command line option `index=i' (e.g., index=2)}
\Configure{theindex}
{\ifvmode \IgnorePar\fi \EndP
\HCode{
}\HCode{
}\def\end:theidx{\HCode{
}}}
{\end:theidx\HCode{
}}
{\hbox\bgroup\HCode{
}}
{\HCode{
}\egroup\hfill\break}
{\hbox\bgroup\HCode{
}}
{\HCode{
}\egroup\hfill\break}
{\hbox\bgroup\HCode{
}}
{\HCode{
}\egroup\hfill\break}
{\hbox{\end:theidx\HCode{
}}}
\else
\Log:Note{the number of columns
requested by the option `index=\a:IndexColumns' can
be modified through the command \string\Configure{IndexColumns}{i}}
\Configure{theindex}
{\ifvmode \IgnorePar\fi \EndP
\HCode{
}\par}
% it seems that paragraphs are not started after the proof environment
% this configuration helps
\ConfigureEnv{proof}{}{\par\ShowPar}{}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureEnv{subequations}
{\ifvmode \IgnorePar\fi \EndP
\HCode{
}\d:HA}
\Configure{arrayparbox}{\ShowPar}
\fi
\let\VBorder\empty \let\AllColMargins\empty
\def\VBorder:color{black}
\Configure{VBorder}
{\let\VBorder\empty \let\AllColMargins\empty
\global\let\GROUPS\empty \HAssign\NewGroup = 0
\gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo }
{\xdef\VBorder{\VBorder\ifnum \NewGroup> 0 \fi}
\HAssign\NewGroup = 0 % \gdef\GROUPS{rules="groups"}}
% put vertical border for a column
\ifnum\ar:cnt > 0%
% in all other cases, we should put right border
\Css{\#TBL-\TableNo-\ar:cnt {border-right:1px solid \VBorder:color;}}%
\else%
% columns are numbered from 1. if \ar:cnt == 0 then it is the left border
\Css{\#TBL-\TableNo-1{border-left: 1px solid \VBorder:color;}}%
\fi%
}
{\Advance:\NewGroup by 1
\ifnum \NewGroup=1 \xdef\VBorder{\VBorder
}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{fancyvrb}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ExplSyntaxOn
% we need to convert the numbersep length to a dimension that can be used in CSS for use in CSS
\def\:fancyvrbnumbersep{\dim_set:Nn\l_tmpa_dim{\FV@NumberSep}\edef\:numbersep{\dim_to_decimal_in_bp:n{\l_tmpa_dim}pt}}
\ExplSyntaxOff
\HAssign\fancyvrbNo0
\Configure{fancyvrb}
{\IgnorePar \EndP \gHAdvance\fancyvrbNo by 1
\gHAssign\fancyvrb:cnt0
\HCode{
}%
\:fancyvrbnumbersep% calculate the number separator first, we cannot use it inside \Css directly
% we set the padding on the span element that surrounds line numbers, because there is a default space,
% which we don't want to use if the line numbers are not used
\Css{\#fancyvrb\fancyvrbNo\space .fancyvrblineno span {padding-right: \:numbersep;}}%
\ht:special{t4ht@[}}
{x\ht:special{t4ht@]}\EndP\HCode{
}
% use the hline color also for vertial lines
\def\VBorder:color{\#\hline:color}
% don't display elements in colored \hline
\Css{tr.hline td hr{display:none}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{minitoc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{minitoc}
{\Configure{tableofcontents}
{\HCode{
}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{adjustbox}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% add support for vertical alignment of table rows
\Configure{halignTR}{}
\Configure{AdjustboxValignTop}{\Css{\#TBL-\TableNo-\HRow-{vertical-align:top;}}}
\Configure{AdjustboxValignMiddle}{\Css{\#TBL-\TableNo-\HRow-{vertical-align:middle;}}}
\Configure{AdjustboxValignCenter}{\Css{\#TBL-\TableNo-\HRow-{vertical-align:middle;}}}
\Configure{AdjustboxValignBottom}{\Css{\#TBL-\TableNo-\HRow-{vertical-align:bottom;}}}
% convert size in pt to em, based on the current font size
\def\pt:to:em#1{\strip@pt\dimexpr#1/\f@size em}
\Configure{Adjustbox}
{\IgnorePar\EndP\IgnorePar\HCode{
}}
{\HAssign\HCol=\the\currentTABLEcolumn\relax
\HAssign\HMultispan=\HCol\relax
\HAdvance\HMultispan by -\Prev:Col\relax
\gHAssign\Prev:Col=\HCol\relax
\HAdvance\HCol by 1\relax
\ifnum \HMultispan>1 \HAdvance\HCol by 1
\HAdvance\HCol by -\HMultispan\relax \fi
\HCode{\Hnewline
}\par\ShowPar}{}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tabularray}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ExplSyntaxOn
% Get the value of rowhead key and save it in the \lTblrRowHeadInt for later use
\def\tblr:setrowhead{
\int_set:Nn \lTblrRowHeadInt
{ \__tblr_prop_item:ne { inner } { rowhead } + 0 }
}
% print either th or td, depending on the value of \lTblrRowHeadInt
\def\tblr:celltype{\int_compare:nTF{\int_value:w\lTblrRowHeadInt>=\HRow}{th}{td}}
\ExplSyntaxOff
\Configure{tabularray}{
\ifvmode\IgnorePar\fi\EndP
\gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo%
\HCode{
}
}{\ifvmode\IgnorePar\fi\EndP\HCode{
}}
{\tblr:setrowhead\HCode{
}}{\HCode{
}}
{\HCode{<\tblr:celltype\space id="cell\TableNo-\HRow-\HCol" style="\CellStyle" \CellAttributes>}}{\HCode{\tblr:celltype>}}
{\Configure{tabularrayattributes}{rowspan="\HRowspan"}}
{\Configure{tabularrayattributes}{colspan="\HMultispan"}}{}
% cells hidden by cell and row spans. they shouldn't be included in HTML, so we hide them using comments
\Configure{tabularrayignoredcell}{\HCode{}}
% this is a default alignment, so we can ignore it, to save some space in the generated files
% \Configure{tabularrayhalign}{l}{\Configure{tabularraystyles}{text-align:left;}}
\Configure{tabularrayhalign}{r}{\Configure{tabularraystyles}{text-align:right;}}
\Configure{tabularrayhalign}{c}{\Configure{tabularraystyles}{text-align:center;}}
\Configure{tabularrayhalign}{j}{\Configure{tabularraystyles}{text-align:justify;}}
% this is a default alignment, so we can ignore it, to save some space in the generated files
% \Configure{tabularrayvalign}{m}{\Configure{tabularraystyles}{vertical-align:middle;}}
\Configure{tabularrayvalign}{h}{\Configure{tabularraystyles}{vertical-align:top;}}
\Configure{tabularrayvalign}{p}{\Configure{tabularraystyles}{vertical-align:top;}}
\Configure{tabularrayvalign}{f}{\Configure{tabularraystyles}{vertical-align:bottom;}}
% the vertical alignment of the following two is not correct, but CSS doesn't support the correct one
\Configure{tabularrayvalign}{t}{\Configure{tabularraystyles}{vertical-align:top;}}
\Configure{tabularrayvalign}{b}{\Configure{tabularraystyles}{vertical-align:bottom;}}
% Save column width only on the first row
\Configure{tabularraycolumnwidth}{\ifnum\HRow=1\Css{\#tbl-\TableNo\space td:nth-child(\HCol){width:\HColWidth;}}\fi}
\Css{table.tabularray{table-layout: fixed;border-collapse:collapse;margin:0.3em 0;}}
\Configure{tabularraycaption}{\ifvmode\IgnorePar\fi\EndP\HCode{
}}}
\else
\Log:Note{the number of columns
requested by the option `index=\a:IndexColumns' can
be modified through the command \string\Configure{IndexColumns}{i}}
\Configure{theindex}
{\ifvmode \IgnorePar\fi \EndP
\HCode{
}}}
\else
\Log:Note{the number of columns
requested by the option `index=\a:IndexColumns' can
be modified through the command \string\Configure{IndexColumns}{i}}
\Configure{theindex}
{\ifvmode \IgnorePar\fi \EndP
\HCode{
}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{piton}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% handle \color commands
% piton already uses hexadecimal colors, so we don't need to convert them for use in CSS
\def\:endundeclaredcolor{\HCode{}}
\def\:undeclaredcolor[#1]#2{\o:@undeclaredcolor:[#1]{#2}
\HCode{}\aftergroup\:endundeclaredcolor
}
\Configure{piton}{%
\ifvmode\IgnorePar\fi\EndP\HCode{
}\HtmlParOff\NoFonts%
\Configure{newline}{\HCode{\Hnewline}}% don't insert any special tags for newlines, only newline characters
}
{\EndNoFonts\HCode{
}}
% we want to respect line breaks, caused by \\ in the document
\Css{.authorblockA{font-size: 0.8rem; white-space: pre-wrap;}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{enumerate}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureList{enumerate}%
{\EndP\HCode{
}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{listings}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{lstinline}
{\HCode{}\HtmlParOff\NoFonts}
{\EndNoFonts\HtmlParOn\HCode{}}
\Css{code.lstinline{font-family:monospace,monospace;}}
\Log:Note{to ensure proper alignments use
fixed size fonts (see listings.dtx)}
\HAssign\listingN=0
\HAssign\listings:Depth = 0
\Configure{listings}
{\ifvmode \IgnorePar\fi \EndP%
{\everypar{}\leavevmode}\HCode{}%
\ifnum \listings:Depth<0 \HAssign\listings:Depth = 0\fi
\setbox0=\hbox{\listings:Depth}% this forces the assignment to have an effect
\ifnum \listings:Depth=0 \HtmlParOff\HCode{
}\else%
\HCode{}\fi%
\gHAdvance\listings:Depth by 1%
\gdef\start:LstLn{}%
}
{\gHAdvance\listings:Depth by -1%
\setbox0=\hbox{\listings:Depth}% this forces the assignment to have an effect
\ifnum\listings:Depth>-1%
\ifnum \listings:Depth=0 \HCode{
}%
\gdef\start:LstLn{\HCode{\Hnewline}}}
\bgroup%
% we put the closing
here in order to support floating listings
% https://tex.stackexchange.com/a/615703/2891
\pend:def\lst@DeInit{\ifvmode\IgnorePar\fi\EndP\HCode{}}%
\Configure{listings}
{{\everypar{}\leavevmode}}
{{\everypar{}\leavevmode}}
{\start:LstLn \HCode{}}
{\HCode{}}%
}
{\egroup\HtmlParOn\par}
{} {}
\Css{.lstlisting .label{margin-right:0.5em; }}
\Css{pre.lstlisting{font-family: monospace,monospace; white-space: pre-wrap;
margin-top:0.5em; margin-bottom:0.5em; text-align: left;
}}
\Configure{lstinputlisting}
{\ifvmode \IgnorePar\fi \EndP\HtmlParOff
\HCode{}%
\gdef\start:LstLn{\HCode{
}\gdef\start:LstLn{\HCode{\Hnewline}}}% ignore first newline, to prevent spurious line
\bgroup\ttfamily%\special{t4ht@(}%
\Configure{listings}%
{{\everypar{}\leavevmode}}%
{{\everypar{}\leavevmode}}%
{\start:LstLn\HCode{}}%
{\HCode{}}%
}
{%\special{t4ht@)}
\egroup%
\ifvmode \IgnorePar\fi \EndP \HCode{
}\HtmlParOn\par}%
\Css{pre.lstinputlisting{
font-family: monospace,monospace;
white-space: pre-wrap;
text-align: left;
}}
\Css{.lstinputlisting .label{margin-right:0.5em;}}
\lst@AddToHook{PostOutput}{\HCode{}}%
\lst@AddToHook{OutputBox}{%
% get current color in the CSS form
\extractcolorspec{.}\html@color%
\expandafter\convertcolorspec\html@color{HTML}\html@color%
\HCode{}}% init
\lst@AddToHook{Init}{%
\gHAdvance\listingN by 1% increase the ID before we save colors.
\bgroup%
% handle backround color and border in listings
\ifx\lst@fillcolor\@empty\else%
\lst@fillcolor%
\extractcolorspec{.}\html@fillcolor%
\expandafter\convertcolorspec\html@fillcolor{HTML}\html@fillcolor%
\Css{\#listing-\listingN{background-color:\#\html@fillcolor;}}%
\fi%
\ifx\lst@rulecolor\@empty\else%
\lst@rulecolor%
\extractcolorspec{.}\html@rulecolor%
\expandafter\convertcolorspec\html@rulecolor{HTML}\html@rulecolor%
\Css{\#listing-\listingN{border: 1px solid \#\html@rulecolor;}}%
\fi%
\egroup%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tasks}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureList{tasks}
{\ifvmode\IgnorePar\fi\EndP\HCode{
}}
% there is rule p + div elsewhere in TeX4ht. we want to nullify it.
\Css{.tcolorbox .lowerbox{margin-top:0pt;}}
% remove unwanted margins and border from listings inside tcolorbox
% https://puszcza.gnu.org.ua/bugs/?312
\Configure{tcblisting}{\Css{\#\:tcbcolid\space.lstinputlisting{margin-bottom:0em;margin-top:0em;border: none;}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tcolorbox.documentation}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureList{tcb@manual@entry}{\ifvmode\IgnorePar\fi\EndP\HCode{