~ubuntu-branches/debian/sid/tex4ht/sid

« back to all changes in this revision

Viewing changes to share/all4ht/amsproc.4ht

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2005-04-05 14:14:41 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050405141441-x4dojdgz3frkfyet
Tags: 20050402.1817-1
* New upstream release (2005-04-02-18:17). Closes: #299934.
* See README.src, README.validate, README.Debian and copyright
  for information on minor changes.
* This upload fixes a some .htf files. Closes: #295109.
* Updated the description to reflect recent changes.
* Fixed some typos in src/tex4ht-mkht.tex and consequently
  in the mk4ht script.
* Updated the man page to include mk4ht. 
* Updated the description of options for the scripts in the man page.
  Put more information in the man page about the way the system works.
  Closes: #219348, #219347.
* Added debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
 
% amsproc.4ht                          2001-12-14-17:07 %
3
 
% Copyright (C) 1997--2001      Eitan M. Gurari         %
4
 
%                                                       %
5
 
% This program can redistributed and/or modified under  %
6
 
% the terms of the LaTeX Project Public License         %
7
 
% Distributed from CTAN archives in directory           %
8
 
% macros/latex/base/lppl.txt; either version 1 of the   %
9
 
% License, or (at your option) any later version.       %
10
 
%                                                       %
11
 
% However, you are allowed to modify this program       %
12
 
% without changing its name, if you modify its          %
13
 
% signature. Changes to the signature can be introduced %
14
 
% with a directive of the form                          %
15
 
%            \message{signature}                        %
16
 
%                                                       %
17
 
%                             gurari@cis.ohio-state.edu %
18
 
%                 http://www.cis.ohio-state.edu/~gurari %
19
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
20
 
\immediate\write-1{version 2001-12-14-17:07}
21
 
 
22
 
 
23
 
