% $Id: tex4ht-tei.tex 768 2020-07-10 13:13:51Z michal_h21 $ % compile 3 times: latex tex4ht-tei % or xhlatex tex4ht-tei "html,3,sections+" % % Copyright 2009-2019 TeX Users Group % Copyright 2000-2009 Eitan M. Gurari % Released under LPPL 1.3c+. % See tex4ht-cpright.tex for license text. %%%%%%%%%%%%%%%%%% load style files %%%%%%%%%%%%%%%%%%%%%%%%%% \ifx \HTML\UnDef \def\HTML{tei,tei-mml,tei-mmltei,tei-math} \def\CONFIG{\jobname} \def\MAKETITLE{\title{Source for TEI}% \author{Eitan M. Gurari \& Sebastian Rahtz}} \def\next{\input mktex4ht.4ht \endinput} \expandafter\next \fi \input{common.tex} \input{tex4ht-cpright.tex} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \chapter{File Organization} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \<<< % tei.4ht (|version), generated from |jobname.tex % Copyright 2009-2019 TeX Users Group % Copyright |CopyYear.2000. Eitan M. Gurari | >>> \<<< \if:latex | \else | \fi >>> \<<< | | >>> \<<< | | >>> \<<< \Configure{ext}{xml} \edef\Preamble{\Preamble,refcaption} >>> \<<< %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % tei-mml.4ht (|version), generated from |jobname.tex % Copyright (C) |CopyYear.2000. Eitan M. Gurari | >>> \<<< %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % tei-math.4ht (|version), generated from |jobname.tex % Copyright (C) |CopyYear.2000. Eitan M. Gurari | >>> \<<< %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % tei-mmltei.4ht (|version), generated from |jobname.tex % Copyright (C) |CopyYear.2000. Eitan M. Gurari | >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \chapter{Origin of Hooks} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%% \section{tex4ht} %%%%%%%%%%%%%%%%%% \<<< | | | | >>> %%%%%%%%%%%%%%% \section{latex} %%%%%%%%%%%%%%% \<<< | | | | | | | | | | | >>> %%%%%%%%%%%%%%% \section{plain} %%%%%%%%%%%%%%% \<<< | >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{article, report, book} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \<<< | | |
| | |
| >>> \<<< | | | | | | >>> \<<< | | | | | >>> \<<< | | | | >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{TUG Boat/Proc} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \<<< \Configure{address} {\HCode{}} {\HCode{}} \Configure{netaddress} {\HCode{}} {\HCode{}} \Configure{PersonalURL} {\HCode{}} {\HCode{}} >>> \<<< | \Configure{thanks author date and}{}{} {|\HCode{}} {\HCode{}} {\HCode{}} {\HCode{}} {\HCode{}} {} >>> \<<< {\Configure{thanks author date and}{}{}{}{}{}{}{}{}% ||\Tag{)author)}{\@author}}% >>> \<<< \count@\authornumber \@tempcnta0 \let\:temp\relax \let\@author\empty \loop \ifnum\count@>0 \advance\@tempcnta by \@ne \edef\@author{\@author \ifx\@author\empty\else, \fi \:temp{\number\@tempcnta}}% \advance\count@ by \m@ne \repeat \let\ignorespaces\empty \let\unskip\empty \def\:temp##1{\csname theauthor##1\endcsname}% >>> \<<< \ConfigureEnv{abstract} {}{} {}{} \Configure{abstract} {\bgroup \HCode{

}\IgnoreIndent\par} {\ifvmode\IgnorePar\fi \EndP\HCode{

}\egroup} >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \chapter{Configurations} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Front and Back Matter} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{verbatim} [ TEI Header information ] [ front matter ... ] [ body of text ... ] [ back matter ... ] \end{verbatim} The front and back elements are optional. \<<< \Configure{HTML} {\HCode{}} {\HCode{}} \Configure{HEAD} {\HCode{}} {\HCode{\Hnewline \Hnewline }} \Configure{TITLE} {\HCode{\Hnewline}} {} \Configure{TITLE+} {\HCode{

\Hnewline

\FileName\space from \jobname.tex (TeX4ht)

\Hnewline }} >>> \<<< \Configure{HTML} {\HCode{}|} {\HCode{}} >>> The \verb++ is for clean-tei.xsl. \<<< \Configure{TITLE} {\HCode{\Hnewline \ifTag{TITLE+}{\LikeRef{TITLE+}}{}\Hnewline \ifTag{)author)}{\LikeRef{)author)}}{}\Hnewline \Hnewline }} {}% >>> \<<< {\Configure{thanks author date and}{}{}{}{}{}{}{}{}% |\Tag{)author)}{\@author}}% >>> \<<< {\Configure{maketitle}{}{}{}{}{}{}{}{}% |\Tag{TITLE+}{\@title}}% >>> % \let\thanks=\:gobble % % \def\TeX{TeX}% %\def\gobble:font##1##2{##2}\:TITLE: \<<< \let\leavevmode=\empty \let\not@math@alphabet=\:gobbleII \def\text@command##1{##1}\let\selectfont=\empty \let\\=\empty \no:fonts \def\check@icl ##1\check@icr{}% \:TITLE: \a:NoSection >>> \<<< \Configure{@TITLE}{\def\LaTeX{LaTeX}\let\fontencoding=\:gobble \let\fontfamily=\:gobble \let\fontseries=\:gobble \let\fontshape=\:gobble \let\usefont=\:gobbleIV } >>> \<<< \Configure{InsertTitle}{\let\label=\lb:l \let\ref=\o:ref \Configure{ref}{}{}{}} \Configure{AfterTitle}{\let\index=\:index \let\ref=\:ref \let\label=\lb:l } \Configure{NoSection} {\let\sv:index=\index \let\sv:label=\label \let\sv:ref=\ref \let\sv:newline=\newline \def\newline{ }% \let\sv:setfontsize=\@setfontsize \let\@setfontsize=\:gobbleIII \let\index=\@gobble \let\label=\@gobble \let\ref=\@gobble } {\let\index=\sv:index \let\label=\sv:label \let\ref=\sv:ref \let\newline=\sv:newline \let\@setfontsize=\sv:setfontsize } >>> \<<< \Configure{maketitle} {|\HCode{}} {\HCode{}} {\HCode{}} {\HCode{}} \Configure{thanks author date and}{}{} {|\HCode{}} {\HCode{}} {\HCode{}} {\HCode{}} {\HCode{}} {} >>> \<<< \Configure{maketitle} {|\HCode{}} {\HCode{}} {\HCode{}} {\HCode{}} \Configure{thanks author date and}{}{} {|\HCode{}} {\HCode{}} {\HCode{}} {\HCode{}} {\HCode{}} {} >>> \<<< \Configure{BODY} {\ifTag{TITLE+}% {\HCode{}\PushStack\text:stack{front}}% {\HCode{}\PushStack\text:stack{body}\ShowPar \csname par\endcsname}% } {\IgnorePar\EndP \PopStack\text:stack\:temp \def\:tempa{front}% \HCode{\ifx\:temp\:tempa

