<<<
|
\Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET}
\:CheckOption{mouseover} \if:Option
|
\fi
\:CheckOption{no-DOCTYPE} \if:Option
\:CheckOption{no-VERSION} \if:Option
\Configure{PROLOG}{*XML-STYLESHEET}
\else
\Configure{PROLOG}{VERSION,*XML-STYLESHEET}
|
\fi
\else
\:CheckOption{no-VERSION} \if:Option
\Configure{PROLOG}{DOCTYPE,*XML-STYLESHEET}
\else
|
\fi
\Log:Note{to remove the DOCTYPE declaration
use the command line option `no-DOCTYPE'}
\fi
>>>
\<<<
\Log:Note{to remove the processing instruction
use the command line option `no-VERSION'}
>>>
\<<<
\:CheckOption{xhtml} \if:Option
|%
\def\:DTD{xhtml}
\else
|%
\fi
>>>
\<<<
\csname a:frames-altDOCTYPE\endcsname
>>>
\<<<
\NewConfigure{frames-altDOCTYPE}{1}
\Configure{frames-altDOCTYPE}
{|}
>>>
Don't place the full address
\''http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'
within DOCTYPE. It can stop tools like xt when the server doesn't respond
\<<<
|%
\Configure{DOCTYPE}
{\HCode{ \Hnewline
\Hnewline}}
\def\xhtml:DOCTYPE{PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//|"\Hnewline
\space\space
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"}
>>>
\<<<
\expandafter
\ifx \csname a:dtd-lang\endcsname\relax EN\else
\csname a:dtd-lang\endcsname
\fi
>>>
\<<<
\Configure{@DOCTYPE}
{\Hnewline\%xhtml.dtd; \Hnewline}
>>>
\<<<
\Configure{DOCTYPE}{\IgnorePar\HCode
{
\Hnewline}}
>>>
\<<<
\:CheckOption{xhtml} \if:Option
|%
\Configure{DOCTYPE}
{\HCode{\Hnewline}}
\else
\Configure{DOCTYPE}
{\HCode{\Hnewline}}
\fi
>>>
Xerces reqires the following encoding.
\<<<
\def\:encoding#1={}
>>>
\<<<
encoding="\expandafter\ifx \csname a:charset\endcsname\relax
\expandafter\:encoding\A:charset
\else \expandafter\:encoding\a:charset\fi"
>>>
%%%%%%%%%%%%%%%%
\section{BODY}
%%%%%%%%%%%%%%%%
\<<<
\:CheckOption{mouseover} \if:Option
\Configure{BODY}
{\:xhtml{\SaveEndP}\IgnorePar\HCode{}|\ShowPar\par}
{\IgnorePar\:xhtml{\EndP}\HCode{\Hnewline
}\:xhtml{\RecallEndP}}%
\else
\Configure{BODY}
{\:xhtml{\SaveEndP}\IgnorePar\HCode{}\ShowPar\par }
{\IgnorePar\:xhtml{\EndP}\HCode{\Hnewline
}\:xhtml{\RecallEndP}}%
\fi
>>>
\<<<
\def\Frame:Name{menu}
|%
\Configure{BODY}
{%
\a:frames \NoFrames \PushStack\BODY:stack{}
|%
|%
\HPage[tex4ht-p1]{table of contents}%
\par \ShowPar \Link{}{|}\EndLink
\bgroup
\Configure{Link}{a}{target="|" href=}{ id=}{}
\b:frames
\egroup
\def\Frame:Name{main}
\EndHPage{tex4ht-p1} \expandafter\Tg
\HPage[tex4ht-p2]{text}\par\ShowPar
\Link{}{|}\EndLink
}
{\EndHPage{tex4ht-p2}}
\NewConfigure{frames}{2}
\Css{body\#| {white-space: nowrap; }}
>>>
\<<<
\:CheckOption{mouseover} \if:Option
\Configure{BODY}
{\PushStack\BODY:stack{x}%
\:xhtml{\SaveEndP}\IgnorePar\HCode{}|\ShowPar\par \let\Frame:Name=\empty}
{\IgnorePar\:xhtml{\EndP}\PopStack\BODY:stack\:temp
\ifx \:temp\empty \EndFrames \else
\HCode{\Hnewline }\fi
\:xhtml{\RecallEndP}}%
\else
\Configure{BODY}
{\PushStack\BODY:stack{x}%
\:xhtml{\SaveEndP}\IgnorePar\HCode{}\ShowPar\par \let\Frame:Name\empty}
{\IgnorePar\:xhtml{\EndP}\PopStack\BODY:stack\:temp
\ifx \:temp\empty \EndFrames
\else \HCode{\Hnewline }\fi
\:xhtml{\RecallEndP}}%
\fi
>>>
\<<<
tex4ht-main>>>
\<<<
tex4ht-fn>>>
\<<<
tex4ht-menu>>>
%%%%%%%%%%%%%%%%
\section{Meta}
%%%%%%%%%%%%%%%%
\<<<
\:CheckOption{xht} \if:Option
\:CheckOption{xhtml}\if:Option \else \:CheckOption{xml}\fi
\fi
\if:Option |
\else |\fi
\def\:gobbleM#1->{}
|
\immediate\write-1{TeX4ht package options:
\expandafter\:gobbleM\meaning\Preamble}
\Configure{@HEAD}
{\HCode{\Hnewline}}
\:CheckOption{timestamp}\if:Option
\Configure{@HEAD}
{\HCode{\Hnewline}}
\else
\Log:Note{To print a timestamp, use the command line option timestamp}
\fi
>>>
\<<<
\:CheckOption{mathplayer} \if:Option
\Configure{@HEAD}{\HCode{\Hnewline}}
\else
\Configure{@HEAD}{\HCode{\Hnewline}}
\fi
\Configure{ext}{xht}
>>>
\<<<
\Log:Note{for file extension name xht, use the command line option `xht'}%
\Configure{@HEAD}{\HCode{\Hnewline}}
>>>
\verb'\Hnewline' is needed at end of file to avoid loosing the
last line under some applications.
Tex4ht pages published through FrontPage loose the generator metas,
but not the originator-metas.
%
% 'generator' attribute changed from Eitan's Url to TUG/tex4ht.
% CVR 2010/10/02
% \item
\<<<
\Configure{@HEAD}{\HCode{\Hnewline}}
\Configure{@HEAD}{\HCode{\Hnewline
\Hnewline}}
>>>
%%%%%%%%%%%%%%%%
\section{Frames}
%%%%%%%%%%%%%%%%
\<<<
tex4ht-toc>>>
\<<<
tex4ht-body>>>
\<4 latex\><<<
\:CheckOption{frames} \if:Option
\:CheckOption{frames-fn} \if:Option
\Configure{frames}
{\HorFrames[rows="*"]{*,3*}
\VerFrames[cols="*"]{3*,*}
\Frame[ name="|"
frameborder="0" ]{|}
\Frame[ name="|"
frameborder="0" ]{}
\EndFrames
\Frame[ name="|"
frameborder="0" ]{|}}
{\let\contentsname=\empty \tableofcontents}
\else
\Configure{frames}
{\HorFrames[rows="*"]{*,3*}
\Frame[ name="|"
frameborder="0" ]{|}
\Frame[ name="|"
frameborder="0" ]{|}}
{\let\contentsname=\empty \tableofcontents}
\fi
\fi
>>>
% frameborder="no"
% border="0"
% framespacing="0"
\<<<
\:CheckOption{frames-fn} \if:Option
\edef\Preamble{\Preamble,frames}
\fi
>>>
\<<<
\Configure{frames}
{\VerFrames[ cols="*"]{4*,*}
\Frame[ name="|"
frameborder="1" ]{|}
\Frame[ name="|"
frameborder="1" ]{|}}
{\beamer:bookmarks \tableofcontents}
>>>
\<<<
\Configure{frames}
{\HorFrames[ rows="*"]{*,3*}
\Frame[ name="|"
frameborder="1" ]{|}
\Frame[ name="|"
frameborder="1" ]{|}}
{\beamer:bookmarks \tableofcontents}
>>>
%%%%%%%%%%%%%%%%%%
\section{Object Tocs}
%%%%%%%%%%%%%%%%%%
\