\NewConfigure{caption}[4]{\c:def\cptA:{#1}\c:def\cptB:{#2}%
24
 
   \c:def\cptC:{#3}\c:def\cptD:{#4}}
25
 
\long\def\@makecaption#1#2{%   
26
 
   {\cptA: \cap:ref{#1}%
27
 
\cptB:}{\cptC:{#2}\cptD:}}
28
 
 
29
 
 
30
 
\pend:def\caption{\SkipRefstepAnchor}
31
 
\append:def\quote{\par\@totalleftmargin\z@}
32
 
\long\def\c:theindex:#1#2#3#4#5#6#7#8#9{%
33
 
   \def\theindex{%
34
 
      \ifx \idx:item\:UnDef \ifx \LNK\:UnDef  \ifx \LNKno\:UnDef
35
 
  \:warning{Process with
36
 
   ^^J\space\space tex '\string\def\string\filename
37
 
      {{\jobname}{ind}{idx}{in}{out}} \noexpand\input\space idxmake.4ht'
38
 
   ^^J\space\space  makeindex -o \jobname .out \jobname .in
39
 
   ^^Jinstead of
40
 
   ^^J\space\space  makeindex -o \jobname .ind \jobname .idx
41
 
   ^^JOn some platforms, the quotation marks ' should be
42
 
   ^^J      replaced by double quotation marks " or eliminated
43
 
}\fi\fi
44
 
\fi
45
 
      \def\idx:item{\SaveEverypar\ht:everypar{}#1}%
46
 
      \def\endtheindex{\idx:item#2\RecallEverypar}%
47
 
      \def\item{\idx:item\let\index\@gobble #3\def\idx:item{#4}}%
48
 
      \def\subitem{\idx:item\let\index\@gobble #5\def\idx:item{#6}}%
49
 
      \def\subsubitem{\idx:item\let\index\@gobble #7\def\idx:item{#8}}}%
50
 
      \def\indexspace{\idx:item#9\let\idx:item\empty}}
51
 
\let\o:maketitle:\maketitle
52
 
\def\maketitle{\bgroup
53
 
   \ifx \EndPicture\:UnDef
54
 
      \def\sec:typ{title}%
55
 
      \Configure{HtmlPar}{}{}{}{}%
56
 
      \ConfigureEnv{center}{\empty}{}{\empty}{\empty}
57
 
      \Configure{tabular}{}{}{}{\e:mktl}{}{}%
58
 
      \ConfigureEnv{tabular}{\empty}{}{}{}%
59
 
      %
60
 
      \pend:def\@title{\a:ttl}\append:def\@title{\b:ttl}%
61
 
      \pend:def\@date{\a:dat}\append:def\@date{\b:dat}%
62
 
      \pend:def\@author{\a:aut}\append:def\@author{\b:aut}%
63
 
      \def\and{\a:and}
64
 
%
65
 
   \fi
66
 
   \pic:gobble\a:mktl  \o:maketitle:  \pic:gobble\b:mktl
67
 
   \egroup \let\maketitle\empty}
68
 
\NewConfigure{maketitle}[4]{\c:def\a:mktl{#1}\c:def\b:mktl{#2}%
69
 
   \c:def\a:ttl{#3}\c:def\b:ttl{#4}}
70
 
\NewConfigure{thanks author date and}[8]{%
71
 
   \c:def\a:thanks{#1}\c:def\b:thanks{#2}\c:def\a:aut{#3}\c:def\b:aut{#4}%
72
 
   \c:def\a:dat{#5}\c:def\b:dat{#6}\c:def\a:and{#7}\c:def\e:mktl{#8}}
73
 
 
74
 
 
75
 
 
76
 
   \pend:defII\@starttoc{\par}
77
 
   \pend:def\@settitle{\a:title}       \append:def\@settitle{\b:title}
78
 
\pend:def\@setauthors{\a:authors}   \append:def\@setauthors{\b:authors}
79
 
\pend:def\@setdate{\a:date}         \append:def\@setdate{\b:date}
80
 
\pend:def\@setkeywords{\a:keywords} \append:def\@setkeywords{\b:keywords}
81
 
\def\@setthanks{\def\thanks##1{\par
82
 
        \a:thanks##1\@addpunct.\b:thanks}\thankses}
83
 
\pend:def\@setabstract{\a:abstract} \append:def\@setabstract{\b:abstract}
84
 
\NewConfigure{title}[2]{\def\a:title{#1}\def\b:title{#2}}
85
 
\NewConfigure{authors}[2]{\def\a:authors{#1}\def\b:authors{#2}}
86
 
\NewConfigure{date}[2]{\def\a:date{#1}\def\b:date{#2}}
87
 
\NewConfigure{keywords}[2]{\def\a:keywords{#1}\def\b:keywords{#2}}
88
 
\NewConfigure{thanks}[2]{\def\a:thanks{#1}\def\b:thanks{#2}}
89
 
\NewConfigure{abstract}[2]{\def\a:abstract{#1}\def\b:abstract{#2}}
90
 
 
91
 
\def\:temp#1#2!*?: {\def\:temp{#1}}
92
 
\expandafter\:temp\usepackage!*?: 
93
 
\def\:tempa{\@latex@e@error}
94
 
\ifx \:temp\:tempa \else
95
 
   \def\:tempa#1#2#3#4{\tmp:toks{#1{#2}}%
96
 
   \long\expandafter\edef\csname #4 \endcsname{\the\tmp:toks
97
 
        {\expandafter\noexpand
98
 
   \csname o:\expandafter\:gobble\string #3:\endcsname}}}
99
 
\def\:temp#1{%
100
 
  \expandafter\expandafter\expandafter\:tempa\csname #1 \endcsname{#1}}
101
 
\:temp{rm}
102
 
\:temp{sf}
103
 
\:temp{tt}
104
 
\:temp{bf}
105
 
\:temp{it}
106
 
 
107
 
\fi
108
 
 
109
 
\ifx \deferred@thm@head\:UnDef\else
110
 
   \ifx \deferred@thm@head\:UnDef\else
111
 
   \expandafter\dth@everypar\expandafter{%
112
 
     \the\dth@everypar
113
 
     \edef\:temp{\the\ht:everypar}\ifx \:temp\empty
114
 
        \ht:everypar{\HtmlPar}\ShowPar
115
 
     \fi
116
 
   }%
117
 
   \def\deferred@thm@head#1{%
118
 
  \if@inlabel \indent \par \fi 
119
 
  \if@nobreak
120
 
    \adjust@parskip@nobreak
121
 
  \else
122
 
    \addpenalty\@beginparpenalty
123
 
    \addvspace\@topsep
124
 
    \addvspace{-\parskip}%
125
 
  \fi
126
 
  \global\@inlabeltrue
127
 
  \ht:everypar\dth@everypar
128
 
  \item[\normalfont#1]%
129
 
  \ignorespaces\par
130
 
}
131
 
 
132
 
\fi
133
 
\def\:temp#1{%
134
 
   \def\:temp{#1}%
135
 
   \edef\:temp{\expandafter\eorem:syle  \meaning\:temp}%
136
 
   \expandafter\let\expandafter\@tmp:sv\csname th@\:temp\endcsname
137
 
   \def\:tempa##1{%
138
 
      \expandafter\append:def\csname th@##1\endcsname{%
139
 
         \expandafter\let\csname th@##1\endcsname=\@tmp:sv
140
 
         \let\thm:headnl=\thmheadnl
141
 
         \pend:def\thmheadnl{\let\thmheadnl\thm:headnl \b:newtheorem}%
142
 
         \append:def\thmheadnl{\expandafter
143
 
             \ht:everypar\expandafter{\the\ht:everypar
144
 
             \ht:everypar{\HtmlPar}}}}}%
145
 
   \expandafter\:tempa\expandafter{\:temp}%
146
 
   \let\sv:trivlist=\trivlist
147
 
   \def\trivlist{\let\trivlist\sv:trivlist \let\sv:trivlist\:unDef
148
 
      \a:newtheorem \trivlist}%
149
 
   \aftergroup\c:newtheorem
150
 
   \:thm{#1}}
151
 
\HLet\@thm\:temp
152
 
\HRestore\@endtheorem
153
 
\bgroup
154
 
\def\bgroup{\catcode`\\=0 \catcode`\t=11 }
155
 
\catcode`\/=0
156
 
\catcode`\@=12
157
 
\catcode`\h=12
158
 
\catcode`\\=12
159
 
/catcode`/t=12
160
 
/edef~{/def/noexpand/eorem:syle##1\th@##2 {##2}}
161
 
/bgroup
162
 
\expandafter\egroup ~
163
 
\long\def\:temp[#1]{\par\a:proof
164
 
    \csname o:\string\proof :\endcsname[#1]\b:proof}
165
 
\expandafter\HLet\csname \string\proof \endcsname=\:temp
166
 
\append:def\endproof{\c:proof}
167
 
\NewConfigure{proof}{3}
168
 
 
169
 
   \def\:tempc{\ifmmode \mathqed \else
170
 
    \leavevmode \a:qed\hbox {\qedsymbol}\b:qed\fi}
171
 
\expandafter\HLet\csname qed \endcsname=\:tempc
172
 
\NewConfigure{qed}{2}
173
 
 
174
 
\fi
175
 
\Configure{UndefinedSec}{likepart}
176
 
\Configure{UndefinedSec}{likechapter}
177
 
\Configure{UndefinedSec}{likesection}
178
 
\Configure{UndefinedSec}{likesubsection}
179
 
 
180
 
\def\@part[#1]#2{%
181
 
    \ifnum \c@secnumdepth >-2\relax
182
 
      \SkipRefstepAnchor \refstepcounter{part}%
183
 
      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
184
 
    \else
185
 
      \addcontentsline{toc}{part}{#1}%
186
 
    \fi
187
 
    \csname @endpart\endcsname}
188
 
\let\:tempb\part
189
 
\Def:Section\part{\thepart}{#1}
190
 
\let\:part\part
191
 
\let\part\:tempb
192
 
\let\no@part\@part
193
 
\def\@part[#1]#2{%
194
 
   {\let\addcontentsline\:gobbleIII\no@part[#1]{}}%
195
 
   \HtmlEnv   \Toc:Title{#1}\:part{#2}}
196
 
\Def:Section\likepart{}{#1}
197
 
\let\:likepart\likepart
198
 
\let\likepart\:UnDef
199
 
\let\no@spart\@spart
200
 
\def\@spart#1{%
201
 
   {\let\addcontentsline\:gobbleIII\no@spart{}}%
202
 
   \HtmlEnv   \:likepart{#1}}
203
 
 
204
 
\let\no@section\section
205
 
\Def:Section\section{\ifnum \c:secnumdepth>\c@secnumdepth   \else
206
 
   \thesection \fi}{#1}
207
 
\let\no:section\section
208
 
\def\section{\rdef:sec{section}}
209
 
\Def:Section\likesection{}{#1}
210
 
\let\:likesection\likesection
211
 
\let\likesection\:UnDef
212
 
 
213
 
\let\no@subsection\subsection
214
 
\Def:Section\subsection{\ifnum \c:secnumdepth>\c@secnumdepth   \else
215
 
   \thesubsection \fi}{#1}
216
 
\let\no:subsection\subsection
217
 
\def\subsection{\rdef:sec{subsection}}
218
 
\Def:Section\likesubsection{}{#1}
219
 
\let\:likesubsection\likesubsection
220
 
\let\likesubsection\:UnDef
221
 
 
222
 
\let\no@subsubsection\subsubsection
223
 
\Def:Section\subsubsection{\ifnum \c:secnumdepth>\c@secnumdepth   \else
224
 
   \thesubsubsection \fi}{#1}
225
 
\let\no:subsubsection\subsubsection
226
 
\def\subsubsection{\rdef:sec{subsubsection}}
227
 
\Def:Section\likesubsubsection{}{#1}
228
 
\let\:likesubsubsection\likesubsubsection
229
 
\let\likesubsubsection\:UnDef
230
 
 
231
 
\let\no@paragraph\paragraph
232
 
\Def:Section\paragraph{\ifnum \c:secnumdepth>\c@secnumdepth   \else
233
 
   \theparagraph \fi}{#1}
234
 
\let\no:paragraph\paragraph
235
 
\def\paragraph{\rdef:sec{paragraph}}
236
 
\Def:Section\likeparagraph{}{#1}
237
 
\let\:likeparagraph\likeparagraph
238
 
\let\likeparagraph\:UnDef
239
 
\let\no@subparagraph\subparagraph
240
 
\Def:Section\subparagraph{\ifnum \c:secnumdepth>\c@secnumdepth   \else
241
 
   \thesubparagraph \fi}{#1}
242
 
\let\no:subparagraph\subparagraph
243
 
\def\subparagraph{\rdef:sec{subparagraph}}
244
 
\Def:Section\likesubparagraph{}{#1}
245
 
\let\:likesubparagraph\likesubparagraph
246
 
\let\likesubparagraph\:UnDef
247
 
 
248
 
 
249
 
 
250
 
 
251
 
 
252
 
 
253
 
\pend:defI\@setauthors{\bgroup
254
 
    \def\@no@lnbk ########1[########2]{\a:newline}}
255
 
\append:defI\@setauthors{\egroup}
256
 
 
257
 
\def\no@sect#1#2#3#4#5#6[#7]#8{%
258
 
  \edef\@toclevel{\ifnum#2=\@m 0\else\number#2\fi}%
259
 
  \ifnum #2>\c@secnumdepth \let\@secnumber\@empty
260
 
  \else \@xp\let\@xp\@secnumber\csname the#1\endcsname
261
 
        \refstepcounter{#1}\fi
262
 
  \let\@svsec\empty
263
 
  \let\@svsechd\empty
264
 
  \global\@nobreaktrue
265
 
  \@xsect{#5}}
266
 
 
267
 
   \def\endtable{\end@float}
268
 
\def\endfigure{\end@float}
269
 
 
270
 
   \def\:tableofcontents{\futurelet\:temp\:TOC}
271
 
\def\Auto:ent#1{%
272
 
   \edef\auto:toc{\noexpand\:TableOfContents[\ifx \auto:toc\:UnDef
273
 
      #1\else \auto:toc \fi]}  \auto:toc
274
 
   \global\let\auto:toc\:UnDef }
275
 
 
276
 
\def\tableofcontents{%
277
 
   \ifx\contentsname\empty \else
278
 
      \ifx\contentsname\:UnDef \else
279
 
         %
280
 
\section*{\contentsname}%
281
 
         %
282
 
%
283
 
   \fi\fi
284
 
   \:tableofcontents}
285
 
 
286
 
\edef\:TOC{%
287
 
   \noexpand\ifx [\noexpand\:temp
288
 
      \noexpand\expandafter\noexpand\:TableOfContents
289
 
   \noexpand\else
290
 
      \noexpand\Auto:ent{\ifnum \c@tocdepth >\m@ne part,likepart,\fi
291
 
\ifnum \c@tocdepth >\z@ section,likesection,\fi
292
 
\ifnum \c@tocdepth >1 subsection,likesubsection,\fi
293
 
\ifnum \c@tocdepth >2 subsubsection,likesubsubsection,\fi
294
 
\ifnum \c@tocdepth >3 paragraph,\fi
295
 
\ifnum \c@tocdepth >4 subparagraph,\fi
296
 
UnDFexyz
297
 
}\noexpand\fi}
298
 
\ConfigureToc{likeparagraph} {}{\empty}{}{\newline}
299
 
\ConfigureToc{likepart} {}{\empty}{}{\newline}
300
 
\ConfigureToc{likesection} {}{\empty}{}{\newline}
301
 
\ConfigureToc{likesubparagraph} {}{\empty}{}{\newline}
302
 
\ConfigureToc{likesubsection} {}{\empty}{}{\newline}
303
 
\ConfigureToc{likesubsubsection} {}{\empty}{}{\newline}
304
 
\ConfigureToc{paragraph} {\empty}{\ }{}{\newline}
305
 
\ConfigureToc{part} {\empty}{\ }{}{\newline}
306
 
\ConfigureToc{section} {\empty}{\ }{}{\newline}
307
 
\ConfigureToc{subparagraph} {\empty}{\ }{}{\newline}
308
 
\ConfigureToc{subsection} {\empty}{\ }{}{\newline}
309
 
\ConfigureToc{subsubsection} {\empty}{\ }{}{\newline}
310
 
 
311
 
 
312
 
 
313
 
\Hinput{amsproc}
314
 
\endinput
315