\fi
}} >>> \<<< \Configure{authors} {\HCode{}} {\HCode{}} \Configure{setdate} {\HCode{}} {\HCode{}} \Configure{thanks author date and}{}{} {|\HCode{}} {\HCode{}} {\HCode{}} {\HCode{}} {\HCode{}} {} >>> \<<< \Configure{maketitle} {|\HCode{}% \bgroup \Configure{centerline} {\HCode{}} {\HCode{}} } {\egroup \HCode{}} {\HCode{}} {\HCode{}} >>> %%%%%%%%%%%%%%%%%% \subsection{DTD's} %%%%%%%%%%%%%%%%%% \<<< \Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET} \:CheckOption{no-DOCTYPE} \if:Option \Configure{PROLOG}{VERSION,*XML-STYLESHEET} \fi >>> \<<< \Configure{VERSION} {\HCode{\Hnewline}} \Configure{VERSION} {\HCode{\Hnewline}} \Configure{DOCTYPE} {\HCode{]>}} >>> \<<< \Configure{VERSION} {\HCode{\Hnewline}} \Configure{VERSION} {\HCode{\Hnewline}} \Configure{DOCTYPE} {\HCode{]>\Hnewline}} >>> \<<< \Configure{VERSION} {\HCode{\Hnewline}} \Configure{VERSION} {\HCode{\Hnewline}} \Configure{DOCTYPE} {\HCode{ >\Hnewline}} >>> \<<< |% }\writesixteen{--- file \jobname.ent ---}\HCode{% |% >>> \<<< |% |% |% >>> \<<< SYSTEM "teimml.dtd" [\Hnewline} |\HCode{% ] >>> \<<< \Hnewline >>> % \Hnewline \<<< "\Hnewline "teixlite.dtd"> \Hnewline \%TEI.dtd; \Hnewline >>> \<<< "\Hnewline\space\space "mathml2.dtd"> \Hnewline \%mathml.dtd;\Hnewline >>> \<<< \HCode{}% >>> \<<< \Hnewline \%ENT-\jobname.ent; \Hnewline >>> \<<< \bgroup \def\toctei##1##2##3{\HCode{##2\Hnewline}}% \no:catcodes{34}{36}{12}\no:catcodes{94}{95}{12}\catcode`\~=12 \Configure{tableofcontents} {} {} {}{}{}% \:TableOfContents[tei]% \egroup >>> Instead of \verb=SYSTEM= earlier we had \verb=PUBLIC\Hnewline "-//TEI U5-1995//DTD TEI Lite 1.0 Extensions//|"\Hnewline=. \<<< \let\:NOTATIONs=\empty \def\Decl#1{\edef\:NOTATIONs{\:NOTATIONs#1\Hnewline}} >>> \<<< \def\Decl#1{\edef\:temp{\the\:tokwrite{\string\doTocEntry \string\toc tei{}{#1}{}}}\:temp } >>> \
<<< \def\Decl##1{{\everypar{}% \ht:special{t4ht>\jobname.ent}\hbox{\HCode{##1\Hnewline}}% \ht:special{t4ht>\FileName}}} \Decl{\:NOTATIONs}\let\:NOTATIONs=\:UnDef >>> \begin{verbatim} > oh yes. I copied the entity declaration into a comment after , > because xsl has no access to the document subset... Consider this: " "teixlite.dtd"> %TEI.dtd; %ENT-1-3.ent; " "mathml2.dtd"> %mathml.dtd; ]> the entities are read in from an external file via the %ENT-1-3.ent; unfortunately such parameter entities do not have to be expanded by XML processors, so the file can not get read. xmltex is an example of a system which fails to do so... we need to textually include the entity file, not reference it. \end{verbatim} \<<< \HAssign\ent:cnt = 0 \Configure{Preamble} {} {{\ifdim \lastskip>\z@ \unskip\fi \IgnorePar\parindent\z@ \leavevmode}% |
% } | >>> \<<< \Configure{Preamble} {} {{\ifdim \lastskip>\z@ \unskip\fi \IgnorePar\parindent\z@ \leavevmode}% } | >>> %%%%%%%%%%%%%%%%%%%% \section{Css} %%%%%%%%%%%%%%%%%%%% The following code has been copied from tex4ht-docbook.tex. It provides basic support for writing to the CSS file produced by tex4ht. \<<< | \Configure{Preamble} {|} {} \Configure{CssFile}{\jobname.css} {/* \aa:CssFile\space from \jobname.tex (TeX4ht) */} \Configure{Needs}{l. \the\inputlineno\space--- needs --- #1 ---} \Configure{Needs-}{l. \the\inputlineno\space--- needs --- #1 ---} >>> \<<< {\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}% >>> \<<< \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}\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,,|} \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 \input #1.css \else \inc:ss#1.#2|\fi} \def\inc:ss#1.|{\input #1 } \NewConfigure{CssFile}[2]{\def\aa:CssFile{#1}\def\bb:CssFile{#2}} >>> \<<< \def\Css#1{{\def\:temp{\Configure{Needs}}% \expandafter\:temp\expandafter{\aa:Css}\Needs{#1}}} \expandafter\ifx \csname aa:Css\endcsname\relax \Configure{Css}{Css: ##1} \fi >>> %%%%%%%%%%%%%%%%%% \section{HTF} %%%%%%%%%%%%%%%%%% Basic support for HTF fonts. I am not sure if this method is the best, there seems to be no direct equivalent to HTML class and corresponding CSS. \<<< \Configure{htf}{0}{+}{}{} \Configure{htf}{4}{+}{}{}{}{}{}{}{} \Configure{htf}{6}{+}{}{}{}{}{}{}{} \Configure{htf}{8}{+}{}{}{}{}{}{}{} \Configure{htf}{10}{+}{}{}{}{}{}{}{} \Configure{htf}{12}{+}{}{}{}{}{}{}{} \Configure{htf}{14}{+}{}{}{}{}{}{}{} \Configure{htf}{16}{+}{}{}{}{}{}{}{} \Configure{htf}{18}{+}{}{}{}{}{}{}{} \Configure{htf}{20}{+}{}{}{}{}{}{}{} \Configure{htf}{22}{+}{}{}{}{}{}{}{} >>> %%%%%%%%%%%%%%%%%% \section{Sections} %%%%%%%%%%%%%%%%%% \
<<< \Configure{part} {\OpenDiv{part}} {\CloseDiv{part}} {\HCode{}} {\CloseHead} \Configure{section} {\OpenDiv{section}} {\CloseDiv{section}} {\HCode{}} {\CloseHead} \Configure{subsection} {\OpenDiv{subsection}} {\CloseDiv{subsection}} {\HCode{}} {\CloseHead} \Configure{subsubsection} {\OpenDiv{subsubsection}} {\CloseDiv{subsubsection}} {\HCode{}} {\CloseHead} \Configure{paragraph} {\OpenDiv{paragraph}} {\CloseDiv{paragraph}} {\HCode{}} {\CloseHead} \Configure{subparagraph} {\OpenDiv{subparagraph}} {\CloseDiv{subparagraph}} {\HCode{}} {\CloseHead} >>> \
<<< \Configure{likepart} {\OpenDiv{likepart}} {\CloseDiv{likepart}} {\HCode{}} {\CloseHead} \Configure{likesection} {\OpenDiv{likesection}} {\CloseDiv{likesection}} {\HCode{}} {\CloseHead} \Configure{likesubsection} {\OpenDiv{likesubsection}} {\CloseDiv{likesubsection}} {\HCode{}} {\CloseHead} \Configure{likesubsubsection} {\OpenDiv{likesubsubsection}} {\CloseDiv{likesubsubsection}} {\HCode{}} {\CloseHead} \Configure{likeparagraph} {\OpenDiv{likeparagraph}} {\CloseDiv{likeparagraph}} {\HCode{}} {\CloseHead} \Configure{likesubparagraph} {\OpenDiv{likesubparagraph}} {\CloseDiv{likesubparagraph}} {\HCode{}} {\CloseHead} >>> \<<< |
>>> %\let\contentsname|=\empty \
<<< \Configure{tableofcontents} {\ifvmode\IgnorePar\fi \EndP \HCode{}} {} {}{}{} >>> \<<< |
\ConfigureToc{appendix}{}{}{}{} \ConfigureToc{chapter}{}{}{}{} \ConfigureToc{likechapter}{}{}{}{} >>> \
<<< \ConfigureToc{likeparagraph}{}{}{}{} \ConfigureToc{likepart}{}{}{}{} \ConfigureToc{likesection}{}{}{}{} \ConfigureToc{likesubparagraph}{}{}{}{} \ConfigureToc{likesubsection}{}{}{}{} \ConfigureToc{likesubsubsection}{}{}{}{} \ConfigureToc{paragraph}{}{}{}{} \ConfigureToc{part}{}{}{}{} \ConfigureToc{section}{}{}{}{} \ConfigureToc{subparagraph}{}{}{}{} \ConfigureToc{subsection}{}{}{}{} \ConfigureToc{subsubsection}{}{}{}{} >>> \<<< \Configure{TocEntry}{\Link{#2}{#3}#4\EndLink} >>> \
<<< \Configure{tableofcontents} {\HCode{}} {\HCode{}} {}{}{} >>> \<<< |
\ConfigureToc{appendix} {\HCode{\Hnewline}} {\ }{} {\HCode{}} \ConfigureToc{chapter} {\HCode{\Hnewline}} {\ }{} {\HCode{}} \ConfigureToc{likechapter} {} {\HCode{\Hnewline}} {} {\HCode{}} >>> \
<<< \ConfigureToc{likeparagraph} {} {\HCode{\Hnewline}} {} {\HCode{}} \ConfigureToc{likepart} {} {\HCode{\Hnewline}} {} {\HCode{}} \ConfigureToc{likesection} {} {\HCode{\Hnewline}} {} {\HCode{}} \ConfigureToc{likesubparagraph} {} {\HCode{\Hnewline}} {} {\HCode{}} \ConfigureToc{likesubsection} {} {\HCode{\Hnewline}} {} {\HCode{}} \ConfigureToc{likesubsubsection} {} {\HCode{\Hnewline}} {} {\HCode{}} \ConfigureToc{paragraph} {\HCode{\Hnewline}} {\ }{} {\HCode{}} \ConfigureToc{part} {\HCode{\Hnewline}} {\ }{} {\HCode{}} \ConfigureToc{section} {\HCode{\Hnewline}} {\ }{} {\HCode{}} \ConfigureToc{subparagraph} {\HCode{\Hnewline}} {\ }{} {\HCode{}} \ConfigureToc{subsection} {\HCode{\Hnewline}} {\ }{} {\HCode{}} \ConfigureToc{subsubsection} {\HCode{\Hnewline}} {\ }{} {\HCode{}} >>> \subsection{Mapping Utilities} \begin{verbatim} \section{...} ............................. \subsection{...} ............................. ............................. \section{...} ............................. \end{verbatim} \<<< | >>> \<<< \HAssign\DivLevel=0 \HAssign\DivCount=0 \def\OpenDiv#1{% \IgnorePar\EndP \PopStack\text:stack\:temp \def\:tempa{body}% \ifx \:temp\:tempa \else \HCode{}\fi \PushStack\text:stack{body}% |% \gHAdvance\DivLevel by 1 \HCode{}\gHAdvance\P:level by 1 } \def\CloseDiv#1{% \IgnorePar\EndP \gHAdvance\P:level by -1 \HCode{}% \gHAdvance\DivLevel by -1 } \def\CloseHead{\HCode{}% |\ShowPar\par} >>> \<<< \ifnum \DivLevel>0 \ifnum \DivLevel=0\LikeRef{dv)\DivCount}\relax \gHAdvance\P:level by 1 \HCode{}% \fi\fi >>> \<<< \gHAdvance\DivCount by 1 \Tag{dv)\DivCount}{\DivLevel}% \HAdvance\DivLevel by 1 \HAdvance\DivCount by 1 \ifnum \DivLevel=0\LikeRef{dv)\DivCount}\relax \HCode{

}% \gHAdvance\P:level by 1 \fi \HAdvance\DivLevel by -1 \HAdvance\DivCount by -1 >>> The \verb+

+ is to ensure at least one paragaph in the preamble, e.g., between the section heads of \begin{verbatim} ................. \section{Distributions}% \subsection{Definitions} ............... \end{verbatim} \<<< \gHAssign\P:level=0 >>> \subsection{End Points} \
<<< \Configure{endsection} {likesection,chapter,likechapter,appendix,part,likepart} \Configure{endlikesection} {section,chapter,likechapter,appendix,part,likepart} \Configure{endsubsection} {likesubsection,section,likesection,chapter,% likechapter,appendix,part,likpart} \Configure{endlikesubsection} {subsection,section,likesection,chapter,% likechapter,appendix,part,likpart} \Configure{endsubsubsection} {likesubsubsection,subsection,likesubsection,section,% likesection,chapter,likechapter,appendix,part,likpart} \Configure{endlikesubsubsection} {subsubsection,subsection,likesubsection,section,% likesection,chapter,likechapter,appendix,part,likpart} \Configure{endparagraph} {likeparagraph,subsubsection,likesubsubsection,subsection,% likesubsection,section,% likesection,chapter,likechapter,appendix,part,likpart} \Configure{endlikeparagraph} {paragraph,subsubsection,likesubsubsection,subsection,% likesubsection,section,% likesection,chapter,likechapter,appendix,part,likpart} \Configure{endsubparagraph} {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,% subsection,likesubsection,section,% likesection,chapter,likechapter,appendix,part,likpart} \Configure{endlikesubparagraph} {subparagraph,likeparagraph,subsubsection,likesubsubsection,% subsection,likesubsection,section,% likesection,chapter,likechapter,appendix,part,likpart} \ifx \part\:UnDef \else \Configure{endpart}{likepart} \Configure{endlikepart}{endpart} \fi >>> %%%%%%%%%%%%%%% \section{Lists} %%%%%%%%%%%%%%% \<<< \ConfigureList{trivlist}% {\EndP\HCode{}\let\end:itm=\empty} {\EndP\HCode{}\ShowPar} {\end:itm\def\end:itm{\EndP\Tg}\HCode{}} \ConfigureList{list}% {\EndP\HCode{}\let\end:itm=\empty} {\EndP\HCode{}\ShowPar} {\end:itm\def\end:itm{\EndP\Tg}\HCode{}} \ConfigureList{itemize}% {\EndP\HCode{}\let\end:itm=\empty} {\EndP\HCode{}\ShowPar} {\end:itm\def\end:itm{\EndP\Tg}\DeleteMark} {\HCode{}} \ConfigureList{enumerate}% {\EndP\HCode{}\let\end:itm=\empty} {\EndP\HCode{}\ShowPar} {\end:itm\def\end:itm{\EndP\Tg}\DeleteMark} {\HCode{}\AnchorLabel} >>> \<<< \ConfigureList{thebibliography}% {\IgnorePar\EndP \HCode{
}\let\en:bib=\empty} {\en:bib\HCode{
}} {\en:bib\def\en:bib{\HCode{}}% \HCode{}} >>> \<<< \Configure{HtmlPar} {\HCode{}} {\HCode{}} {} {} >>> \<<< \Configure{cite}{}{}{\Link}{\EndLink} \Configure{bibitem}{\Link}{\EndLink} >>> %%%%%%%%%%%%%%%% \section{Tables} %%%%%%%%%%%%%%%% \<<< \Configure{tabular} {||% \HCode{ >}} {\HCode{}% |} {|\HCode{}} {\HCode{}} {|% \HCode{}} {\HCode{}} \HAssign\tabularN=0 >>> \<<< \gHAdvance\tabularN by 1 \PushStack\tabular:N\tabularN \let\prevR:max=\R:max \let\prevC:max=\C:max \gHAssign\C:max=0 >>> \<<< \PopStack\tabular:N\i:var |% \Tag{rc-\i:var}{rend="|" rows="\R:max" cols="\C:max"} \global\let\R:max=\prevR:max \global\let\C:max=\prevC:max >>> \<<< \expandafter\tmp:toks\expandafter{\Clr}% >>> \<<< \the\tmp:toks >>> \<<< \HAssign\i:var=\HCol \HAdvance\i:var by \HMultispan \HAdvance\i:var by -1 \ifnum \C:max<\i:var \gHAssign\C:max=\i:var \fi >>> \<<< \gHAssign\R:max=\HRow >>> \<<< \expandafter\ifx \csname cw:rc-\tabularN\endcsname \relax \tmp:toks{ }% \else \expandafter\expandafter\expandafter\tmp:toks \expandafter\expandafter\expandafter{\csname cw:rc-\tabularN\endcsname}% \fi >>> \<<< \the\tmp:toks >>> \<<< \Configure{hline}{} \Configure{//[]}{} >>> \<<< \Configure{verb}{}{} \Configure{obeylines} {\ifvmode \EndP \HCode{
}% \gdef\ob:ln{div}% \else \HCode{}% \gdef\ob:ln{emph}% \fi } {\ht:special{t4ht=}\ShowPar} {\hbox{\HCode{
}}} >>> \<<< \ifx \deferred@thm@head\:UnDef\else \Configure{newtheorem} {\par\HCode{}\IgnorePar\par} {\HCode{}} {} \fi >>> %%%%%%%%%%%%%%%%% \section{Figures} %%%%%%%%%%%%%%%%% \<<< \ConfigureEnv{figure} {\ifvmode \IgnorePar\fi\EndP \HCode{}} {\ifvmode \IgnorePar\fi\EndP \HCode{}} {}{} \Configure{caption} {}{} {\HCode{}} {\HCode{}} >>> %%%%%%%%%%%%%%%%% \section{Accents} %%%%%%%%%%%%%%%%% \<<< \Configure{centerline} {\ifvmode \IgnorePar \fi \EndP\HCode{

}} {\EndP\HCode{

}\ShowPar} \Configure{leftline} {\ifvmode \IgnorePar \fi \EndP\HCode{

}} {\EndP\HCode{

}\ShowPar} \Configure{rightline} {\ifvmode \IgnorePar \fi \EndP\HCode{

}} {\EndP\HCode{

}\ShowPar} >>> %%%%%%%%%%%%%%%%% \section{Accents} %%%%%%%%%%%%%%%%% \<<< \:CheckOption{new-accents} \if:Option | \else | \fi \let\^^_=\v >>> \<<< \let\@acci=\' \let\@accii=\` \let\@acciii=\= >>> \<<< \:CheckOption{accent-} \if:Option \Configure{HAccent}\acute{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture} \Configure{HAccent}\bar{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\breve{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\check{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\ddot{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture} \Configure{HAccent}\dot{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\grave{AEIOUaeiou{}}{\Picture+{}}{\EndPicture} \Configure{HAccent}\hat{AEIOUaeiou{}}{\Picture+{}}{\EndPicture} \Configure{HAccent}\tilde{AOaoNn{}}{\Picture+{}}{\EndPicture} \Configure{HAccent}\vec{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\widehat{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\widetilde{}{\Picture+{}}{\EndPicture} \fi \:CheckOption{mathaccent-} \if:Option \Configure{HAccent}\"{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture} \Configure{HAccent}\'{AEIOUYaeiouy{}}{\Picture+{}}{\EndPicture} \Configure{HAccent}\.{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\={}{\Picture+{}}{\EndPicture} \Configure{HAccent}\H{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\^{AEIOUaeiou{}}{\Picture+{}}{\EndPicture} \Configure{HAccent}\`{AEIOUaeiou{}}{\Picture+{}}{\EndPicture} \Configure{HAccent}\b{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\c{Cc{}}{\Picture+{}}{\EndPicture} \Configure{HAccent}\d{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\t{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\u{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\v{}{\Picture+{}}{\EndPicture} \Configure{HAccent}\~{AOaoNn{}}{\Picture+{}}{\EndPicture} \fi >>> \<<< \Configure{accent}{*} {} {} \Configure{mathaccent}{*} {} {} \Configure{accented}{*} {} {} \Configure{accenting}{*} {} {} >>> \<<< \Configure{accent}\`\grave{A{A}E{E}I{I}O{O}U{U}% a{a}e{e}i{i}\i{i}o{o}u{u}{}{}} {\a:accents{grave}{#1}} {\b:accents{grave}{#1}{#2}} \Configure{accent}\'\acute{A{A}E{E}I{I}O{O}U{U}Y% {Y}a{a}e{e}i{i}\i{i}o{o}u{u}y{y}{}{}} {\a:accents{acute}{#1}} {\b:accents{acute}{#1}{#2}} \Configure{accent}\^\hat{A{A}E{E}I{I}O{O}U{U}a{a}% e{e}i{i}\i{i}o{o}u{u}{}{}} {\a:accents{circ}{#1}} {\b:accents{hat}{#1}{#2}} \Configure{accent}\~\tilde{A{A}O{O}a{a}o{o}N{N}n{n}{}{}} {\a:accents{tilde}{#1}} {\b:accents{tilde}{#1}{#2}} \Configure{accent}\"\ddot{A{A}E{E}I{I}O{O}U{U}Y% {Y}a{a}e{e}i{i}\i{i}o{o}u{u}y{y}{}{34}} {\a:accents{uml}{#1}} {\b:accents{uml}{#1}{#2}} >>> The following are also placed under accents configuration. \<<< \Configure{accent}\c\c{C{C}c{c}{}{}} {\a:accents{cedil}{#1}} {\b:accents{cedil}{#1}{#2}} \Configure{accent}\t\t{{}{}} {\a:accents{udot}{#1}} {\b:accents{udot}{#1}{#2}} \Configure{accent}\H\H{{}{}} {}{\b:accents{Huml}{#1}{#2}} >>> The following originally have been defined to be parameter-less. \<<< \Configure{accent}\.\dot{{}{}} {}{\b:accents{dot}{#1}{#2}} \Configure{accent}\u\breve{{}{}}{}{\b:accents{breve}{#1}{#2}} \Configure{accent}\vec\vec{{}{}}{}{\b:accents{vec}{#1}{#2}} \Configure{accent}\v\check{{}{}}{}{\b:accents{check}{#1}{#2}} \Configure{accent}\=\bar{{}{}} {}{\b:accents{bar}{#1}{#2}} >>> % \= macron \<<< \Configure{accent}\widetilde\widetilde{{}{}} {}{\b:accents{widetilde}{#1}{#2}} \Configure{accent}\widehat\widehat{{}{}} {}{\b:accents{widehat}{#1}{#2}} >>> \verb'\vec', \verb'\widetilde', and \verb'\widehat' are for math mode. \verb'\b', \verb'\c', \verb'\d', \verb'\t', and \verb'\H' are for text mode. \<<< | >>> \<<< | >>> \<<< \:CheckOption{new-accents} \if:Option \else \Configure{accents} {\ifmmode \expandafter\mathord\fi {|% \ht:special{t4ht@[}#2\ht:special{t4ht@]}}} {\ifmmode \expandafter\mathord\fi {\HCode{}#3\HCode{}}} \fi >>> \<<< \HCode{&\#x\expandafter \ifx\csname U#2#1\endcsname\relax #2#1\else \csname U#2#1\endcsname\fi;}% >>> %\HCode{#1;}% %%%%%%%%%%%%%%%%%%%% \section{Math} %%%%%%%%%%%%%%%%%%%% \<<< \Configure{equation} {} {\HCode{}} {\HCode{}} \ConfigureEnv{equation} {\IgnorePar\EndP \HCode{

}} {\HCode{

}\ShowPar\par} {}{} >>> \<<< \Configure{$$} {\Configure{@math}{display="block"}\DviMath} {\EndDviMath{\csname HCondtrue\endcsname\noindent}}{} \Configure{DviMath} {\mathmltrue \NoFonts\IgnoreRule\HCode{}\a:math |\IgnorePar} {\HCode{}\EndIgnoreRule\EndNoFonts |\mathmlfalse} \def\:rend#1=#2=#3//{\if !#1!\else rend=#2\fi} \def\m:rend#1=#2=#3//{\if !#1!\else display=#2\fi} >>> \<<< \sv:ignore >>> \<<< \edef\sv:ignore{\if:nopar \noexpand\IgnorePar\else \noexpand\ShowPar\fi}% >>> \<<< \ConfigureEnv{gather} {\ShowPar\par} {\ShowPar\par} {}{} >>> \<<< \ConfigureEnv{align*} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi} {}{} \ConfigureEnv{alignat*} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{alignat} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{align} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{eqxample} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{flalign*} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{flalign} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{gather} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{gather*} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{gathered} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{matrix} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{xalignat*} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{xalignat} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} \ConfigureEnv{xxalignat} {\ifmmode\else \IgnorePar\EndP \HCode{}\fi} {\ifmmode\else \HCode{}\par\ShowPar\fi}{}{} >>> %%%%%%%%%%%%%%%%%%%% \section{Loose Ends} %%%%%%%%%%%%%%%%%%%% \<<< \ConfigureEnv{verbatim} {\ifinner\else \vfill\break\fi \IgnorePar\EndP\HCode{

}\EndNoFonts} {\NoFonts \ht:special{t4ht=

}\ShowPar\par} {} {} \ConfigureEnv{verbatim*} {\ifinner\else \vfill\break\fi \IgnorePar\EndP\HCode{

}\EndNoFonts} {\NoFonts \HCode{

}\ShowPar\par} {} {} \Configure{verbatim}{\:nbsp}{\a:sp} >>> \<<< \ConfigureEnv{flushleft} {\IgnorePar\EndP\HCode{

}% \gHAdvance\P:level by 1 } {\IgnorePar\EndP\gHAdvance\P:level by -1 \HCode{
}} {}{} \ConfigureEnv{flushright} {\IgnorePar\EndP\HCode{
}% \gHAdvance\P:level by 1 } {\IgnorePar\EndP\gHAdvance\P:level by -1 \HCode{
}} {}{} \ConfigureList{flushleft} {}{} {} {\par\ShowPar} \ConfigureList{flushright} {}{} {} {\par\ShowPar} >>> \<<< \ConfigureEnv{abstract} {\IgnorePar\EndP\HCode{
}% \gHAdvance\P:level by 1 } {\IgnorePar\EndP\gHAdvance\P:level by -1 \HCode{
}} {\HCode{}} {\HCode{}} >>> \<<< \newif\ifHCond \Configure{HtmlPar} {\EndP\HCode{% \ifnum\P:level=0
\fi

}\gHAdvance\P:level by 1 } {\EndP\HCode{% \ifnum\P:level=0

\fi

}\gHAdvance\P:level by 1 } {\gHAdvance\P:level by -1 \HCode{

\ifnum\P:level=0
\fi }} {\gHAdvance\P:level by -1 \HCode{

\ifnum\P:level=0
\fi }} >>> \<<< \Configure{newline}{\HCode{}} >>> \<<< \Configure{newline} {\ifmtext \HCode{}% \else \HCode{}\fi} >>> \<<< \ConfigureEnv{minipage} {\IgnorePar\EndP\HCode{}} {\IgnorePar\EndP\HCode{}\ShowPar} {}{} \Configure{newtheorem} {\IgnorePar\EndP\HCode{}} {\HCode{}\ShowPar\par} {\IgnorePar\EndP\HCode{}\ShowPar\par} >>> \<<< \ifx \deferred@thm@head\:UnDef\else | \fi >>> \<<< | >>> \<<< \Configure{proof} {\IgnorePar\EndP\HCode{}} {\HCode{}\ShowPar\par} {\IgnorePar\EndP\HCode{}\ShowPar\par} >>> \<<< \Configure{Link}{ref}{ target=}{ id=}{\empty} >>> \<<< \Decl{} \Configure{url}{% \urlLink[xr-ent\ent:cnt]{}{}#1\EndurlLink \Decl{}% \gHAdvance\ent:cnt by 1 } \LinkCommand\urlLink{xref,doc} >>> xr-ent has to be a notation-type entity to fit with TEI's demand of `\verb+doc ENTITY #IMPLIED+'. For instance, \begin{verbatim} \end{verbatim} % \Decl{} % \Decl{} \<<< \def\:tempc#1{% \Configure{graphics*} {#1} {\HCode{
}% \Decl{}% \gHAdvance\ent:cnt by 1 }} | >>> \<<< \def\:tempc#1{% \Decl{} \Configure{graphics*} {#1} {\HCode{
% }% \Decl{}% \gHAdvance\ent:cnt by 1 }} | >>> \<<< \:tempc{eps} \:tempc{jpg} \:tempc{pdf} \:tempc{png} \:tempc{tif} \:tempc{gif} >>> \<<< \Configure{mathit}{\ifmathml\else \HCode{}\fi} {\ifmathml\else \HCode{}\fi} \Configure{mathbf}{\ifmathml\else \HCode{}\fi} {\ifmathml\else \HCode{}\fi} \Configure{mathtt}{\ifmathml\else \HCode{}\fi} {\ifmathml\else \HCode{}\fi} \Configure{mathsf}{\ifmathml\else \HCode{}\fi} {\ifmathml\else \HCode{}\fi} \Configure{mathrm}{\ifmathml\else \HCode{}\fi} {\ifmathml\else \HCode{}\fi} >>> \<<< \Configure{textbf}{\ifmathml\else |\HCode{}\fi} {\ifmathml\else \HCode{}|\fi} \Configure{textit}{\ifmathml\else |\HCode{}\fi} {\ifmathml\else \HCode{}|\fi} \Configure{textrm}{\ifmathml\else |\HCode{}\fi} {\ifmathml\else \HCode{}|\fi} \Configure{textup}{\ifmathml\else |\HCode{}\fi} {\ifmathml\else \HCode{}|\fi} \Configure{textsc}{\ifmathml\else |\HCode{}\fi} {\ifmathml\else \HCode{}|\fi} \Configure{textsf}{\ifmathml\else |\HCode{}\fi} {\ifmathml\else \HCode{}|\fi} \Configure{textsl}{\ifmathml\else |\HCode{}\fi} {\ifmathml\else \HCode{}|\fi} \Configure{texttt}{\ifmathml\else |\HCode{}\fi} {\ifmathml\else \HCode{}|\fi} \Configure{emph}{\ifmathml\else |\HCode{}\fi} {\ifmathml\else \HCode{}|\fi} >>> \<<< \leavevmode\SaveEndP\bgroup \Configure{HtmlPar} {\HCode{}} {\HCode{}} {}{}% >>> \<<< \egroup \RecallEndP >>> \endinput