<<<
\ConfigureList{thebibliography}%
{\:xhtml{\IgnorePar\EndP}\HCode{}\let\en:bib=\empty}
{\en:bib\HCode{
}}
{\en:bib\def\en:bib{\HCode{}}\HCode{}} {~~~}
\Css{p.bibitem { text-indent: -2em; margin-left: 2em; }}
|
>>>
\<0,32,4 article,report,book\><<<
|
>>>
\<<<
\Configure{maketitle}
{|%
\HCode{}}
{\HCode{
}}
{\NoFonts\IgnorePar\HCode{}\IgnorePar}
{\HCode{ }\IgnoreIndent\EndNoFonts}
\Configure{thanks author date and}{}{}
{\HCode{}}{\HCode{
}}
{\HCode{}}{\HCode{
}}
{\SPAN:{and}\:nbsp\:nbsp\:nbsp\EndSPAN:}
{\HCode{ }}
\Css{h2.titleHead{text-align:center;}}
\Css{div.maketitle{ margin-bottom: 2em; }}
>>>
\<<<
\Configure{maketitle}
{\HCode{}}
{\HCode{
}}
{\NoFonts\IgnorePar\HCode{}\IgnorePar}
{\HCode{ }\IgnoreIndent\EndNoFonts}
\Css{div.maketitle{text-align:center;}}
>>>
\section{amsart.cls}
\section{aa}
\subsection{Sizes of Fonts}
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
\verb'{\Configure{Needs}{Font\string_Size: #1}\Needs{1...}}'
when options 11pt and 12pt are listed in \verb'\documentclass'.
\<<<
|
>>>>
\ <<<
{\Configure{Needs}{Font\string_Size: #1}\ifcase \@ptsize
\or \Needs{11}\or \Needs{12}\else \fi}
>>>
\<<<
\Configure{subtitle institute}
{\HCode{}}{\HCode{ }}
{\HCode{}}{\HCode{
}}
{\Tg}{\Tg }
{\HCode{ }}
\Configure{maketitle}
{\HCode{}}
{\HCode{
}}
{\NoFonts\IgnorePar\HCode{}\IgnorePar}
{\HCode{ }\IgnoreIndent\EndNoFonts}
\Configure{thanks author date and}{}{}
{\HCode{}}{\HCode{
}}
{\HCode{}}{\HCode{
}}
{\SPAN:{and}and\EndSPAN:}
{\HCode{ }}
>>>
\<<<
\ConfigureEnv{abstract}
{\:xhtml{\IgnorePar\EndP}\HCode {}}
{\HCode{
}}{}{}
\Css{div.abstract{text-align:center;}}
\Configure{makeheadbox}
{\HCode{}}
{\HCode{ }}
{\HCode{ }}
{\HCode{
}}
{\HCode{
}}
\Css{.AALogo{font-size:120\%;font-weight: bold; text-align:right;}}
>>>
\section{plain}
\<0,32,4 plain\><<<
\Configure{settabs}[1.5]{}{}{}{}{}
\Configure{line}{\HCode{ }}
>>>
\<<<
|
>>>
\<<<
\Configure{underline}
{\HCode{}} {\HCode{ }}
\Configure{overline}
{\HCode{}} {\HCode{ }}
\Css{.underline{ text-decoration:underline; }}
\Css{.overline{ text-decoration:overline; }}
>>>
\section{babel.sty}
\<<<
|<0,32,4 babel|>
>>>
\<0,32,4 babel.def\><<<
\Configure{quotedblbase}{\HCode{&\#132;}}
\Configure{quotesinglbase}{\HCode{&\#130;}}
>>>
\<<<
|<0,32,4 tcilatex|>
>>>
\<0,32,4 tcilatex\><<<
\Configure{GRAPHICSPS}
{\Picture+[PICT]{}} {\EndPicture}
\Configure{GRAPHICSHP}
{\Picture+[PICT]{}} {\EndPicture}
>>>
\<0,32,4 babel\><<<
|<0,32,4 babel.def|>
\ifx \@begindocumenthook\:UnDef\else
\:CheckOption{new-accents} \if:Option \else
\def\:temp{russian}\ifx \languagename\:temp
|
\fi
\fi\fi
>>>
We had also \verb'\append:def\@begindocumenthook{\HLet\"|=\ddot}' in
babel. It gets russian and brazil into infinite loop. Why it was
inserted.
\<<<
\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}å{e}{}{34}}
{\a:accents{uml}{#1}}
{\def\:temp{>}\def\:tempa{#2}\ifx \:temp\:tempa\HCode{»}%
\else \def\:temp{<}\ifx \:temp\:tempa\HCode{«}%
\else \b:accents{uml}{#1}{#2}\fi\fi}
>>>
\section{fontmath}
\subsection{1: Large Operators}
\begin{verbatim}
\mathchardef\coprod="1360
\mathchardef\bigvee="1357
\mathchardef\bigwedge="1356
\mathchardef\biguplus="1355
\mathchardef\bigcap="1354
\mathchardef\bigcup="1353
\mathchardef\intop="1352 \def\int{\intop\nolimits}
\mathchardef\prod="1351
\mathchardef\sum="1350
\mathchardef\bigotimes="134E
\mathchardef\bigoplus="134C
\mathchardef\bigodot="134A
\mathchardef\ointop="1348 \def\oint{\ointop\nolimits}
\mathchardef\bigsqcup="1346
\mathchardef\smallint="1273
\end{verbatim}
\<<<
\Configure{MathClass}{1}{}{}{}{
\mathchar"1360
\mathchar"1357
\mathchar"1356
\mathchar"1355
\mathchar"1354
\mathchar"1353
\mathchar"1352
\mathchar"1351
\mathchar"1350
\mathchar"134E
\mathchar"134C
\mathchar"134A
\mathchar"1348
\mathchar"1346
\mathchar"1273
}
>>>
\subsection{2: Binary Operations}
\begin{verbatim}
\mathchardef\triangleleft="212F
\mathchardef\triangleright="212E
\mathchardef\bigtriangleup="2234
\mathchardef\bigtriangledown="2235
\mathchardef\wedge="225E \let\land=\wedge
\mathchardef\vee="225F \let\lor=\vee
\mathchardef\cap="225C
\mathchardef\cup="225B
\mathchardef\ddagger="227A
\mathchardef\dagger="2279
\mathchardef\sqcap="2275
\mathchardef\sqcup="2274
\mathchardef\uplus="225D
\mathchardef\amalg="2271
\mathchardef\diamond="2205
\mathchardef\bullet="220F
\mathchardef\wr="226F
\mathchardef\div="2204
\mathchardef\odot="220C
\mathchardef\oslash="220B
\mathchardef\otimes="220A
\mathchardef\ominus="2209
\mathchardef\oplus="2208
\mathchardef\mp="2207
\mathchardef\pm="2206
\mathchardef\circ="220E
\mathchardef\bigcirc="220D
\mathchardef\setminus="226E % for set difference A\setminus B
\mathchardef\cdot="2201
\mathchardef\ast="2203
\mathchardef\times="2202
\mathchardef\star="213F
\mathcode`\*="2203 % \ast
\mathcode`\+="202B
\mathcode`\-="2200
\end{verbatim}
\<<<
\Configure{MathClass}{2}{}{}{}{
*-+/
\mathchar"212F
\mathchar"212E
\mathchar"2234
\mathchar"2235
\mathchar"225E
\mathchar"225F
\mathchar"225C
\mathchar"225B
\mathchar"227A
\mathchar"2279
\mathchar"2275
\mathchar"2274
\mathchar"225D
\mathchar"2271
\mathchar"2205
\mathchar"220F
\mathchar"226F
\mathchar"2204
\mathchar"220C
\mathchar"220B
\mathchar"220A
\mathchar"2209
\mathchar"2208
\mathchar"2207
\mathchar"2206
\mathchar"220E
\mathchar"220D
\mathchar"226E
\mathchar"2201
\mathchar"2203
\mathchar"2202
\mathchar"213F
}
>>>
\subsection{3: Relational Operations}
The catcode is needed because 303A is \verb':'.
\<<<
\Configure{MathClass}{3}{}{}{}{
\mathchar"3128
\mathchar"3129
\mathchar"312A
\mathchar"312B
\mathchar"315E
\mathchar"315F
\mathchar"3210
\mathchar"3211
\mathchar"3212
\mathchar"3213
\mathchar"3214
\mathchar"3215
\mathchar"3216
\mathchar"3217
\mathchar"3218
\mathchar"3219
\mathchar"321A
\mathchar"321B
\mathchar"321C
\mathchar"321D
\mathchar"321E
\mathchar"321F
\mathchar"3220
\mathchar"3221
\mathchar"3224
\mathchar"3227
\mathchar"3232
\mathchar"3233
\mathchar"3236
\mathchar"3237
\mathchar"323F
:=><
\mathchar"322F
\mathchar"3276
\mathchar"3277
\mathchar"326B
\mathchar"326A
\mathchar"3261
\mathchar"3260
\mathchar"3225
\mathchar"3226
\mathchar"322D
\mathchar"322E
\mathchar"322C
\mathchar"3228
\mathchar"3229
}
>>>
\begin{verbatim}
\mathcode`\>="313E
\mathcode`\<="313C
\mathcode`\=="303D
\mathcode`\:="303A
\mathchardef\leq="3214 \let\le=\leq
\mathchardef\geq="3215 \let\ge=\geq
\mathchardef\succ="321F
\mathchardef\prec="321E
\mathchardef\approx="3219
\mathchardef\succeq="3217
\mathchardef\preceq="3216
\mathchardef\supset="321B
\mathchardef\set="321A
\mathchardef\supseteq="3213
\mathchardef\seteq="3212
\mathchardef\in="3232
\mathchardef\ni="3233 \let\owns=\ni
\mathchardef\gg="321D
\mathchardef\ll="321C
\mathchardef\not="3236
\mathchardef\leftrightarrow="3224
\mathchardef\leftarrow="3220 \let\gets=\leftarrow
\mathchardef\rightarrow="3221 \let\to=\rightarrow
\mathchardef\mapstochar="3237 \def\mapsto{\mapstochar\rightarrow}
\mathchardef\sim="3218
\mathchardef\simeq="3227
\mathchardef\perp="323F
\mathchardef\equiv="3211
\mathchardef\asymp="3210
\mathchardef\smile="315E
\mathchardef\frown="315F
\mathchardef\leftharpoonup="3128
\mathchardef\leftharpoondown="3129
\mathchardef\rightharpoonup="312A
\mathchardef\rightharpoondown="312B
\mathchardef\propto="322F
\mathchardef\sqsubseteq="3276
\mathchardef\sqsupseteq="3277
\mathchardef\parallel="326B
\mathchardef\mid="326A
\mathchardef\dashv="3261
\mathchardef\vdash="3260
\mathchardef\nearrow="3225
\mathchardef\searrow="3226
\mathchardef\nwarrow="322D
\mathchardef\swarrow="322E
\mathchardef\Leftrightarrow="322C
\mathchardef\Leftarrow="3228
\mathchardef\Rightarrow="3229
\end{verbatim}
\subsection{4/5: Delimiters}
\begin{verbatim}
\mathcode`\(="4028
\mathcode`\)="5029
\mathcode`\[="405B
\mathcode`\]="505D
\mathcode`\{="4266
\mathcode`\}="5267
\delcode`\(="028300
\delcode`\)="029301
\delcode`\[="05B302
\delcode`\]="05D303
\def\lmoustache{\delimiter"437A340 } % top from (, bottom from )
\def\rmoustache{\delimiter"537B341 } % top from ), bottom from (
\def\lgroup{\delimiter"462833A } % extensible ( with sharper tips
\def\rgroup{\delimiter"562933B } % extensible ) with sharper tips
\def\backslash{\delimiter"26E30F } % for double coset G\backslash H
\def\rangle{\delimiter"526930B }
\def\langle{\delimiter"426830A }
\def\rbrace{\delimiter"5267309 } \let\}=\rbrace
\def\lbrace{\delimiter"4266308 } \let\{=\lbrace
\def\rceil{\delimiter"5265307 }
\def\lceil{\delimiter"4264306 }
\def\rfloor{\delimiter"5263305 }
\def\lfloor{\delimiter"4262304 }
\def\arrowvert{\delimiter"26A33C } % arrow without arrowheads
\def\Arrowvert{\delimiter"26B33D } % double arrow without arrowheads
\def\bracevert{\delimiter"77C33E } % the vertical bar that extends braces
\def\Vert{\delimiter"26B30D } \let\|=\Vert How should these be treated?
\def\vert{\delimiter"26A30C } " " " " "
\def\uparrow{\delimiter"3222378 }
\def\downarrow{\delimiter"3223379 }
\def\updownarrow{\delimiter"326C33F }
\def\Uparrow{\delimiter"322A37E }
\def\Downarrow{\delimiter"322B37F }
\def\Updownarrow{\delimiter"326D377 }
\end{verbatim}
The comamnds \verb'\Configure{MathClass}{4}...'
and \verb'\Configure{MathClass}{5}...'
are for unmatched delimiters, and the comamnd
\verb'\Configure{MathDelimiters}{(}{)}' is for matched ones.
\<<<
\Configure{MathClass}{4}{}{}{}{}
\Configure{MathDelimiters}{(}{)}
\Configure{MathDelimiters}{[}{]}
\Configure{MathDelimiters}{\mathchar"4262}{\mathchar"5263}
\Configure{MathDelimiters}{\mathchar"4264}{\mathchar"5265}
\Configure{MathDelimiters}{\mathchar"4266}{\mathchar"5267}
\Configure{MathDelimiters}{\mathchar"4268}{\mathchar"5269}
\Configure{MathDelimiters}{\mathchar"4300}{\mathchar"5301}
\Configure{MathDelimiters}{\mathchar"4302}{\mathchar"5303}
\Configure{MathDelimiters}{\mathchar"4304}{\mathchar"5305}
\Configure{MathDelimiters}{\mathchar"4306}{\mathchar"5307}
\Configure{MathDelimiters}{\mathchar"4308}{\mathchar"5309}
\Configure{MathDelimiters}{\mathchar"430A}{\mathchar"530B}
>>>
\begin{verbatim}
\mathcode`\?="503F
\end{verbatim}
\subsection{6: Punctuation Marks}
\begin{verbatim}
\mathchardef\ldotp="613A % ldot as a punctuation mark
\mathchardef\cdotp="6201 % cdot as a punctuation mark
\mathchardef\colon="603A % colon as a punctuation mark
\mathcode`\;="603B
\mathcode`\,="613B
\end{verbatim}
\<<<
\Configure{MathClass}{6}{}{}{}{
\mathchar"613A
\mathchar"6201
\mathchar"603A
?; ,
}
>>>
\subsection{Questions}
\begin{verbatim}
\delcode`\<="26830A
\delcode`\>="26930B
\delcode`\|="26A30C
\delcode`\\="26E30F
% N.B. { and } should NOT get delcodes; otherwise parameter grouping fails!
\def\mathhexbox#1#2#3{\leavevmode
\hbox{$\m@th \mathchar"#1#2#3$}}
\def\dag{\mathhexbox279}
\def\ddag{\mathhexbox27A}
\def\S{\mathhexbox278}
\def\P{\mathhexbox27B}
\end{verbatim}
\section{amsppt.sty}
\<<<
\HChar{167}>>>
\<32 amsppt, 32,4 vanilla\><<<
\Configure{title}
{\IgnorePar\EndP\HCode{}\begingroup\bf}
{\endgroup\IgnorePar\HCode{
}}
\Css{div.title {margin-top: 0.5em;}}
\Configure{author}
{\IgnorePar\EndP\HCode{}\IgnorePar\par}
{\IgnorePar\EndP\HCode{ }}
>>>
\<32 amsppt\><<<
\Configure{affil}{\IgnorePar\HCode{}\IgnorePar}
{\IgnorePar\HCode{ }}
\Configure{abstract} {\HCode{}} {\HCode{ }}
{\IgnorePar\HCode{}\IgnorePar\par}
{\IgnorePar\HCode{
}\IgnorePar\par}
\Configure{date}{\IgnorePar\HCode{}\IgnorePar}
{\IgnorePar\HCode{ }}
|<32 amsppt, 32,4 vanilla|>
>>>
\<<<
\Configure{vol}{\HCode{}}{\HCode{ }}
\Configure{book}{\HCode{}}{\HCode{ }}
\Configure{paper}{\HCode{}}{\HCode{ }}
\Configure{Refs}{\IgnorePar\EndP\HCode{}}
\Configure{ref}{\HCode{}}
{\EndP\HCode{ }}{}
\Configure{keyformat}{}{\EndP\HCode{}}
>>>
\section{amstex.tex}
\<<<
|
>>>
\<<<
\def\m:env#1{\:xhtml{\IgnorePar\EndP}\HCode{}}
\def\endm:env{\HCode
{
}\IgnorePar}
>>>
\<<<
\def\m:env#1{\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
\HCode{}}
\def\endm:env{\:xhtml{\IgnorePar\EndP}%
\HCode{
}\IgnorePar
\ifmmode\else\par\fi}
>>>
\section{tex4ht}
\<<<
{\Configure{maketitle}{}{}{}{}%
\a:NoSection |\more:no \let\thanks|=\:gobble
\let\\|=\empty \def\TeX{TeX}%
\def\gobble:font##1##2{##2}\:TITLE: \no:fonts
\Tag{TITLE+}{\@title}}
>>>
Old latex files need \verb'\no:fonts', but not new ones.---wrong, as far as writing to toc in 0.0?
\<<<
\let\leavevmode|=\empty \let\not@math@alphabet|=\:gobbleII
\def\text@command##1{##1}\let\selectfont|=\empty
\def\check@icl ##1\check@icr{}%
>>>
\<0,32,4 tex4ht\><<<
\Configure{HVerbatim+}{\z@}{\:nbsp}
\:CheckOption{jpg} \if:Option \Configure{Picture}{.jpg} \fi
\:CheckOption{gif} \if:Option \Configure{Picture}{.gif} \fi
\Configure{Link}{!--}{class=}{id=}{X}
>>>
\<<<
\Configure{DOCTYPE}{\HCode{\Hnewline
\Hnewline}}
>>>
\verb'\Hnewline' is needed at end of file to avoid loosing the
last line under some applications.
\section{th4}
\<0 th4\><<<
\Configure{Chapter}
{}{} {Chapter \theChapterCounter} {}
\Configure{Appendix}
{}{} {Appendix \theChapterCounter} {}
\Configure{LikeChapter}
{}{} {} {}
>>>
\section{epsfig}
\<0,32,4 epsfig\><<<
\Configure{epsfig} {\Picture+[epsfig]{}}{\EndPicture}
>>>
\section{psfig}
\<0,32,4 psfig\><<<
\Configure{psfig} {\Picture+[psfig]{}}{\EndPicture}
>>>
\section{graphics}
\<0,32,4 graphics\><<<
\Configure{graphics}{\Picture+[PIC]{}}{\EndPicture}
\Configure{graphics*}
{gif}
{\Picture[pict]{\csname Gin@base\endcsname.gif}}
\Configure{graphics*}
{png}
{\Picture[pict]{\csname Gin@base\endcsname.png}}
\Configure{graphics*}
{jpeg}
{\Picture[pict]{\csname Gin@base\endcsname.jpeg}}
\Configure{graphics*}
{jpg}
{\Picture[pict]{\csname Gin@base\endcsname.jpg}}
>>>
\section{index}
\<<<
\Configure{NoSection}
{\let\sv:index|=\p@index \let\sv:label|=\label \let\sv:ref|=\ref
\let\sv:newline|=\newline \def\newline{ }%
\def\p@index[##1]{\@gobble}\let\label|=\@gobble \let\ref|=\@gobble
}
{\let\p@index|=\sv:index \let\label|=\sv:label \let\ref|=\sv:ref
\let\newline|=\sv:newline
}
>>>
\section{hyperref}
\<<<
\Configure{Form}
{\IgnorePar\EndP\leavevmode \Tg}
>>>
\<<<
\NewConfigure{::value}{1}
\Configure{::value}
{\edef\Attributes{\Attributes\space value="\AttributeVal"}}
\NewConfigure{::name}{1}
\Configure{::name}
{\edef\Attributes{\Attributes\space name="\AttributeVal"}}
\NewConfigure{::default}{1}
\Configure{::default}
{\let\::default=\AttributeVal}
\def\get:int#1.#2//{\tmp:cnt=#1 }
>>>
\<\><<<
\NewConfigure{::borderwidth}{1}
\Configure{::borderwidth}
{\Css{div\#form-\form:id {border-width: \AttributeVal;
border-style:solid;}}}
\NewConfigure{::bordercolor}{1}
\Configure{::bordercolor}
{\expandafter\get:colors\AttributeVal//%
\Css{div\#form-\form:id {border-color:\AttributeVal}}}
\def\get:colors#1 #2 #3//{%
\get:color{#1}\edef\AttributeVal{\the\tmp:cnt\%}%
\get:color{#2}\edef\AttributeVal{\AttributeVal,
\the\tmp:cnt\%}%
\get:color{#3}\edef\AttributeVal{rgb(\AttributeVal,
\the\tmp:cnt\%)}%
}
\def\get:color#1{%
\tmp:dim=#1pt \multiply\tmp:dim by 100
\expandafter\get:int\the\tmp:dim//}
>>>
\<<<
\def\:tempc#1{%
\NewConfigure{::#1}{1}%
\Configure{::#1}%
{\edef\Attributes{\Attributes\space #1="\AttributeVal"}}}
\:tempc{onclick}
\:tempc{onblur}
\:tempc{onchange}
\:tempc{onclick}
\:tempc{ondblclick}
\:tempc{onfocus}
\:tempc{onkeydown}
\:tempc{onkeypress}
\:tempc{onkeyup}
\:tempc{onmousedown}
\:tempc{onmousemove}
\:tempc{onmouseout}
\:tempc{onmouseover}
\:tempc{onmouseup}
\:tempc{onselect}
>>>
\<<<
\NewConfigure{TextField::}{2}
\Configure{TextField::}{}{ \Tg }
\NewConfigure{TextField::width}{1}
\Configure{TextField::width}
{\tmp:dim=\AttributeVal \divide\tmp:dim by 6
\expandafter\get:int\the\tmp:dim//%
\edef\Attributes{\Attributes\space size="\the\tmp:cnt"}}
\NewConfigure{TextField::default}{1}
\Configure{TextField::default}
{\edef\Attributes{\Attributes\space value="\AttributeVal"}}
>>>
\<<<
\NewConfigure{TextField::multiline}{2}
\Configure{TextField::multiline}
{}
{ \Tg}
\let\multiline:value=\empty
\def\set:ln#1,#2|{#1%
\def\:temp{#2}\ifx \:temp\empty \else
\hfil\break \def\:temp{\set:ln#2|}%
\fi \:temp}
\NewConfigure{multiline::value}{1}
\Configure{multiline::value}
{\let\multiline:value=\AttributeVal}
\NewConfigure{multiline::width}{1}
\Configure{multiline::width}
{\tmp:dim=\AttributeVal \divide\tmp:dim by 6
\expandafter\get:int\the\tmp:dim//%
\edef\Attributes{\Attributes\space cols="\the\tmp:cnt"}}
>>>
\<<<
\NewConfigure{TextField::password}{2}
\Configure{TextField::password}
{}{\Tg }
>>>
\<<<
\def\Default:Checked#1{%
\let\:temp=\relax
\let\:tempa=\relax
\edef\:temp{\def\:temp####1#1#1####2//{\def\:temp{####2}}%
\:temp \AttributeVal #1=#1#1//%
\def\:tempa####1=####2//{\def\noexpand\AttributeVal{####1}}%
\:tempa\AttributeVal=//}%
\:temp}
>>>
\<<<
\NewConfigure{ChoiceMenu::radio}{5}
\Configure{ChoiceMenu::radio}
{\IgnorePar\EndP\leavevmode
\Tg\gHAdvance\form:id by 1 }
{ }{\IgnorePar\EndP\Tg
}
{\Default:Checked\radio::default
\Tg }
{}
\NewConfigure{radio::default}{1}
\Configure{radio::default}
{\let\radio::default=\AttributeVal}
>>>
\<<<
\NewConfigure{ChoiceMenu::combo}{5}
\Configure{ChoiceMenu::combo}
{}
{~\Tg}
{\Tg }
{\Tg}
{\Tg }
\NewConfigure{combo::default}{1}
\Configure{combo::default}
{\let\radio::default=\AttributeVal}
>>>
\<<<
\NewConfigure{ChoiceMenu::popdown}{5}
\Configure{ChoiceMenu::popdown}
{}{\HCode{\Hnewline }}
{\Tg }
{\Tg} {\Tg }
>>>
The \verb'size="1"' makes the select a popout memnu
\<<<
\NewConfigure{ChoiceMenu::}{5}
\Configure{ChoiceMenu::}
{}{\HCode{\Hnewline }}{\Tg }
{\Tg} {\Tg }
\NewConfigure{::menulength}{1}
\Configure{::menulength}
{\edef\Attributes{\Attributes\space size="\AttributeVal"}}
>>>
\section{exerquiz}
\<-NOPE\><<<
\Configure{quiz*}
{qthis=this;
ProcessQuestion(\ANS,"\alph{quizno}",\thequestionno,
0,"\eq@bqlabel",\Quiz:N)}
>>>
\<<<
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% exerqz.4ht |version %
% Copyright (C) |CopyYear.1999. %
% Donald P. Story & Eitan M. Gurari %
|
|
|
>>>
\<<<
\JavaScript-$
var QuizInitialized;
var EndQuizPushed;
var CurrentQuizNo;
var Responses;
var ResponsesAddr;
var Cor;
var CorAddr;
var qthis;
var prev_notify;
function InitializeQuiz(qtfield,mark,quizN,ansN,lbrc,rbrc) {
Score=0;
QuizInitialized=1;
CurrentQuizNo=quizN;
eval( 'document.form'+qtfield+'.'+qtfield+'.value="$eqScore";' )
RightWrong=new Array();
|
Responses=new Array();
ResponsesAddr=new Array();
|
Cor=new Array();
CorAddr=new Array();
EndQuizPushed=0;
for(var i=1; i<=ansN; i++){
RightWrong[i]=0;
}
}
\EndJavaScript
>>>
\<<<
if( ResponsesAddr[probno] != null ){
if (notify == 0 ) {
ResponsesAddr[probno].value=Responses[probno];
} else {
ResponsesAddr[probno].value="("+Responses[probno]+")";
} }
qthis.value = "#"; ResponsesAddr[probno]=qthis;
>>>
\<<<
for(var i in Responses){
if (prev_notify == 0 ) {
ResponsesAddr[i].value=Responses[i];
} else {
ResponsesAddr[i].value="("+Responses[i]+")";
} }
>>>
% if( Responses != null ){
\<<<
var k=Cor.length;
eval('Cor[k]=thisform'+quizN+'.ans'+quizN+'x'+i+'.value');
eval('CorAddr[k]=thisform'+quizN+'.ans'+quizN+'x'+i);
>>>
\<<<
for(var i in Cor){
CorAddr[i].value=Cor[i];
}
>>>
% if( Cor != null ){
\<<<
\JavaScript
function href(addr) { top.location.href=addr; }
\EndJavaScript
>>>
% function href(addr) { window.navigate(addr); }
\<<<
\JavaScript
function Corrections(lbl1,lbl2,quizN) {
if ( (EndQuizPushed == 1) && ( CurrentQuizNo == quizN ) ){
for(var i in RightWrong){
if( (RightWrong[i]==0) ){
|
eval('thisform'+quizN+'.ans'+quizN+'x'+i+'.value= "*"');
} }
} }
\EndJavaScript
>>>
\<<<
\JavaScript
function LinkTo(addr) {
}
\EndJavaScript
>>>
\<<<
\def\eqXInitQuizMsg{\hbox{%
\let\noexpand|=\string
\csname eq@InitQuizMsg\endcsname}}
\expandafter\ifx \csname eq@InitQuizMsg\endcsname\relax
\expandafter\def\csname eq@InitQuizMsg\endcsname{
"You must initialize the Quiz! Click on "+bqlabel}
\fi
\def\eqXQuizTotalMsg{\hbox{%
\let\noexpand|=\string
\def\thequestionno{"+thequestionno+"}%
\csname eq@QuizTotalMsg\endcsname}}
\expandafter\ifx \csname eq@QuizTotalMsg\endcsname\relax
\expandafter\def\csname eq@QuizTotalMsg\endcsname{"Score: '
+Score +' out of '+thequestionno+'"}
\fi
\def\eqXMadeChoice{\hbox{%
\let\noexpand|=\string
\csname eq@MadeChoice\endcsname}}
\expandafter\ifx \csname eq@MadeChoice\endcsname\relax
\expandafter\def\csname eq@MadeChoice\endcsname{
"You have already made a choice. Your choice was ("
+Responses[probno]+")."
+" Do you want to change it?"}
\fi
\expandafter\ifx \csname eqScore\endcsname\relax
\def\eqScore{Score:}
\fi
>>>
The \verb'Wollen Sie dies \noexpand\344ndern?' is a problem because it
takes the \verb'\344' into \verb'44'. A \verb'\string' will properly
produce \verb'\344'; hence, the above dirty trick.
\begin{verbatim}
Doesn't IE escape in the way that Acrobat JavaScript does?
Another possibility is to use String.fromCharCode()
Convert Octal \344 to decimal 228, then use
String.fromCharCode(228)
How to deliver browser specific content using JavaScript
\end{verbatim}
\<<<
\JavaScript-$
function QuizEnd(bqlabel,thequestionno,quiztotal,quizN){
if ((QuizInitialized !=1) |||| ( CurrentQuizNo!= quizN )){
alert($eqXInitQuizMsg,3);
} else {
eval( 'document.form'+quiztotal+'.'+quiztotal+
'.value=$eqXQuizTotalMsg');
QuizInitialized=-1;
EndQuizPushed=1;
} }
\EndJavaScript
\JavaScript-$
function ProcessQuestion
(key,letterresp,probno,notify,bqlabel,quizN) {
if ((QuizInitialized !=1) |||| ( CurrentQuizNo!= quizN )){
alert($eqXInitQuizMsg,3);
} else {
|
prev_notify = notify;
} }
\EndJavaScript
>>>
\<<<
if (Responses[probno] == null) {
if (key==1) {
Score++;
RightWrong[probno]=1;
}
else
RightWrong[probno]=0;
|
Responses[probno]=letterresp;
}
else {
if (notify==0)
User=true;
else
User=confirm($eqXMadeChoice);
if (User) {
if (RightWrong[probno]==1) {
if (key==0) {
Score -= 1;
RightWrong[probno]=0;
|
Responses[probno]=letterresp;
}
}
else {
if (key==1) {
Score++;
RightWrong[probno]=1;
|
Responses[probno]=letterresp;
}
else {
RightWrong[probno]=0;
|
Responses[probno]=letterresp;
}
}
}
}
>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{html0}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\<<<
% html0.4ht (|version), generated from |jobname.tex
% Copyright (C) 2009-2016 TeX Users Group
% Copyright (C) |CopyYear.1996. Eitan M. Gurari
|
>>>
\section{latex}
\<<<
|<0,32,4 latex|>
|<0 latex|>
|<0,32,4 plain,latex|>
|
|<0 plain,latex|>
|<0 th4,latex|>
>>>
%%%%%%%%%%%%%%%%%%%%%%%
% ltplain.dtx
%%%%%%%%%%%%%%%%%%%%%%%
\subsection{obeylines}
\<0 plain,latex\><<<
\Configure{obeylines}{}{}{}
>>>
%%%%%%%%%%%%%%%%%%%%%%%
% ltmiscen.dtx
%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Miscellaneous Environments}
\<<<
\Configure{verbatim}{}{ }
\Configure{verb}{}{}
>>>
\<<<
\let\env:verb|=\:gobble
>>>
\<<<
\ConfigureEnv{verbatim}{}{\null}{}{}
\ConfigureEnv{verbatim*}{}{\null}{}{}
>>>
\<<<
\ConfigureEnv{center}{}{}{}{}
>>>
\<<<
\Configure{centercr}{}{}
>>>
%%%%%%%%%%%%%%%%%%%%%%%
% ltmath.dtx
%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Math Setup}
\<<<
\:CheckOption{pic-eqnarray}
\if:Option
\ConfigureEnv{eqnarray} {\Picture*{}} {\EndPicture}{}{}
\ConfigureEnv{eqnarray*} {\Picture*{}} {\EndPicture}{}{}
\else
\Configure{eqnarray}{}{}{}{}{}{}
\fi
>>>
%%%%%%%%%%%%%%%%%%%%%%%
% lttab.dtx
%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Tabbing, Tabular and Array Environments}
\<<<
\Configure{array} {}{}{}{}{}{}
\Configure{tabular} {}{}{}{}{}{}
>>>
\<<<
\:CheckOption{no-array}\if:Option \else
\:ifpackageloaded{array}{\:Optiontrue}{}
\fi
\if:Option \else
|
\fi
>>>
\<<<
\def\:array:{<>}
\def\:tabular:{<>}
\Configure{array}{}{}{}{}{}{}
\Configure{tabular}{}{}{}{}{}{}
\ConfigureEnv{array}{}{}{}{}
\ConfigureEnv{tabular}{}{}{}{}
>>>
\<<<
\:ifpackageloaded{array}{\:Optiontrue}{\:Optionfalse}
\if:Option
|
\else
\Configure{VBorder}{}{}{}{}
\fi
>>>
\<<<
\Configure{VBorder}{}{}{}{}
>>>
\<<<
\:CheckOption{pic-tabbing} \if:Option
\ConfigureEnv{tabbing}{\Picture*{}}{\EndPicture}{}{}
\else
|
\:CheckOption{pic-tabbing'} \if:Option
|
|
\fi
\fi
>>>
\<<<
\Configure{tabbing}[1.5]{}
{}
{}
{}
>>>
\<<<
\expandafter\def\csname
c:pic-tabbing:\endcsname#1{\def\p:tabbing{#1}}
>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% to be placed %%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{to be placed}
\<0 th4,latex\><<<
\Configure{()}{$}{$}
\Configure{[]}{\:xhtml{\IgnorePar\EndP}$$}{$$}
>>>
\<<<
\ConfigureList{trivlist}{}{}{}{}
\ConfigureList{list}{}{}{}{}
\ConfigureList{itemize}{}{}{}{}{}{}
\ConfigureList{enumerate}{}{}{}{}{}{}
>>>
\<<<
\Configure{tableofcontents}{}{}{}{}{}
>>>
\<<<
\Configure{TocAt}{}{}
\Configure{TocAt*}{}{}
>>>
\<<<
\ConfigureEnv{minipage}{}{}{}{}
>>>
\<<<
\Configure{float}{}{}{}
>>>
\<<<
\Configure{newline}{}
>>>
\<0 plain,latex\><<<
\Configure{ }{ }
>>>
\<0 plain,latex\><<<
\def\:zbsp#1{cellpadding="0" border="0" cellspacing="0"\Hnewline
class="#1"}
>>>
\<0 plain,latex\><<<
\:CheckOption{new-accents} \if:Option \else
\Configure{accents}{(#1 #2)}{(#1 #3)}
\immediate\write-1{\string\Configure{accents}{found-case}{missing-case}}
\fi
\Configure{centerline}{}{}
\Configure{leftline}{}{}
\Configure{rightline}{}{}
>>>
\<0 plain,latexNO\><<<
\Configure{choose}{}{}
>>>
\section{tex4ht}
\<<<
\Configure{TITLE+}{\HCode{\jobname.\:html}}
>>>
\<0,32,4 latex\><<<
\ifTag{TITLE+}
{\Configure{TITLE+}{\HCode{\LikeRef{TITLE+}}}}{}
>>>
\<<<
|<0,32,4 tex4ht|>
\Configure{HtmlPar}{}{}{}{}
\ifx \a:HTML\:UnDef \Configure{HTML}{}{} \fi
\ifx \a:HEAD\:UnDef \Configure{HEAD}{}{} \fi
\ifx \a:BODY\:UnDef \Configure{BODY}{}{} \fi
\ifx \a:TITLE\:UnDef \Configure{TITLE}{}{} \fi
\Configure{TITLE+}{}
|
>>>
\<<<
\Configure{crosslinks+}{\IgnorePar}{\par\ShowPar}{\IgnorePar}{}
\Configure{IMG}{}{ }{}{}{}
\Configure{Picture*}{}{}
\Configure{SUB}{}{}
\Configure{SUP}{}{}
\Configure{MkHalign}{}{}{}{}{}{}
\Configure{halignTD} {}{} {}{}{}{}{}{}{}{}
\Configure{halign}{}{}{}{}{}{}{}
\Configure{pic-halign}{}
>>>
\<0,32,4 tex4ht\><<<
|<0,32,4 preambles|>
\ifx \a:FontCss:\:UnDef
\Configure{FontCss}{Font\string_Css##1}
{Font\string_Css\string_Plus\space##1}
\fi
\expandafter\ifx \csname aa:Css\endcsname\relax
\Configure{Css}{Css: ##1}
\fi
\:CheckOption{edit} \if:Option
\Configure{edit}{\HCode{<}}{\HCode{> }}
{<}{> }
\fi
\:CheckOption{hooks++} \if:Option
\else \:CheckOption{hooks+} \if:Option
\else \:CheckOption{hooks} \if:Option
\fi\fi\fi
\if:Option
\Configure{hooks}
{\HCode{<}}{\HCode{> }}{}{}
\fi
\Configure{ExitHPage}{exit}{exit }{}
\Configure{TocLink}{\Link{#2}{#3}#4\EndLink}
\Configure{MiniHalign}{\hlg:a}{\hlg:b}\hlg:c\hlg:d{\hlg:e}\hlg:f
\:CheckOption{no-halign} \if:Option \else
\Configure{noalign-}{}{}
\fi
\Configure{PictureAlt*+}
{\let\sv:HtmlPar|=\HtmlPar \let\HtmlPar|=\empty
|%
|%
\NoFonts\csname PauseMathClass\endcsname \SUBOff \SUPOff
\let\HCode|=\:gobble |%\offinterlineskip|%
\let\EndPicture|=\empty}
{\let\HCode|=\:HCode
\let\EndPicture|=\:UnDef \let\HtmlPar|=\sv:HtmlPar \SUBOn \SUPOn
\csname EndPauseMathClass\endcsname \EndNoFonts
|%
|}%
>>>
\<<<
\def\PsCode##1{{\ht:special{\PsCodeSpecial##1}}}%
>>>
\<<<
\iffalse{\fi
\let\sv:halign|=\halign
\let\sv:cr|=\cr
\let\sv:crcr|=\crcr
\iffalse}\fi
\RecallTeXcr \let\halign |=\TeXhalign
>>>
\<<<
\iffalse{\fi
\let\halign|=\sv:halign
\let\cr|=\sv:cr
\let\crcr|=\sv:crcr
\iffalse}\fi
>>>
\<<<
\let\PsCode|=\relax
>>>
\<0,32,4 tex4ht\><<<
\Configure{CutAtTITLE+}{}
\Configure{HPageTITLE+}{}
\Configure{AtBeginDocument}
{\edef\recallcatcodes{%
\catcode`\noexpand\_|=\the\catcode`\_
\catcode`\noexpand\^|=\the\catcode`\^ }%
\catcode`\_=8\catcode`\^=7}
{\recallcatcodes}
>>>
\<0,32,4 tex4ht\><<<
\Configure{crosslinks}{[}{]
}{next}{prev}{prev-|}{front}{tail}{up}
\:CheckOption{next} \if:Option
\Configure{next+}{\ShowPar\par\noindent [}{]}
\fi
\Configure{TocAt*}{}{}
\Configure{TocAt}{}{}
\Configure{halignTB}{\HCode{}}
\def\R:HA{\HCode{}}
\def\r:HA{\HCode{ }}
\def\D:HA{\HCode{1 colspan="\HMultispan"\fi}%
\halignTD \HCode{\Hnewline>}}
\def\d:HA{\HCode{ }}
\Configure{HVerbatim+}{\z@}{\:nbsp}
\Configure{CssFile}{\jobname.css}
{/* \aa:CssFile\space from \jobname.tex (TeX4ht) */}
\Configure{Picture+}{}{}
\Configure{Picture*}{}{}
\Configure{Needs}{l.
\the\inputlineno\space--- needs --- #1 ---}
\Configure{Needs-}{l.
\the\inputlineno\space--- needs --- #1 ---}
|
>>>
\<0,32,4 tex4ht\><<<
\Configure{moveright}{\leavevmode\endgraf }
\Configure{HChar}{x}
>>>
\<<<
\def\:SPAN#1#2{\HCode{}#2\HCode{ }}
\def\SPAN:#1{\HCode{}}
\def\EndSPAN:{\HCode{ }}
\def\DIV:#1{\HCode{}}
\def\EndDIV:{\HCode{
}}
>>>
\<<<
\def\:SPAN#1#2{#2}
\let\SPAN:|=\:gobble \let\EndSPAN:|=\empty
\let\DIV:|=\:gobble \let\EndDIV:|=\empty
>>>
\section{plain}
\<<<
|<0,32,4 plain|>
|<0,32,4 plain,latex|>
|<0 plain|>
|<0 plain,latex|>
|<0 plain+|> |%keep last in html mode|%
>>>
\<0 plain\><<<
\Configure{centerline}{}{}
\Configure{leftline}{}{}
\Configure{rightline}{}{}
\Configure{insert}{}{}
>>>
\<0 plain\><<<
\:CheckOption{pic-eqalign} \if:Option
\:CheckOption{no-halign} \if:Option \else
\fi
\else |
\fi
>>>
\<<<
\Configure{eqalign}{}{}{}{}{}{}
>>>
\<<<
\Configure{eqalignno}{}{}{}{}{}{}
>>>
\<<<
\Configure{leqalignno}{}{}{}{}{}{}
>>>
\<0 plain\><<<
\Configure{narrower}{}{}
>>>
\<0 plain\><<<
\Configure{proclaim}{}{}{}
>>>
\<0 plain\><<<
\Configure{line}{}
>>>
\<0 plain+\><<<
|
\:CheckOption{plain-} \if:Option \else
|
\fi
>>>
\<<<
\Configure{item}{}{}{\par\leavevmode}{}
>>>
\section{article, book, report}
\<<<
|
|
>>>
\<<<
|
|
|
>>>
\<<<
|
|
>>>
\<<<
\ConfigureEnv{abstract}{}{}{}{}
>>>
\<<<
|<0,32,4 article,report,book|>
|
\ConfigureToc{lof}{\empty}{ }{}{}
\ConfigureToc{lot}{\empty}{ }{}{}
\ConfigureEnv{quote}{}{}{}{}
\ConfigureList{description}{}{}{}{}{}{}
\Configure{maketitle}{}{}{}{}
\Configure{thanks author date and} {}{} {}{} {}{} {}{}
\Configure{theindex}{}{}{}{}{}{}{}{}{}
\Configure{paragraph}{}{}{}{}
\Configure{likeparagraph}{}{}{}{}
\Configure{subparagraph}{}{}{\thesubparagraph\space}{}
\Configure{likesubparagraph}{}{}{}{}
\ifx \part\:UnDef \else
\Configure{part}{}{} {\partname \ \thepart\space} {}
\Configure{likepart}{}{}{\empty}{}
\fi
>>>
\<<<
\ConfigureToc{appendix} {\empty}{\ }{}{\ }
\ConfigureToc{chapter} {\empty}{\ }{}{\ }
\ConfigureToc{likechapter} {\empty}{\ }{}{\ }
>>>
\<<<
\ConfigureToc{likeparagraph} {}{\empty}{}{\ }
\ConfigureToc{likepart} {}{\empty}{}{\ }
\ConfigureToc{likesection} {}{\empty}{}{\ }
\ConfigureToc{likesubparagraph} {}{\empty}{}{\ }
\ConfigureToc{likesubsection} {}{\empty}{}{\ }
\ConfigureToc{likesubsubsection} {}{\empty}{}{\ }
\ConfigureToc{paragraph} {\empty}{\ }{}{\ }
\ConfigureToc{part} {\empty}{\ }{}{\ }
\ConfigureToc{section} {\empty}{\ }{}{\ }
\ConfigureToc{subparagraph} {\empty}{\ }{}{\ }
\ConfigureToc{subsection} {\empty}{\ }{}{\ }
\ConfigureToc{subsubsection} {\empty}{\ }{}{\ }
>>>
\<<<
|
\Configure{chapter}{}{} {\chaptername \ \thechapter} {}
\Configure{chapterTITLE+}{}
\Configure{likechapter}{}{}{\empty}{}
\Configure{appendix}{}{}{\appendixname \ \thechapter}{}
\Configure{appendixTITLE+}{}
>>>
\section{emulateapj}
\<<<
|
>>>
\<<<
\Configure{slugcomment}{}{}
>>>
\<<<
\Configure{subtitle}{}{}
>>>
\<<<
\Configure{submitted}{}{}
>>>
\<<<
\Configure{title}{}{}
>>>
\<<<
\Configure{author}{}{}
>>>
\<<<
\Configure{affil}{}{}
>>>
\<<<
\Configure{keywords}{}{}
>>>
\<<<
\Configure{subjectheadings}{}{}
>>>
\section{aa}
\<<<
|
|
|
>>>
\<<<
\Configure{subtitle institute}{}{}{}{}{}{}{}
\Configure{maketitle}{}{}{}{}
\Configure{thanks author date and}{}{}{}{}{}{}{}{}
>>>
\section{vanilla}
\<<<
|
|
>>>
\<<<
\Configure{heading}{}{}{}{}
\ConfigureToc{heading}{}{}{}{}
\Configure{subheading}{}{}{}{}
\ConfigureToc{subheading}{}{}{}{}
\Configure{demo}{}{}{}{}
>>>
\<<<
\Configure{aligned}{}{}{}{}{}{}
>>>
\<<<
\Configure{align}{}{}{}{}{}{}
>>>
\section{amsart, amsproc, amsbook}
\<<<
|
>>>
\<<<
|
>>>
\<<<
|
>>>
\section{amstex}
\<<<
\:CheckOption{no-matrix} \if:Option \else
\:CheckOption{pic-matrix} \if:Option
|
\else
|
\fi\fi
\:CheckOption{no-align} \if:Option \else
\:CheckOption{pic-align} \if:Option
|
\else
|
\fi\fi
>>>
Do we need the following? Don't those of plain.sty are good here?
\<<<
\Configure{matrix}{}{}
>>>
\<<<
\Configure{pmatrix}{}{}
>>>
\<<<
\Configure{matrix}{}{}{}{}{}{}
>>>
\<<<
\Configure{pmatrix}{}{}
>>>
\section{amsppt}
\<<<
|
>>>
\section{moreverb.sty}
\<<<
\ConfigureEnv{verbatimtab}{}{}{}{\null}
\ConfigureEnv{verbatimtab*}{}{}{}{\null}
\ConfigureEnv{boxedverbatim}{}{}{}{\null}
\ConfigureEnv{boxedverbatim*}{}{}{}{\null}
>>>
\section{url}
\<<<
\Configure{url}{#1}
>>>
\section{array.sty}
\<<<
\Configure{VBorder}{}{}{}{}
\Configure{array}{}{}{}{}{}{}
\Configure{tabular}{}{}{}{}{}{}
>>>
\section{slidesec}
\<<<
\ConfigureToc{slidesection}{\empty}{ }{}{}
>>>
\section{epsfig}
\<<<
|<0,32,4 epsfig|>
>>>
\section{psfig}
\<<<
|<0,32,4 psfig|>
>>>
\section{graphics}
\<<<
|<0,32,4 graphics|>
>>>
\section{th4}
\<<<
\Configure{Verbatim}{}{}{}{}
|<0 th4,latex|>
|<0 th4|>
>>>
\section{Shared in html0}
\<<<
|
>>>
\<<<
|
>>>
\<<<
\Configure{caption}{}{}{}{}
>>>
\<<<
\Configure{itemitem}{}{}{\par\leavevmode}{}
>>>
\<<<
\Configure{title}{}{}
>>>
\<<<
\Configure{author}{}{}
>>>
\section{amsart}
\<<<
|
|