Chapter 4
Etc

<..0,32,4 preambles..>
 <.date utility.>
 <.cascade style sheets.>
 \Configure{Preamble}
    {<.default cascade style sheets.>} {}
-_-_-

<..default cascade style sheets..>
 {\ifdim \lastskip>\z@ \unskip\fi  \IgnorePar\parindent\z@
 \leavevmode}%
 \immediate\write16{--- file \aa:CssFile\space ---}%
 \ht:special{t4ht>\aa:CssFile}\ht:special{t4ht=\Hnewline /* css.sty */}%
 \ht:special{t4ht<\aa:CssFile}%
-_-_-

\special are like \hbox, and they so they may introduve empty lines in vertical mode. That might be a problem if we don’t want empty lines at the start of the files. Hence, in latex we give them special treatment.

<..cascade style sheets..>
 \ScriptCommand{\CssFile}{%
   \immediate\write16{--- file \aa:CssFile\space ---}%
   \def\FontSize##1##2{\:Context{##1}\ht:special{t4ht;\%##2}\%}%
   \def\FontName##1{\:Context{##1}\ht:special{t4ht;=}}%
   \def\:Context##1{\ht:special{t4ht>\jobname.tmp}##1\ht:special
      {t4ht>\aa:CssFile}}%
   \ht:special{t4ht>\jobname.tmp}\ht:special{t4ht>\aa:CssFile}\bb:CssFile
   \hfil\break\NoFonts}{\EndNoFonts
   \ht:special{t4ht<\aa:CssFile}\ht:special{t4ht<\jobname.tmp}}
 \let\Css:File=\CssFile
 \def\CssFile{\futurelet\:temp\Css:Fl}
 \def\Css:Fl{\ifx [\:temp  \expandafter\Css:fl
    \else \expand:after{\Css:File \space}\fi}
 \def\Css:fl[#1]{\Css:File\space \css:files #1,,<.par del.>}
 \def\css:files#1,#2<.par del.>{\def\:temp{#1}\ifx \:temp\empty
    \else \def\:temp{\in:css#1.<.par del.>\css:files#2,,<.par del.>}\fi
    \:temp }
 \def\in:css#1.#2<.par del.>{\def\:temp{#2}\ifx \:temp\empty \input #1.css
    \else \inc:ss#1.#2<.par del.>\fi}
 \def\inc:ss#1.<.par del.>{\input #1 }
 \NewConfigure{CssFile}[2]{\def\aa:CssFile{#1}\def\bb:CssFile{#2}}
-_-_-

\CssFile[file-name,filename.ext,..]...\EndCssFile.

Default file, just in case the user doesn’t provide one. If the user does, the following file will be overwritten.

Can’t use below \a:CssFile and \b:CssFile, because \ScriptFile{\CssFile} also needs them.

\Css changes its definition upon reachin \CssFile. The first definition is needed within the sty files, and the info is sent to the lg file (where else it can be sent?).

<..cascade style sheets..>+
 \def\Css#1{{\def\:temp{\Configure{Needs}}%
    \expandafter\:temp\expandafter{\aa:Css}\Needs{#1}}}
 \let\send:css=\Css
 \ScriptCommand{\Css}{\HCode{<style
    type="text/css">\Hnewline}\NoFonts}{\EndNoFonts\HCode{</style>}}
 \let\loc:css=\Css
 \def\Css{\futurelet\:temp\:Css}
 \def\:Css{\ifx \:temp\bgroup \expandafter\send:css
    \else \expandafter\loc:css\fi}
-_-_-

<..date utility..>
 \tmp:cnt=\time  \divide\tmp:cnt by 60
 \edef\:temp{\the\tmp:cnt}
 \multiply\tmp:cnt by -60 \advance\tmp:cnt by \time
 \edef\:today{\the\year-\ifnum \month<10 0\fi
   \the\month-\ifnum \day<10 0\fi\the\day
    \space\ifnum \:temp<10 0\fi \:temp
    :\ifnum \tmp:cnt<10 0\fi\the\tmp:cnt :00}
-_-_-

<..date utility..>+
 \:CheckOption{hooks++} \if:Option
     \else \:CheckOption{hooks+}
           \if:Option \else \:CheckOption{hooks}\fi
     \fi
 \if:Option
    \Configure{hooks}
       {\HCode{<strong class="hooks">&lt;}}{\HCode{&gt;</strong>}}{}{}
 \fi
-_-_-

The following provides a faster version than \LinkCommand\Link{a,href,name,} for the \Link command

<..32,4 tex4ht..>
 \Configure{Link}{a}{href=}{name=}{}
-_-_-
 4.1 article
 4.2 alsart
 4.3 report
 4.4 book
 4.5 latex.ltx
  4.5.1 obeylines
  4.5.2 Spaces
  4.5.3 Logos
  4.5.4 accents from html4
  4.5.5 tt Font
  4.5.6 Cross References
  4.5.7 Miscellaneous Environments
  4.5.8 Math Setup
  4.5.9 Tabbing, Tabular and Array Environments
  4.5.10 The option @()
  4.5.11 to be placed
 4.6 Long Tables
 4.7 Ams Math
 4.8 Shared
 4.9 aa
  4.9.1 Sizes of Fonts
 4.10 plain
 4.11 amsart
 4.12 amsproc
 4.13 amsbook
 4.14 babel.sty
 4.15 Scientific Word
 4.16 Babel
 4.17 babel.sty
 4.18 moreverb
 4.19 color
  4.19.1 2: Binary Operations
  4.19.2 3: Relational Operations
  4.19.3 4/5: Delimiters
  4.19.4 6: Punctuation Marks
  4.19.5 Questions
  4.19.6 Type 4: Math Open
 4.20 fleqn.sty
 4.21 amsppt.sty
 4.22 amsmath.sty
 4.23 amstex.sty (amstex1)
 4.24 amstex.tex
 4.25 vanilla
 4.26 slidesec
 4.27 ltugboat
 4.28 tex4ht
 4.29 th4
 4.30 seminar
 4.31 slides
 4.32 amsthm.sty
 4.33 colortbl.sty
 4.34 epsfig
 4.35 psfig
 4.36 graphics
 4.37 foils
 4.38 index
 4.39
 4.40 ntheorem
 4.41 hyperref
 4.42 web
 4.43 exerquiz
  4.43.1 to be placed
 4.44 tex4ht
 4.45 Interpretation for the Entries
 4.46 amstex