<..latex.4ht..>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% latex.4ht 2014-07-12-22:36 %
% Copyright (C) 1997--2009 Eitan M. Gurari %
<.TeX4ht copyright.>
<.exit if already loaded.>
<.early latex definitions.>
<.latex changes for tex4ht.sty.>
<.plain,latex utilities.>
<.latex ltclass.> ltclass
ltdirchk
<.latex ltplain.> ltplain
ltvers
ltdefns
ltalloc
ltcntrl
lterror
ltpar
<.latex ltspace.> ltspace
ltlogos
ltfiles
<.latex ltoutenc.> ltoutenc
<.latex ltcounts.> ltcounts
<.latex ltlength.> ltlength
ltfssbas
<.latex ltfsstrc.> ltfsstrc
ltfsscmp
<.latex ltfssdcl.> ltfssdcl
ltfssini
ltfntcmd
ltpageno
<.latex ltxref.> ltxref
<.latex ltmiscen.> ltmiscen
<.latex ltmath.> ltmath
<.latex ltlists.> ltlists
<.latex ltboxes.> ltboxes
<.latex lttab.> lttab
<.latex ltpictur.> oltpictur
<.latex ltthm.> ltthm
<.latex ltsect.> ltsect
<.latex ltfloat.> ltfloat
<.latex ltidxglo.> ltidxglo
<.latex ltbibl.> ltbibl
<.latex ltpage.> ltpage
<.latex ltoutput.> ltoutput
<.latex ltfinal.> ltfinal
<.non classified latex.>
<.html /addcontentsline.>
\let\:MClass:=\c:MathClass:
\NewConfigure{MathClass}[5]{\bgroup
\let\@nodocument=\empty
\let\normalcolor=\relax
\:MClass:{#1}{#2}{#3}{#4}{#5}\egroup}
\let\:MDelims:=\c:MathDelimiters:
\NewConfigure{MathDelimiters}[2]{\bgroup
\let\@nodocument=\empty
\let\normalcolor=\relax
\:MDelims:{#1}{#2}\egroup}
\Hinput{latex}
\endinput
-_-_-
<..latex ltfsstrc..>
\edef\:temp{%
\every@math@size={\noexpand\ifx \noexpand\EndPicture\noexpand\:UnDef
\noexpand\else \the\every@math@size \noexpand\fi}%
}
\:temp
-_-_-
<..exit if already loaded..>
\ifx\SaveMkHalignConf:g\:UnDef \else \expandafter\endinput\fi
-_-_-
Latex prohibits content before the ‘\begin{document}’ by putting ‘\ht:everypar{\@nodocument}’ before ‘\begin{document}’ to get an error if text appears before the beginning. A possible solution is to put sensitive stuff in, for instance, ‘{ \let\@nodocument=\empty ...}’.
It is unsafe to define \romannumeral because it is used within immediate definition \edef, as well as definitions of macro names \csname ...\romannumeral ...\endcsname. Consider also \Configure{enumerate} (e.g., paralist)
<..latex ltcounts..>
\:CheckOption{enum}\if:Option
\def\:temp#1{\a:romannumeral {\expandafter
\:slowroman\romannumeral #1@}\b:romannumeral}
\HLet\@roman=\:temp
\def\:temp#1{\a:romannumeral {\expandafter
\:Slowroman\romannumeral #1@}\b:romannumeral}
\HLet\@Roman=\:temp
\item
:warning{To configure roman numbers use
the option ’enum’ (unsafe)}
\fi
\NewConfigure{romannumeral}{2}
-_-_-
<..latex ltcounts..>+
\def\:Slowroman#1{\ifx @#1\else \@slowromancap
\if i#1\I:rnum\else
\if v#1\V:rnum\else
\if x#1\X:rnum\else
\if l#1\L:rnum\else
\if c#1\C:rnum\else
\if d#1\D:rnum\else
\if m#1\M:rnum\else
#1\fi\fi\fi\fi\fi\fi\fi\expandafter\:Slowroman\fi
}
\NewConfigure{Roman}[7]{%
\def\I:rnum{#1}\def\V:rnum{#2}\def\X:rnum{#3}\def\L:rnum{#4}%
\def\C:rnum{#5}\def\D:rnum{#6}\def\M:rnum{#7}}
\Configure{Roman}{I}{V}{X}{L}{C}{D}{M}
-_-_-
<..latex ltcounts..>+
\def\:slowroman#1{\ifx @#1\else
\if i#1\i:rnum\else
\if v#1\v:rnum\else
\if x#1\x:rnum\else
\if l#1\l:rnum\else
\if c#1\c:rnum\else
\if d#1\d:rnum\else
\if m#1\m:rnum\else
#1\fi\fi\fi\fi\fi\fi\fi\expandafter\:slowroman\fi
}
\NewConfigure{roman}[7]{%
\def\i:rnum{#1}\def\v:rnum{#2}\def\x:rnum{#3}\def\l:rnum{#4}%
\def\c:rnum{#5}\def\d:rnum{#6}\def\m:rnum{#7}}
\Configure{roman}{i}{v}{x}{l}{c}{d}{m}
-_-_-