6.21 aa
pages should honor the base font sizes the readers choose for their browsers. Hence,
under this assumption, all tex4ht should do is just assure appropriate relative
dimensions for fonts of other sizes. To meet this end, I modified latex.4ht to
automatically include
{\Configure{Needs}{Font\string_Size: #1}\Needs{1...}}
when options 11pt and 12pt are listed in \documentclass.
�
{\Configure{Needs}{Font\string_Size: #1}\ifcase \@ptsize
\or \Needs{11}\or \Needs{12}\else \fi}
-_-_-
\ConfigureMark{section}
{\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
\else
\HCode{<span class="titlemark">}\@seccntformat{section}%
\HCode{</span>}\fi }
<.section TITLE+.>
\Configure{section}{}{}
{\ifvmode \IgnorePar\fi \EndP\IgnorePar
\HCode{<h3 class="sectionHead"\a:LRdir>}\TitleMark\space\HtmlParOff}
{\HCode{</h3>}\HtmlParOn\ShowPar \IgnoreIndent \par}
\Configure{likesection}{}{}
{\ifvmode \IgnorePar\fi
\EndP\IgnorePar\HCode{<h3 class="likesectionHead"\a:LRdir>}\HtmlParOff}
{\HCode{</h3>}\HtmlParOn \IgnoreIndent \ShowPar \par}
\Configure{likesectionTITLE+}{#1} -_-_-
The \ShowPar is required for examples like below.
\documentclass{book}
\usepackage{titlesec}
\begin{document}
\section*{foobar}
a \par b
\end{document}
\Configure{paragraph}{}{}
{\ShowPar\IgnoreIndent\HCode{<span class="paragraphHead"\a:LRdir>}\begingroup\bf}
{\endgroup\HCode{</span>}\par\IgnorePar}
\Configure{likeparagraph}{}{}
{\ShowPar\IgnoreIndent\HCode{<span class="likeparagraphHead"\a:LRdir>}}
{\HCode{</span>}\par\IgnorePar}
\Css{.paragraphHead, .likeparagraphHead
{ margin-top:2em; font-weight: bold;}}
-_-_-
\ConfigureMark{subparagraph}{}
\Configure{subparagraph}{}{}
{\ShowPar\HCode{<span class="subparagraphHead"\a:LRdir>}\begingroup\bf
\TitleMark\space}
{\endgroup\HCode{</span>}\IgnorePar}
\Configure{likesubparagraph}{}{}
{\ShowPar\HCode{<span class="likesubparagraphHead"\a:LRdir>}\begingroup\bf}
{\endgroup\HCode{</span>}\IgnorePar}
\Css{.subparagraphHead, .likesubparagraphHead
{ font-weight: bold;}}
-_-_-
\ConfigureEnv{picture}
{\bgroup\ifvmode \Configure{HtmlPar}
{\EndP\HCode{<.show input line no.>}\HCode{<p
class="center" \a:LRdir>}}%
{\EndP\HCode{<.show input line no.>}\HCode{<p
class="center" \a:LRdir>}}%
{\:xhtml{\Tg</p>}}{\:xhtml{\Tg</p>}} \ShowPar\leavevmode
\fi}
{\egroup}{}{} -_-_-
\Configure{m}
{\HCode{\string&\#x2329;}}
{\HCode{\string&\#x232A;}}
-_-_-