25.4 ifthen.sty

<..ifthen.4ht..>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % ifthen.4ht                           2014-07-12-22:36 %
 % Copyright (C) 1997--2009      Eitan M. Gurari         %
 <.TeX4ht copyright.>
 
    <.fix ifthen.>
    <.ifthen.sty shared config.>
 \Hinput{ifthen}
 \endinput
 -_-_-

<..fix ifthen..>
 \long\def\:tempc{%
    \let\sv:begingroup\begingroup
    \def\:tempc{\let\begingroup\sv:begingroup}%
    \def\begingroup{\sv:begingroup
       \aftergroup\:tempc
       \def\begingroup{\let\begingroup\sv:begingroup
                       \begingroup
                       \a:ifthenelse
    }}%
    \o:ifthenelse:}
 \HLet\ifthenelse\:tempc
 -_-_-

<..fix ifthen..>+
 \NewConfigure{ifthenelse}[1]{\concat:config\a:ifthenelse{#1}}
 \let\a:ifthenelse\empty
 \Configure{ifthenelse}{%
    \let\rEfLiNK\@secondoftwo
    \HRestore\pageref
 }
 -_-_-

ifthen.sty

Fixed for caseses like ‘\ifthenelse{\isodd{\pageref{abc}}}’.

<..non classified latex..>
 <.early latex util.>
 <.more latex math.>
 
 
    <.latex trace configurations.>
 <.latex html cut points.>
 <.config latex.ltx utilities.>
 <.latex.ltx latex trace configurations.>
 <.config latex.ltx shared.>
 <.config plain-latex shared.>
    <.elements for lists.>
    <.html lists.>
    <.html latex lists.>
    <.html latex bib.>
    <.elements for latex divs.>
    <.elements for divs.>
    <.html latex divs.>
    \:CheckOption{new-accents}     \if:Option
       <.revised accent definitions.>
       <.revised latex accent definitions.>
       <.new accents.>
    \else
       <.temp patch for accents on small caps.>
       <.accents.>
    \fi
    <.text symbols.>
    <.html local env.>
    <.more html tex.>
    <.html tex env.>
       <.html latex.ltx core.>
       <.html latex floats.>
    <.more html latex.>
 <.latex 1999.>
 <.latex 2000.>
 <.html latex coauthor.>
 <.latex.ltx.>
 \def\:temp#1#2<.par del.>{\def\:temp{#1}}
 \expandafter\:temp\usepackage<.par del.>
 \def\:tempa{\@latex@e@error}
 \ifx \:temp\:tempa
    <.latex209.4ht.>
 \else
    <.not latex209.>
 \fi
 -_-_-

In latex, we have ‘\let\math=\( \let\endmath=\) \def\displaymath{\[} \def\enddisplaymath{\]\global\@ignoretrue}’.

\Configure {[]} {cond-before-math} {cond-after-math} {cond-start-math} {cond-end-math}’ The cond is on at least one of the parameters in the pair being non-empty.

$$...$$’ and ‘\[...\]’ should have identical behavior with respect to paragraphs.

\[..\]’ is for ‘$$...$$’ and ‘\(...\)’ is for ‘$...$’.

Tried ‘\let\B:math|=\[ \let\E:math|=\] \let\b:math|=\( \let\e:math|=\) ’ for LaTeX, but there were occassions it failed me.

<..latex changes for tex4ht.sty..>
 <.html latex start.>
 <.html latex hook on end.>
 \expandafter\ifx \csname pageno\endcsname\relax
                  \let\pageno=\c@page   \fi
 \let\accent:def=\def
 \pend:def\protect:wrtoc{\:protect
    \Configure{ }{ }\toc:lbl:idx}
   \def\endMkHalign{\EndMkHalign}
 \def\:protect{\vrb:tt
   \let\protect=\@unexpandable@protect
   \let\ref=\o:ref \more:no
 }
 -_-_-

<..shared plain,eplain..>
 \pend:def\protect:wrtoc{\Configure{ }{ }}
 -_-_-

The following allows pushing the math mode into the cells, instead of being placed on top of the tabular environment (tabular has a ‘$’ outside the environment–for compatibility with the shared environment of array?). [more]

<..fix for tabular..>
 \def\:@tabular:{\expandafter\everymath
   \expandafter{\expandafter \everymath \expandafter{\the\everymath}}}%
 -_-_-

<..latex.ltx..>+
 <.html latex halign.>
 \:CheckOption{new-accents}     \if:Option \else
    <.latex accents.>
 \fi
 -_-_-

Do we also want \add@accent redefined to ‘\def\add@accent#1#2{{\accent#1 #2}}’.

<..latex.ltx..>+
       \pagestyle{empty}  \def\pagestyle#1{}
                          \def\thispagestyle#1{}
       \def\ps@plain{}
       \setlength\oddsidemargin   {0in}
       \setlength\evensidemargin  {0in}
 -_-_-