Debian Codegraph @

texmf-dist/tex/generic/tex4ht/vanilla.4ht

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % vanilla.4ht 2009-05-21-09:32 %
3 % Copyright (C) 1997--2009 Eitan M. Gurari %
4 % %
5 % This work may be distributed and/or modified under the %
6 % conditions of the LaTeX Project Public License, either %
7 % version 1.3c of this license or (at your option) any %
8 % later version. The latest version of this license is %
9 % in %
10 % http://www.latex-project.org/lppl.txt %
11 % and version 1.3c or later is part of all distributions %
12 % of LaTeX version 2005/12/01 or later. %
13 % %
14 % This work has the LPPL maintenance status "maintained".%
15 % %
16 % This Current Maintainer of this work %
17 % is Eitan M. Gurari. %
18 % %
19 % If you modify this program your changing its signature %
20 % with a directive of the following form will be %
21 % appreciated. %
22 % \message{signature} %
23 % %
24 % [email protected] %
25 % http://www.cse.ohio-state.edu/~gurari %
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27 \immediate\write-1{version 2009-05-21-09:32}
28
29
30 \expandafter\def\csname title\endcsname{\title@true
31 \bgroup \let\halign\TeXhalign \HRestore\noalign \let\\\cr\a:title
32 \halign\bgroup\tenbf\hfill\ignorespaces##\unskip\hfill\cr}
33 \def\endtitle{\cr\egroup\b:title\egroup}
34 \expandafter\def\csname author\endcsname{\bgroup
35 \let\halign\TeXhalign \HRestore\noalign \let\\\cr\a:author
36 \halign to \hsize\bgroup\smc\hfill\ignorespaces##\unskip\hfill\cr}
37 \def\endauthor{\cr\egroup\b:author\egroup}
38
39 \expandafter\let\csname heading\endcsname\empty
40 \expandafter\let\csname endheading\endcsname\empty
41 \NewSection\heading{}
42 \let\x:heading=\heading
43 \def\heading#1\endheading{{\let\cr\space \let\\\space
44 \x:heading{#1}}}
45
46 \expandafter\let\csname subheading\endcsname\empty
47 \NewSection\subheading{}
48
49 \expandafter\def\csname proclaim\endcsname#1{\medbreak\a:proclaim
50 \noindent\smc\ignorespaces #1\unskip.\b:proclaim
51 \enspace\sl\ignorespaces}
52 \expandafter\def\csname endproclaim\endcsname{\c:proclaim\medskip\rm}
53
54 \expandafter\def\csname demo\endcsname#1{\par \a:demo
55 \noindent{\smc\ignorespaces#1\unskip\enspace}\b:demo
56 \rm \ignorespaces}
57 \expandafter\def\csname enddemo\endcsname{\c:demo\par}
58 \NewConfigure{demo}{3}
59
60 \def\footnote{\let\@sf=\empty\ifhmode\edef\@sf{\spacefactor
61 =\the\spacefactor}\/\fi \futurelet\next\footnote@}
62 \def\footnote@{\ifx"\next\let\next\footnote@@\else
63 \let\next\footnote@@@\fi\next}
64 \def\footnote@@"#1"#2{%
65 \gHAdvance\FNnum 1 \def\:temp{#1}\ifx \:temp\empty
66 \def\:temp##1[##2]##3{##1[##2]{*}}\expandafter\:temp \fi
67 \HPageButton[fn\FNnum]{#1}\BeginHPage[fn\FNnum]{ }{#2}\EndHPage{}}
68 \HAssign\FNnum 0
69 \def\footnote@@@#1{%
70 \HPageButton[nf\the\footmarkcount@]{$^{\number\footmarkcount@}$}%
71 \BeginHPage[nf\the\footmarkcount@]{ }
72 {{\HCode{<sup>}{\number\footmarkcount@}\HCode{</sup>}}{#1}\global
73 \advance\footmarkcount@ by 1}\EndHPage{}}
74 \def\brute:halign{\let\:HAlign\halign \let\:NOalign\noalign
75 \let\halign\TeXhalign \HRestore\noalign
76 \let\sv:Row=\HRow \let\sv:Col=\HCol \def\HRow{0}}
77 \def\endbrute:halign#1{%
78 \csname d:#1\endcsname\csname b:#1\endcsname
79 \global\let\HRow\sv:Row \global\let\HCol\sv:Col}
80 \def\abt:hlgn#1{\csname\ifnum \HRow=0 a\else d\fi :#1\endcsname
81 \g:Advance\HRow by 1 \gdef\HCol{1}%
82 \csname c:#1\endcsname\csname e:#1\endcsname\let\halign\:HAlign
83 \let\noalign\:NOalign}
84 \def\bbt:hlgn#1{\g:Advance \HCol by 1 \csname
85 e:#1\endcsname\let\halign\:HAlign
86 \let\noalign\:NOalign}
87
88 \def\:temp{\vcenter\bgroup \brute:halign
89 \vspace@\Let@\openup\jot\m@th\ialign
90 \bgroup \strut\hfil\abt:hlgn{aligned}%
91 $\displaystyle{##}$\f:aligned
92 &\bbt:hlgn{aligned}$\displaystyle{{}##}$\f:aligned\hfil\crcr}
93 \HLet\aligned\:temp
94 \def\:temp{\crcr\egroup
95 \endbrute:halign{aligned}\egroup}
96 \HLet\endaligned\:temp
97 \NewConfigure{aligned}{6}
98 \def\:temp{\vcenter\bgroup\Let@\vspace@ \brute:halign
99 \normalbaselines
100 \m@th\ialign\bgroup\hfil\abt:hlgn{matrix}$##$\f:matrix\hfil&&\quad\hfil
101 \bbt:hlgn{matrix}$##$\f:matrix\crcr
102 \mathstrut\crcr\noalign{\kern-\baselineskip}}
103 \HLet\matrix\:temp
104 \def\:temp{\crcr\mathstrut\crcr\egroup
105 \endbrute:halign{matrix}\egroup}
106 \HLet\endmatrix\:temp
107 \NewConfigure{matrix}{6}
108 \def\:temp{\left\{\,\vcenter\bgroup\vspace@ \brute:halign
109 \normalbaselines\openup\jot\m@th
110 \Let@\ialign\bgroup\abt:hlgn{cases}$##$\f:cases
111 \hfil&\quad\bbt:hlgn{cases}$##$\f:cases\hfil\crcr}
112 \HLet\cases\:temp
113 \def\:temp{\crcr\mathstrut\crcr\egroup
114 \endbrute:halign{cases}\egroup\right.}
115 \HLet\endcases\:temp
116 \def\ralign@#1\endalign{\displ@y\Let@\tabskip\centering
117 \append:def\f:align{\ifx \dn:hlgn\:UnDef \else
118 \global\let\dn:hlgn=\:UnDef \endbrute:halign{align}\fi}%
119 \brute:halign \halign{\abt:hlgn{align}$\displaystyle
120 {##}$\f:align&\bbt:hlgn{align}$\displaystyle{{}##}$\f:align
121 &\bbt:hlgn{align}\hbox{(\rm##\unskip)}\f:align\crcr
122 #1\global\let\dn:hlgn\empty\crcr}}
123 \def\lalign@
124 #1\endalign{\displ@y\Let@\tabskip\centering
125 \append:def\f:align{\ifx \dn:hlgn\:UnDef \else
126 \global\let\dn:hlgn=\:UnDef \endbrute:halign{align}\fi}%
127 \brute:halign \halign{\abt:hlgn{align}$\displaystyle
128 {##}$\f:align&\bbt:hlgn{align}$\displaystyle{{}##}$\f:align
129 &\bbt:hlgn{align}\hbox{(\rm##\unskip)}\f:align\crcr
130 #1\global\let\dn:hlgn=\empty\crcr}}
131 \NewConfigure{align}{6}
132
133 \NewConfigure{title}{2}
134 \NewConfigure{author}{2}
135
136
137
138 \Hinput{vanilla}
139 \endinput
140