Debian Codegraph @

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

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % tugboat.4ht 2009-05-21-09:32 %
3 % Copyright (C) 2004--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 \let\:tempb\head
30 \Def:Section\head{}{#1}
31 \let\:head\head
32 \let\head\:tempb
33 \def\@domainhead{\:head{\the\@argument}}
34 \let\:tempb\subhead
35 \Def:Section\subhead{}{#1}
36 \let\:subhead\subhead
37 \let\subhead\:tempb
38 \def\@dosubhead{\:subhead{\the\@argument}}
39 \let\:tempb\subsubhead
40 \Def:Section\subsubhead{}{#1}
41 \let\:subsubhead\subsubhead
42 \let\subsubhead\:tempb
43 \def\@dosubsubhead{\:subsubhead{\the\@argument}}
44 \let\o:figure:\figure
45 \def\figure{\bgroup \a:figure \o:figure:}
46 \append:def\endfigure{\b:figure\egroup}
47 \NewConfigure{figure}{2}
48 \pend:def\endverbatim{%
49 \append:def\@beforeverbinline{\a:verb}%
50 \pend:def\@afterverbinline{\b:verb}%
51 \append:def\@beforeverbdisplay{\a:verbatim}%
52 \pend:def\@afterverbdisplay{\b:verbatim}%
53 \expandafter\def\expandafter\pre:everypar\expandafter{\the\everypar}%
54 \append:def\@altdisplaystyle{%
55 \expandafter\def\expandafter\:temp\expandafter{\the\everypar}%
56 \ifx \:temp\pre:everypar \else
57 \expandafter\everypar\expandafter{\expandafter\HtmlPar\the\everypar}%
58 \fi }%
59 }
60 \pend:def\verbatim{\bgroup \Configure{obeylines}{}{}{}}
61 \append:def\endverbatim{\egroup}
62 \let\:setupverbatim\setupverbatim
63 \def\setupverbatim{\:setupverbatim
64 \let\:ruled\empty\def\ruled{\def\:ruled{-ruled}}}
65 \let\:ruled\empty
66 \NewConfigure{verbatim}{2}
67 \NewConfigure{verb}{2}
68 \let\:beginlist\@beginlist
69 \def\@beginlist{%
70 \ifx\@liststyle\@displaystyle
71 \Configure{list}
72 {\csname a:display-list\endcsname}
73 {\csname b:display-list\endcsname}
74 {\csname c:display-list\endcsname}
75 {\csname d:display-list\endcsname}%
76 \else
77 \Configure{list}
78 {\csname a:inline-list\endcsname}
79 {\csname b:inline-list\endcsname}
80 {\csname c:inline-list\endcsname}
81 {\csname d:inline-list\endcsname}%
82 \fi
83 \a:list \begingroup
84 \:beginlist
85 \let\:tagform=\tagform
86 \def\tagform##1{\c:list\:tagform{##1}\d:list}%
87 \expandafter\def\expandafter\:temp\expandafter{\the\everypar}%
88 \ifx \:temp\pre:everypar \else
89 \expandafter\everypar\expandafter{\expandafter\HtmlPar\the\everypar}%
90 \fi
91 \def\colsep{\ignoreendline}%
92 }
93 \append:def\endlist{\b:list\endgroup}
94 \NewConfigure{list}{4}
95 \NewConfigure{display-list}{4}
96 \NewConfigure{inline-list}{4}
97 \NewConfigure{rtitle}{2}
98 \let\rtitle\empty
99 \let\rfoot\empty
100 \global\SecTitletrue
101 \pend:def\article{\a:rtitle \rtitlex\qquad \midrtitle \b:rtitle
102 \ifx\thetitle\relax
103 \else
104 \pend:defI\thetitle{\a:title}%
105 \append:defI\thetitle{\b:title}%
106 \fi
107 }
108 \NewConfigure{title}{2}
109 \pend:defI\theauthor{\a:author}
110 \append:defI\theauthor{{}\b:author}
111 \NewConfigure{author}{2}
112 \pend:defI\theaddress{\a:address}
113 \append:defI\theaddress{{}\b:address}
114 \NewConfigure{address}{2}
115 \pend:defI\thenetaddress{\a:netaddress}
116 \append:defI\thenetaddress{{}\b:netaddress}
117 \NewConfigure{netaddress}{2}
118 \pend:def\@defaultauthorlist{\a:authorlist\:defaultauthorlist}
119 \append:def\@defaultauthorlist{\b:authorlist}
120 \def\:defaultauthorlist{%
121 \let\@defaultauthorlist\empty
122 \count@=\authornumber
123 \loop
124 \ifnum\count@>0
125 \expandafter\pend:def\csname theauthor\number\count@\endcsname{\a:author}%
126 \expandafter\append:def\csname theauthor\number\count@\endcsname{\b:author}%
127 \advance\count@ by -1
128 \repeat
129 }
130 \NewConfigure{authorlist}{2}
131
132 \append:def\makesignature{\egroup}
133 \pend:def\makesignature{\bgroup
134 \pend:def\@signature{%
135 \expandafter\everypar\expandafter{\expandafter\HtmlPar\the\everypar}%
136 \a:signature}%
137 \append:def\@signature{\b:signature}%
138 \let\sv:rightline\rightline
139 \def\rightline{\let\rightline=\sv:rightline}%
140 }
141 \NewConfigure{signature}{2}
142 \pend:def\signaturemark{\a:signaturemark}
143 \append:def\signaturemark{\b:signaturemark}
144 \NewConfigure{signaturemark}{2}
145 \def\v@lx{\gdef\volx{Volume~\a:volno\volno\b:volno
146 ~(\a:volyr\volyr\b:volyr),
147 No.~\a:issno\issno\b:issno}}
148 \NewConfigure{issno}{2}
149 \NewConfigure{volyr}{2}
150 \NewConfigure{volno}{2}
151
152 \Hinput{tugboat}
153 \endinput
154