Debian Codegraph @

texmf-dist/source/latex/iso/iso4ht.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Author: Peter Wilson (CUA) (now at: [email protected])
4 %
5 % This system is released under the LaTeX Project Public License.
6 %
7 % This system is distributed in the hope that it will be useful,
8 % but WITHOUT ANY WARRANTY; without even the implied warranty of
9 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 %
11 %<*driver>
12 \documentclass{ltxdoc}
13 \usepackage{url}
14 \newcommand{\makecolonletter}{\catcode`\:11\relax}
15 \renewcommand{\MakePrivateLetters}{\makeatletter\makecolonletter}
16 \EnableCrossrefs
17 \CodelineIndex
18 \setcounter{StandardModuleDepth}{1}
19 \begin{document}
20 \DocInput{iso4ht.dtx}
21 \end{document}
22 %</driver>
23 %
24 % \fi
25 %
26 % \CheckSum{1914}
27 %
28 % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
29 % \DoNotIndex{\@centercr,\@cite}
30 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
31 % \DoNotIndex{\@input,\@ixpt,\@m}
32 % \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint}
33 % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
34 % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
35 % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
36 % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
37 % \DoNotIndex{\advance,\Alph,\alph}
38 % \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
39 % \DoNotIndex{\bullet}
40 % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
41 % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
42 % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
43 % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
44 % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
45 % \DoNotIndex{\fbox}
46 % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
47 % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
48 % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
49 % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
50 % \DoNotIndex{\input}
51 % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark}
52 % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
53 % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
54 % \DoNotIndex{\NeedsTeXFormat,\newdimen}
55 % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number}
56 % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
57 % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
58 % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
59 % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
60 % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
61 % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman}
62 % \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength}
63 % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
64 % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase}
65 % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt}
66 % \DoNotIndex{\viipt,\vipt,\vskip,\vspace}
67 % \DoNotIndex{\wd,\xiipt,\year,\z@}
68 % \DoNotIndex{\HCode}
69 %
70 % \changes{v0.1}{2000/01/20}{First public release}
71 %
72 % \def\fileversion{v0.1}
73 % \def\filedate{2000/01/20}
74 % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package
75 % \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option
76 % \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file
77 % \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter
78 % \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle
79 % \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment
80 % \newcommand*{\texht}{\Lpack{TeX4ht}} ^^A typeset TeX4ht
81 %
82 % \title{The \Lpack{iso4ht} \texht{} package\thanks{This
83 % file has version number \fileversion, last revised
84 % \filedate.}}
85 %
86 % \author{%
87 % Peter Wilson\\
88 % Catholic University of America \\
89 % Now at \texttt{[email protected]}
90 % }
91 % \date{\filedate}
92 % \maketitle
93 % \begin{abstract}
94 % The \Lpack{iso4ht} package, in conjunction with \texht{}
95 % can be used to convert \LaTeX{}
96 % \Lpack{iso} class documents into HTML tagged documents.
97 % \end{abstract}
98 % \tableofcontents
99 %
100 % \StopEventually{}
101 %
102 %
103 %
104 % \section{Introduction}
105 %
106 % The \Lpack{iso4ht} package can be used in conjunction with
107 % the \texht{} system to convert \LaTeX{} \Lpack{iso} class documents
108 % into HTML tagged documents. The \Lpack{iso} class is for typesetting
109 % ISO standard documents~\cite{PRW96i}.
110 %
111 % Section~\ref{sec:usc} describes the package and
112 % commented source code for the package is in Section~\ref{sec:code}.
113 %
114 % This manual is typeset according to the conventions of the
115 % \LaTeX{} \textsc{docstrip} utility which enables the automatic
116 % extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}.
117 %
118 % \subsection{Acknowledgement}
119 %
120 % Development of the \Lpack{iso4ht} package would not have been possible
121 % without the help and expertise of Eitan Gurari, and in particular his
122 % willingness to put up with the many questions I asked.
123 %
124 %
125 % \section{The \Lpack{iso4ht} package} \label{sec:usc}
126 %
127 % The \texht{} system has been developed by Eitan Gurari (see Chapter~4
128 % and Appendix~B in~\cite{GOOSSENS99}. It is a general purpose conversion
129 % system to convert \LaTeX{} tagged documents into HTML (or other *ML)
130 % tagged documents. \texht{} can be obtained from
131 % \url{http://www.cis.ohio-state.edu/~gurari/TeX4ht/mn.html}.
132 % The \Lpack{iso4ht}
133 % package is not guaranteed to work with versions of \texht{} earlier
134 % than mid-January 2000. At the time of writing, the default \texht{}
135 % distribution was dated mid-1999. The latest version of \texht{} is obtainable
136 % from \url{http://www.cis.ohio-state.edu/~gurari/TeX4ht/bugfixes.html}.
137 %
138 % To use the \Lpack{iso4ht} package, just process the \LaTeX{} document
139 % as you would any other under \texht. That is, either call the |ht| script
140 % a document starting like:
141 % \begin{verbatim}
142 % \documentclass[...]{isov2}
143 % \usepackage[...]{tex4ht}
144 % ...
145 % \end{verbatim}
146 % or call the |htlatex| script on a document without the
147 % |\usepackage[...]{tex4ht}| line.
148 %
149 %
150 % \section{The package code} \label{sec:code}
151 %
152 % The following code is based on \Lpack{article.4ht}, \Lpack{html0.4ht},
153 % \Lpack{html32.4ht} and \Lpack{html4.4ht}, all written by Eitan Gurari.
154 %
155 % Most of the necessary work already exists in \Lpack{latex.4ht}, which
156 % sets up the \LaTeX{} kernel code. \Lpack{article.4ht} provides the
157 % setup for the \Lpack{article} class, and \Lpack{html0.4ht},
158 % \Lpack{html32.4ht} and \Lpack{html4.4ht} provide the HTML option-related
159 % configurations.
160 %
161 % The \Lpack{iso} class was originally based on the \Lpack{article} class,
162 % so \Lpack{isov2.4ht} is in turn based on \Lpack{article.4ht} (although little
163 % code is actually reused). The HTML option-related configurations are
164 % embedded in \Lpack{isov2.4ht} instead of being supplied as seperate files.
165 %
166 % \changes{v0.1}{2000/01/20}{First public release}
167 %
168 % Announce the name and version of the package.
169 % \begin{macrocode}
170 %<*usc>
171 \typeout{[isov2.4ht 2000/01/20 version v0.1]}
172
173 % \end{macrocode}
174 %
175 % \subsection{Setup and hooks}
176 %
177 % The first major part of the code deals with setting up for configuring
178 % the \LaTeX{} commands and environments, which forms the second major
179 % portion of the code.
180 %
181 % Setting up may involve adding hooks into commands, either by redefining
182 % them or, in simpler cases prepending and/or appending code before and/or
183 % after the original code. It can also involve specifying that commands
184 % are configurable.
185 %
186 % \subsubsection{Table of contents}
187 %
188 % What follows is a revised version of the \Lpack{article.4ht} setup
189 % for the |\tableofcontents|, |listoffigures| and |\listoftables| commands.
190 % Parctically all of the revision has to do with replacing \Lpack{article}
191 % sectioning commands (i.e., |\section|, |\subsection|, etc.)
192 % with the \Lpack{iso}
193 % sectioning commands (i.e., |\clause|, |\sclause|, etc.
194 %).
195 % \DescribeMacro{\listof}
196 % \begin{macrocode}
197 \NewConfigure{listof}{6}
198
199 % \end{macrocode}
200 %
201 % \DescribeMacro{\tableofcontents}
202 % The revised version of \Lpack{article.4ht} |\tableofcontents|
203 % configuration setup.
204 %
205 % Do the |tocdepth| setup.
206 % \begin{macrocode}
207 \def\:tableofcontents{\futurelet\:temp\:TOC}
208 \edef\:TOC{%
209 \noexpand\ifx [\noexpand\:temp
210 \noexpand\expandafter\noexpand\:TableOfContents
211 \noexpand\else
212 \noexpand\Auto:ent{%
213 \ifnum 1>\c@tocdepth\else clause,fibicl@use,likefibicl@use,normannex,infannex,repannex,\fi
214 \ifnum 2>\c@tocdepth \else sclause,\fi
215 \ifnum 3>\c@tocdepth \else ssclause,\fi
216 \ifnum 4>\c@tocdepth \else sssclause,\fi
217 \ifnum 5>\c@tocdepth \else ssssclause,\fi
218 \ifnum 6>\c@tocdepth \else sssssclause,\fi
219 UnDFexyz}%
220 \noexpand\fi}
221
222 \def\Auto:ent#1{%
223 \edef\auto:toc{\noexpand\:TableOfContents[\ifx \auto:toc\:UnDef
224 #1\else \auto:toc \fi]} \auto:toc
225 \global\let\auto:toc\:UnDef }
226
227 % \end{macrocode}
228 %
229 % Specify the various kinds of entries in the ToC.
230 % \begin{macrocode}
231 \def\tocnormannex#1#2#3{\par\annexname\ \toc:num{annex}{#1 (\normativename)}{#2}\par}%
232 \def\toclikenormannex#1#2#3{\par\:SPAN{likenormannexToc}{#2}\par}%
233 \def\tocinfannex#1#2#3{\par\annexname\ \toc:num{infannex}{#1 (\informativename)}{#2}\par}%
234 \def\toclikeinfannex#1#2#3{\par\:SPAN{likeinfannexToc}{#2}\par}%
235 \def\tocrepannex#1#2#3{\par\annexname\ \toc:num{annex}{#1}{#2}\par}%
236 \def\toclikerepannex#1#2#3{\par\:SPAN{likerepannexToc}{#2}\par}%
237 \def\tocfibicl@use#1#2#3{\par\:SPAN{fibicl@useToc}{#2}\par}%
238 \def\toclikefibicl@use#1#2#3{\par\:SPAN{likefibicl@useToc}{#2}\par}%
239 \def\tocclause#1#2#3{\par\toc:num{clause}{#1}{#2}\par}%
240 \def\toclikeclause#1#2#3{\par\:SPAN{likeclauseToc}{#2}\par}%
241 \def\tocsclause#1#2#3{\par\ \toc:num{sclause}{#1}{#2}\par}
242 \def\toclikesclause#1#2#3{\par\ \:SPAN{likesclauseToc}{#2}\par}
243 \def\tocssclause#1#2#3{\par
244 \ \ \toc:num{ssclause}{#1}{#2}\par}
245 \def\toclikessclause#1#2#3{\par
246 \ \ \:SPAN{likessclauseToc}{#2}\par}
247 \def\tocsssclause#1#2#3{\par\ \ \toc:num{sssclause}{#1}{#2}\par}
248 \def\toclikesssclause#1#2#3{\par\ \ \:SPAN{likesssclauseToc}{#2}\par}
249 \def\tocssssclause#1#2#3{\par
250 \ \ \ \ \toc:num{ssssclause}{#1}{#2}\par}
251 \def\toclikessssclause#1#2#3{\par
252 \ \ \ \ \:SPAN{likessssclauseToc}{#2}\par}
253 \def\tocsssssclause#1#2#3{\par
254 \ \ \ \ \ \toc:num{sssssclause}{#1}{#2}\par}
255 \def\toclikesssssclause#1#2#3{\par
256 \ \ \ \ \ \:SPAN{likesssssclauseToc}{#2}\par}
257 % \end{macrocode}
258 % There is also a special entry to cater for the |\title| command
259 % (see page~\pageref{titlehooks}).
260 % \begin{macrocode}
261 \def\toctitleclause#1#2#3{\par\toc:num{titleclause}{#1}{#2}\par}%
262 \def\tocliketitleclause#1#2#3{\par\:SPAN{liketitleclauseToc}{#2}\par}%
263
264 % \end{macrocode}
265 % The next bit is a straight copy of original \texht{} code.
266 % \begin{macrocode}
267 \def\toc:num#1#2#3{\def\:temp{#1#2}\:SPAN{#1Toc}{\ifx \:temp\empty \else
268 #2 \fi #3}}
269 \def\:tocs{\noexpand\:tableofcontents}
270 \pend:defIII\addcontentsline{%
271 \def\:temp{##1}\def\:tempa{toc}\ifx \:temp\:tempa
272 \gHAdvance\TitleCount 1 \fi }
273 \def\@dottedtocline#1#2#3#4#5{\hbox{\def\numberline##1{\e:listof
274 ##1\f:listof}\c:listof#4\d:listof}\ignorespaces}
275
276 % \end{macrocode}
277 %
278 % Setup the |\@starttoc| command.
279 % \begin{macrocode}
280 \def\@starttoc#1{%
281 \begingroup
282 \makeatletter \Configure{cite}{}{}%
283 \def\:temp{#1}\def\:tempa{toc}%
284 \a:listof\par
285 \@input{\jobname.\ifx \:temp\:tempa otc\else #1\fi}%
286 \b:listof
287 \if@filesw
288 \expandafter\expandafter\csname
289 newwrite\endcsname\csname tf@#1\endcsname
290 \immediate\openout \csname tf@#1\endcsname \jobname.#1\relax
291 \fi
292 \global\@nobreakfalse
293 \endgroup}
294
295 % \end{macrocode}
296 %
297 % The next chunk of code only applies for HTML.
298 % \begin{macrocode}
299 \ifHtml
300 \NewConfigure{tableofcontents*}[1]{\edef\auto:toc{#1}%
301 \ifx \au:StartSec\:UnDef
302 \let\au:StartSec\:StartSec
303 \def\:StartSec{\:tableofcontents
304 \global\let\auto:toc\:UnDef \:StartSec}
305 \pend:def\:tableofcontents{\gdef\:StartSec{\au:StartSec}}
306 \fi
307 }
308
309 % \end{macrocode}
310 %
311 % Define the various levels at which the document may be cut into seperate
312 % files (|\CutAt|) and at which points a ToC may be produced (|\TocAt|). \\
313 % \textbf{NOTE:} This may require modification to deal with the |\title|.
314 %
315 % Cut at the clause (and annex) level.
316 % \begin{macrocode}
317 \def\:tempa{
318 \CutAt{clause,likeclause,%
319 normannex,infannex,repannex,fibicl@use,likefibicl@use}
320 \CutAt{likeclause,clause,%
321 normannex,infannex,repannex,fibicl@use,likefibicl@use}
322 \Configure{tableofcontents*}{clause,likeclause,%
323 normannex,infannex,repannex,fibicl@use,likefibicl@use}
324 }
325
326 % \end{macrocode}
327 %
328 % Cut at the clause and subclause levels.
329 % \begin{macrocode}
330 \def\:tempb{
331 \TocAt*{clause,/likeclause,sclause,likesclause,%
332 normannex,infannex,repannex,fibicl@use,likefibicl@use}
333 \TocAt*{likeclause,/clause,sclause,likesclause,%
334 normannex,infannex,repannex,fibicl@use,likefibicl@use}
335 \CutAt{clause,likeclause,%
336 normannex,infannex,repannex,fibicl@use,likefibicl@use}
337 \CutAt{likeclause,clause,%
338 normannex,infannex,repannex,fibicl@use,likefibicl@use}
339 \Configure{tableofcontents*}{clause,likeclause,sclause,likesclause,%
340 ssclause,likessclause,%
341 normannex,infannex,repannex,fibicl@use,likefibicl@use}
342 }
343
344 % \end{macrocode}
345 %
346 % Cut at the clause, subclause, and subsubclause levels.
347 % \begin{macrocode}
348 \def\:tempc{
349 \TocAt*{clause,/likeclause,sclause,likesclause,ssclause,likessclause,%
350 normannex,infannex,repannex,fibicl@use,likefibicl@use}
351 \TocAt*{likeclause,/clause,sclause,likesclause,ssclause,likessclause,%
352 normannex,infannex,repannex,fibicl@use,likefibicl@use}
353 \CutAt{clause,likeclause,sclause,likesclause,%
354 normannex,infannex,repannex,fibicl@use,likefibicl@use}
355 \CutAt{likeclause,clause,sclause,likesclause,%
356 normannex,infannex,repannex,fibicl@use,likefibicl@use}
357 \Configure{tableofcontents*}{clause,likeclause,sclause,likesclause,%
358 ssclause,likessclause,sssclause,likesssclause,%
359 normannex,infannex,repannex,fibicl@use,likefibicl@use}
360 }
361
362 % \end{macrocode}
363 %
364 % Cut at the clause, subclause, subsubclause, and subsubsubclause levels.
365 % \begin{macrocode}
366 \def\:tempd{
367 \TocAt*{clause,/likeclause,sclause,likesclause,ssclause,likessclause,%
368 sssclause,likesssclause,%
369 normannex,infannex,repannex,fibicl@use,likefibicl@use}
370 \TocAt*{likeclause,/clause,sclause,likesclause,ssclause,likessclause,%
371 sssclause,likesssclause,%
372 normannex,infannex,repannex,fibicl@use,likefibicl@use}
373 \CutAt{clause,likeclause,sclause,likesclause,ssclause,likessclause,%
374 normannex,infannex,repannex,fibicl@use,likefibicl@use}
375 \CutAt{likeclause,clause,sclause,likesclause,ssclause,likessclause,%
376 normannex,infannex,repannex,fibicl@use,likefibicl@use}
377 \Configure{tableofcontents*}{clause,likeclause,sclause,likesclause,%
378 ssclause,likessclause,sssclause,likesssclause,%
379 ssssclause,likessssclause,%
380 normannex,infannex,repannex,fibicl@use,likefibicl@use}
381 }
382
383 % \end{macrocode}
384 %
385 % Now pick the cut levels appropriate for the cutting option.
386 % Option 4 generates the most cuts (down to subsubsubclauses) and option 1
387 % one the least (clauses and annexes only).
388 % \begin{macrocode}
389 \:CheckOption{4}
390 \if:Option
391 \:tempa \:tempb \:tempc \:tempd
392 \else\:CheckOption{3}
393 \if:Option
394 \:tempa \:tempb \:tempc
395 \else\:CheckOption{2}
396 \if:Option
397 \:tempa \:tempb
398 \else\:CheckOption{1}
399 \if:Option
400 \:tempa
401 \fi
402 \fi
403 \fi
404 \fi
405
406 \fi % end ifHtml
407
408 % \end{macrocode}
409 % That ends the HTML specific code.
410 %
411 % \DescribeMacro{\listoffigures}
412 % \DescribeMacro{\listoftables}
413 % The following code is copied from \Lpack{article.4ht}.
414 % \begin{macrocode}
415 \pend:def\listoffigures{\begingroup \a:listoffigures
416 \def\@starttoc{\:tableofcontents[lof]\:gobble}}
417 \append:def\listoffigures{\b:listoffigures \endgroup}
418 \pend:def\listoftables{\begingroup \a:listoftables
419 \def\@starttoc{\:tableofcontents[lot]\:gobble}}
420 \append:def\listoftables{\b:listoftables \endgroup}
421
422 \NewConfigure{listoffigures}{2}
423 \NewConfigure{listoftables}{2}
424
425 \def\toclot#1#2#3{\par\ \toc:num{table}{#1}{#2}\par}
426 \def\toclof#1#2#3{\par\ \toc:num{figure}{#1}{#2}\par}
427
428 % \end{macrocode}
429 %
430 %
431 % \subsubsection{Sectioning commands}
432 %
433 % This part of the code provides the setup for the sectioning commands.
434 %
435 % For an ISO document, the Title comes after the ToC, Foreword and
436 % Introduction.\label{titlehooks}
437 % The \Lpack{iso} |\title| command should really end
438 % any previous sectioning commands, and the easiest way to manage this
439 % seems to be by redefining the |\title| command in terms of a sectioning
440 % command. In order to do this, some new commands are required and some
441 % \Lpack{iso} commands redefined.
442 %
443 % Eventually, it is the sectioning command that gets configured instead
444 % of the |\title| command.
445 % Another reason for doing things this way is that elsewhere, for
446 % a package under the \Lpack{iso} class, I will
447 % be configuring a different |\title| command and I will be able to use
448 % this as a basis for that configuration.
449 %
450 % \DescribeMacro{\introelement}
451 % \DescribeMacro{\compelement}
452 % These require redefining as, for reasons I don't understand, the system
453 % falls over when it tries to process the \Lpack{iso} |\isoemptystring|
454 % command. This is replaced by a more direct test.
455 % \begin{macrocode}
456 \renewcommand{\introelement}[1]{\ifx\empty#1\else {#1 ---\newline}\fi}
457 \renewcommand{\compelement}[1]{\ifx\empty#1\else { ---\newline #1}\fi}
458
459 % \end{macrocode}
460 %
461 % \DescribeMacro{\titleclause}
462 % A `clause' for typesetting (in \texht{} only) the title. This should make
463 % no entry in the ToC. There is no typeset number, so life is a bit simpler
464 % than when normally defining sectioning commands.
465 % \begin{macrocode}
466 \newcommand{\titleclause}{%
467 \@startsection{titleclause}{100}% large level to avoid adding to ToC
468 {\z@}%
469 {\beforecskip}%
470 {\aftercskip}%
471 {\raggedright\Tfont\bfseries}}
472
473 % \end{macrocode}
474 %
475 % \DescribeMacro{\title}
476 % Now redefine the original |\title| command in terms of |\titleclause*|.
477 % \begin{macrocode}
478 \renewcommand{\title}[3]{%
479 \setcounter{clause}{0}
480 \gdef\thetitle{\introelement{#1} %
481 \mainelement{#2} %
482 \compelement{#3}}
483 \titleclause*{\thetitle}}
484
485 % \end{macrocode}
486 %
487 % Do the |\title| `clause' hooks.
488 % \begin{macrocode}
489 \let\no@titleclause\titleclause
490 \Def:Section\titleclause{}{#1}
491 \let\no:titleclause\titleclause
492 \def\titleclause{\rdef:sec{titleclause}}
493 \Def:Section\liketitleclause{}{#1}
494 \let\:liketitleclause\liketitleclause
495 \let\liketitleclause\:UnDef
496
497 % \end{macrocode}
498 %
499 %
500 % Add the hooks for the normal sectioning commands. This is a revision of code
501 % in \Lpack{article.4ht}.
502 % \begin{macrocode}
503 \let\no@clause\clause
504 \Def:Section\clause{\ifnum \c:secnumdepth>\c@secnumdepth \else
505 \theclause \fi}{#1}
506 \let\no:clause\clause
507 \def\clause{\rdef:sec{clause}}
508 \Def:Section\likeclause{}{#1}
509 \let\:likeclause\likeclause
510 \let\likeclause\:UnDef
511
512 \let\no@sclause\sclause
513 \Def:Section\sclause{\ifnum \c:secnumdepth>\c@secnumdepth \else
514 \thesclause \fi}{#1}
515 \let\no:sclause\sclause
516 \def\sclause{\rdef:sec{sclause}}
517 \Def:Section\likesclause{}{#1}
518 \let\:likesclause\likesclause
519 \let\likesclause\:UnDef
520
521 \let\no@ssclause\ssclause
522 \Def:Section\ssclause{\ifnum \c:secnumdepth>\c@secnumdepth \else
523 \thessclause \fi}{#1}
524 \let\no:ssclause\ssclause
525 \def\ssclause{\rdef:sec{ssclause}}
526 \Def:Section\likessclause{}{#1}
527 \let\:likessclause\likessclause
528 \let\likessclause\:UnDef
529
530 \let\no@sssclause\sssclause
531 \Def:Section\sssclause{\ifnum \c:secnumdepth>\c@secnumdepth \else
532 \thesssclause \fi}{#1}
533 \let\no:sssclause\sssclause
534 \def\sssclause{\rdef:sec{sssclause}}
535 \Def:Section\likesssclause{}{#1}
536 \let\:likesssclause\likesssclause
537 \let\likesssclause\:UnDef
538
539 \let\no@ssssclause\ssssclause
540 \Def:Section\ssssclause{\ifnum \c:secnumdepth>\c@secnumdepth \else
541 \thessssclause \fi}{#1}
542 \let\no:ssssclause\ssssclause
543 \def\ssssclause{\rdef:sec{ssssclause}}
544 \Def:Section\likessssclause{}{#1}
545 \let\:likessssclause\likessssclause
546 \let\likessssclause\:UnDef
547
548 \let\no@sssssclause\sssssclause
549 \Def:Section\sssssclause{\ifnum \c:secnumdepth>\c@secnumdepth \else
550 \thesssssclause \fi}{#1}
551 \let\no:sssssclause\sssssclause
552 \def\sssssclause{\rdef:sec{sssssclause}}
553 \Def:Section\likesssssclause{}{#1}
554 \let\:likesssssclause\likesssssclause
555 \let\likesssssclause\:UnDef
556
557 \let\no@fibicl@use\fibicl@use
558 \Def:Section\fibicl@use{}{#1}
559 \let\no:fibicl@use\fibicl@use
560 \def\fibicl@use{\rdef:sec{fibicl@use}}
561 \Def:Section\likefibicl@use{}{#1}
562 \let\:likefibicl@use\likefibicl@use
563 \let\likefibicl@use\:UnDef
564
565 \def\@normannex#1{%
566 \tocskip{\tocentryskip}
567 \SkipRefstepAnchor
568 \addcontentsline{toc}{annex}{\annexname\space\theannex\space(\normativename)\space#1}%
569 \csname @endnormannex\endcsname}
570
571 \let\:tempb\normannex
572 \Def:Section\normannex{\theannex}{#1}
573 \let\:normannex\normannex
574 \let\normannex\:tempb
575 \let\no@normannex\@normannex
576 \def\@normannex#1{%
577 {\let\addcontentsline\:gobbleIII\no@normannex{#1}}%
578 \HtmlEnv \Toc:Title{#1}\:normannex{#1}}
579
580 \def\@infannex#1{%
581 \tocskip{\tocentryskip}
582 \SkipRefstepAnchor
583 \addcontentsline{toc}{annex}{\annexname\space\theannex\space(\informativename)\space#1}%
584 \csname @endinfannex\endcsname}
585
586 \let\:tempb\infannex
587 \Def:Section\infannex{\theannex}{#1}
588 \let\:infannex\infannex
589 \let\infannex\:tempb
590 \let\no@infannex\@infannex
591 \def\@infannex#1{%
592 {\let\addcontentsline\:gobbleIII\no@infannex{#1}}%
593 \HtmlEnv \Toc:Title{#1}\:infannex{#1}}
594
595 \def\@repannex#1{%
596 \tocskip{\tocentryskip}
597 \SkipRefstepAnchor
598 \addcontentsline{toc}{annex}{\annexname\space\theannex\space#1}%
599 \csname @endrepannex\endcsname}
600
601 \let\:tempb\repannex
602 \Def:Section\repannex{\theannex}{#1}
603 \let\:repannex\repannex
604 \let\repannex\:tempb
605 \let\no@repannex\@repannex
606 \def\@repannex#1{%
607 {\let\addcontentsline\:gobbleIII\no@repannex{#1}}%
608 \HtmlEnv \Toc:Title{#1}\:repannex{#1}}
609
610 % \end{macrocode}
611 %
612 % Specify which sectioning commands end which kinds of section.
613 % \begin{macrocode}
614 \Configure{endtitleclause}
615 {clause,likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
616 \Configure{endliketitleclause}
617 {clause,likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
618
619 \Configure{endclause}
620 {likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
621 \Configure{endlikeclause}
622 {clause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
623
624 \Configure{endsclause}
625 {likesclause,%
626 clause,likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
627 \Configure{endlikesclause}
628 {sclause,%
629 clause,likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
630
631 \Configure{endssclause}
632 {likessclause,sclause,likesclause,%
633 clause,likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
634 \Configure{endlikessclause}
635 {ssclause,sclause,likesclause,%
636 clause,likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
637
638 \Configure{endsssclause}
639 {likesssclause,ssclause,likessclause,sclause,likesclause,%
640 clause,likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
641 \Configure{endlikesssclause}
642 {sssclause,ssclause,likessclause,sclause,likesclause,%
643 clause,likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
644
645 \Configure{endssssclause}
646 {likessssclause,likesssclause,ssclause,likessclause,sclause,likesclause,%
647 clause,likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
648 \Configure{endlikessssclause}
649 {ssssclause,likesssclause,ssclause,likessclause,sclause,likesclause,%
650 clause,likeclause,fibicl@use,likefibicl@use,normannex,infannex,repannex}
651
652 \Configure{endfibicl@use}{fibicl@use,endlikefibicl@use,clause,likeclause}
653 \Configure{endlikefibicl@use}{fibicl@use,endlikefibicl@use,clause,likeclause}
654
655 \Configure{endnormannex}{normannex,infannex,repannex,fibicl@use,likefibicl@use}
656 \Configure{endinfannex}{normannex,infannex,repannex,fibicl@use,likefibicl@use}
657 \Configure{endrepannex}{normannex,infannex,repannex,fibicl@use,likefibicl@use}
658
659 % \end{macrocode}
660 %
661 % \subsubsection{Miscellaneous}
662 %
663 % \DescribeMacro{\caption}
664 % \DescribeMacro{\@makecaption}
665 % We have to add configuration hooks and code for captions.
666 % \begin{macrocode}
667 \NewConfigure{caption}[4]{\c:def\cptA:{#1}\c:def\cptB:{#2}%
668 \c:def\cptC:{#3}\c:def\cptD:{#4}}
669 \long\def\@makecaption#1#2{%
670 {\cptA: \cap:ref{#1}%
671 \cptB:}{\cptC:{#2}\cptD:}}
672 \pend:def\caption{\SkipRefstepAnchor}
673
674 % \end{macrocode}
675 %
676 % \DescribeMacro{\theindex}
677 % |\theindex| is redefined to cater for the difference between printed
678 % documents with page numbers and HTML documents. This is a copy of the code
679 % in \Lpack{article.4ht}.
680 % \begin{macrocode}
681 \long\def\c:theindex:#1#2#3#4#5#6#7#8#9{%
682 \def\theindex{%
683 \def\idx:item{\SaveEverypar\everypar{}#1}%
684 \def\endtheindex{\idx:item#2\RecallEverypar}%
685 \def\item{\idx:item\let\index\@gobble #3\def\idx:item{#4}}%
686 \def\subitem{\idx:item\let\index\@gobble #5\def\idx:item{#6}}%
687 \def\subsubitem{\idx:item\let\index\@gobble #7\def\idx:item{#8}}}%
688 \def\indexspace{\idx:item#9\let\idx:item\empty}}
689
690 % \end{macrocode}
691 %
692 %
693 % \DescribeEnv{quote}
694 % \DescribeEnv{quotation}
695 % A copy of the code from \Lpack{article.4ht}.
696 % \begin{macrocode}
697 \append:def\quote{\par\@totalleftmargin\z@}
698 \append:def\quotation{\a:quotation\par\@totalleftmargin\z@}
699 \NewConfigure{quotation}{1}
700
701 % \end{macrocode}
702 %
703 %
704 % \DescribeMacro{\thefootnote}
705 % The default \texht{} treatment of footnotes is to put each one into a
706 % seperate file. In the \Lpack{iso} case I want to have the footnote text
707 % in the same file as the body of the document. Eitan Gurari suggested
708 % the method implemented here to override the default
709 % (see also page~\pageref{footpage}).
710 % \begin{macrocode}
711 \renewcommand{\thefootnote}{\arabic{footnote}\csname PRNT\endcsname}
712
713 % \end{macrocode}
714 %
715 %
716 % \subsection{Configuration}
717 %
718 % All, or nearly all, configurations depend on the HTML level option chosen.
719 % Typically, html0 results in empty or null values of the hooks. html32 has
720 % some simple hook vaules, while html4 are the most complex.
721 %
722 % \subsubsection{Table of contents}
723 %
724 % The ToC configuration is basically a copy of the relevant code from
725 % \Lpack{html0.4ht}, \Lpack{html32.4ht} and \Lpack{html4.4ht}, from the
726 % \texttt{article} section of each of those.
727 %
728 % \begin{macro}{\listof}
729 % \begin{macro}{\lof}
730 % \begin{macro}{\lot}
731 % I'm not sure what |\listof| does, but it is related to the ToC, LoF and LoT.
732 % \begin{macrocode}
733 \:CheckOption{0.0}
734 \if:Option
735 %%%% Do html0
736 \ConfigureToc{lof}{\empty}{ }{}{}
737 \ConfigureToc{lot}{\empty}{ }{}{}
738 \else
739 \:CheckOption{3.2}
740 \if:Option
741 %%%% Do html32
742 {\Configure{Needs}{Font\string_Size: #1}\ifcase \@ptsize
743 \or \Needs{11}\or \Needs{12}\else \fi}
744 \Configure{listof}{}{}{}{\HCode{<br\xml:empty>}}{}{}
745 \ConfigureToc{lof}{\empty}{\ }{}{\HCode{<br\xml:empty>}}
746 \ConfigureToc{lot}{\empty}{\ }{}{\HCode{<br\xml:empty>}}
747 \else
748 %%%% Do html4
749 {\Configure{Needs}{Font\string_Size: #1}\ifcase \@ptsize
750 \or \Needs{11}\or \Needs{12}\else \fi}
751 \Configure{listof}{}{}{}{\HCode{<br\xml:empty>}}{}{}
752 \ConfigureToc{lof}
753 {\HCode{<span class="lofToc">}}{\ }{}{\HCode{</span><br\xml:empty>}}
754 \ConfigureToc{lot}
755 {\HCode{<span class="lotToc">}}{\ }{}{\HCode{</span><br\xml:empty>}}
756 \fi
757 \fi
758
759 % \end{macrocode}
760 % \end{macro}
761 % \end{macro}
762 % \end{macro}
763 %
764 % \subsubsection{Sectioning commands}
765 %
766 % Configure the sectioning commands, HTML option dependent.
767 %
768 % \begin{macro}{\titleclause}
769 % \begin{macro}{\titleclause*}
770 % \begin{macro}{\clause}
771 % \begin{macro}{\clause*}
772 % \begin{macro}{\sclause}
773 % \begin{macro}{\sclause*}
774 % \begin{macro}{\ssclause}
775 % \begin{macro}{\ssclause*}
776 % \begin{macro}{\sssclause}
777 % \begin{macro}{\sssclause*}
778 % \begin{macro}{\ssssclause}
779 % \begin{macro}{\ssssclause*}
780 % \begin{macro}{\sssssclause}
781 % \begin{macro}{\sssssclause*}
782 % \begin{macro}{\fibicl@use}
783 % \begin{macro}{\fibicl@use*}
784 % \begin{macro}{\normannex}
785 % \begin{macro}{\infannex}
786 % \begin{macro}{\repannex}
787 % This code is based on the \Lpack{article} sectioning configuration. In most
788 % cases only the sectioning names have been changed. The annexes have a
789 % style of their own, though.
790 % \begin{macrocode}
791 \:CheckOption{0.0}
792 \if:Option
793 % \end{macrocode}
794 %
795 % HTML option 0.0
796 % \begin{macrocode}
797 %%%% Do html0
798 \Configure{titleclause}{}{}{}{}
799 \Configure{liketitleclause}{}{}{}{}
800 \Configure{clause}{}{}{\theclause\space}{}
801 \Configure{likeclause}{}{}{}{}
802 \Configure{sclause}{}{}{\thesclause\space}{}
803 \Configure{likesclause}{}{}{}{}
804 \Configure{ssclause}{}{}{\thessclause\space}{}
805 \Configure{likessclause}{}{}{}{}
806 \Configure{sssclause}{}{}{\thesssclause\space}{}
807 \Configure{likesssclause}{}{}{}{}
808 \Configure{ssssclause}{}{}{\thessssclause\space}{}
809 \Configure{likessssclause}{}{}{}{}
810 \Configure{sssssclause}{}{}{\thesssssclause\space}{}
811 \Configure{likesssssclause}{}{}{}{}
812 \Configure{fibicl@use}{}{}{}{}
813 \Configure{likefibicl@use}{}{}{}{}
814 \Configure{normannex}{}{}
815 {\annexname~\theannex~(\normativename)\space}{}
816 \Configure{infannex}{}{}
817 {\annexname~\theannex~(\informativename)\space}{}
818 \Configure{repannex}{}{}
819 {\annexname~\theannex\space}{}
820
821 \else
822 \:CheckOption{3.2}
823 \if:Option
824 % \end{macrocode}
825 %
826 % HTML option 3.2
827 % \begin{macrocode}
828 %%%% Do html3
829 \Configure{titleclause}{}{}
830 {\IgnorePar\HCode{<h1 class="titleHead">}}
831 {\HCode{</h1>}\NoIndent \par}
832 \Configure{titleclauseTITLE+}{#1}
833 \Configure{liketitleclause}{}{}
834 {\IgnorePar\HCode{<h1 class="titleHead">}}
835 {\HCode{</h1>}\NoIndent \par}
836
837 \Configure{clause}{}{}
838 {\IgnorePar\HCode{<h3 class="clauseHead">}
839 \ifnum \c:secnumdepth>\c@secnumdepth
840 \else \theclause \space \fi}
841 {\HCode{</h3>}\NoIndent \par}
842 \Configure{clauseTITLE+}{\theclause\space#1}
843 \Configure{likeclause}{}{}
844 {\IgnorePar\HCode{<h3 class="likeclauseHead">}}
845 {\HCode{</h3>}\NoIndent \par}
846
847 \Configure{sclause}{}{}
848 {\bgroup \IgnorePar\HCode{<h4 class="sclauseHead">}
849 \ifnum \c:secnumdepth>\c@secnumdepth
850 \else \thesclause \space \fi}
851 {\HCode{</h4>}\NoIndent\egroup}
852 \Configure{sclauseTITLE+}{\thesclause \space#1}
853 \Configure{likesclause}{}{}
854 {\bgroup \IgnorePar\HCode{<h4 class="likesclauseHead">}}
855 {\HCode{</h4>}\NoIndent\egroup}
856
857 \Configure{ssclause}{}{}
858 {\bgroup \IgnorePar\HCode{<h5 class="ssclauseHead">}
859 \ifnum \c:secnumdepth>\c@secnumdepth
860 \else \thessclause \space \fi}
861 {\HCode{</h5>}\NoIndent\egroup}
862 \Configure{likessclause}{}{}
863 {\bgroup \IgnorePar\HCode{<h5 class="likessclauseHead">}}
864 {\HCode{</h5>}\NoIndent\egroup}
865 \Configure{ssclauseTITLE+}{\thessclause \space#1}
866
867 \Configure{sssclause}{}{}
868 {\ShowPar\NoIndent\HCode{<span class="sssclauseHead">}\begingroup\bf
869 \thesssclause\space}
870 {\endgroup\HCode{</span>}\IgnorePar}
871 \Configure{likesssclause}{}{}
872 {\ShowPar\NoIndent\HCode{<span class="likesssclauseHead">}}
873 {\HCode{</span>}\IgnorePar}
874 \Configure{sssclauseTITLE+}{\thesssclause \space#1}
875
876 \Configure{ssssclause}{}{}
877 {\ShowPar\HCode{<span class="ssssclauseHead">}\begingroup\bf
878 \thessssclause\space}
879 {\endgroup\HCode{</span>}\IgnorePar}
880 \Configure{likessssclause}{}{}
881 {\ShowPar\HCode{<span class="likssssclauseHead">}\begingroup\bf}
882 {\endgroup\HCode{</span>}\IgnorePar}
883 \Configure{ssssclauseTITLE+}{\thessssclause \space#1}
884
885 \Configure{sssssclause}{}{}
886 {\ShowPar\HCode{<span class="sssssclauseHead">}\begingroup\bf
887 \thesssssclause\space}
888 {\endgroup\HCode{</span>}\IgnorePar}
889 \Configure{likesssssclause}{}{}
890 {\ShowPar\HCode{<span class="liksssssclauseHead">}\begingroup\bf}
891 {\endgroup\HCode{</span>}\IgnorePar}
892 \Configure{sssssclauseTITLE+}{\thesssssclause \space#1}
893
894 \Configure{fibicl@use}{}{}
895 {\IgnorePar\HCode{<h3 class="fibicl@useHead">}}
896 {\HCode{</h3>}\NoIndent \par}
897 \Configure{fibicl@useTITLE+}{#1}
898 \Configure{likefibicl@use}{}{}
899 {\IgnorePar\HCode{<h3 class="likefibicl@useHead">}}
900 {\HCode{</h3>}\NoIndent \par}
901
902 \Configure{normannex}{}{}
903 {\IgnorePar\HCode{<h3 class="normannexHead">}
904 \annexname\ \theannex\ (\normativename)\HCode{<BR\xml:empty>}}
905 {\HCode{</h3>}\NoIndent \par}
906 \Configure{normannexTITLE+}{\annexname\space \theannex\space (\normativename)\space #1}
907
908 \Configure{infannex}{}{}
909 {\IgnorePar\HCode{<h3 class="infannexHead">}
910 \annexname\ \theannex\ (\informativename)\HCode{<BR\xml:empty>}}
911 {\HCode{</h3>}\NoIndent \par}
912 \Configure{infannexTITLE+}{\annexname\space \theannex\space (\informativename)\space #1}
913
914 \Configure{repannex}{}{}
915 {\IgnorePar\HCode{<h3 class="repannexHead">}
916 \annexname\ \theannex\ \HCode{<BR\xml:empty>}}
917 {\HCode{</h3>}\NoIndent \par}
918 \Configure{repannexTITLE+}{\annexname\space \theannex\space #1}
919
920 \else
921 % \end{macrocode}
922 %
923 % HTML default option (4.0)
924 % \begin{macrocode}
925 %%%% Do html4
926 \Configure{titleclause}{}{}
927 {\IgnorePar \EndP\IgnorePar\HCode{<h1 class="titleHead">}}
928 {\HCode{</h1>}\NoIndent \par}
929 \Configure{titleclauseTITLE+}{#1}
930 \Configure{liketitleclause}{}{}
931 {\IgnorePar \EndP\IgnorePar\HCode{<h1 class="titleHead">}}
932 {\HCode{</h1>}\NoIndent \par}
933
934 \Configure{clause}{}{}
935 {\IgnorePar \EndP\IgnorePar\HCode{<h3 class="clauseHead">}
936 \ifnum \c:secnumdepth>\c@secnumdepth
937 \else \theclause \space \fi}
938 {\HCode{</h3>}\NoIndent \par}
939 \Configure{clauseTITLE+}{\theclause\space#1}
940 \Configure{likeclause}{}{}
941 {\IgnorePar \EndP\IgnorePar\HCode{<h3 class="likeclauseHead">}}
942 {\HCode{</h3>}\NoIndent \par}
943
944 \Configure{sclause}{}{}
945 {\EndP\bgroup \IgnorePar\HCode{<h4 class="sclauseHead">}
946 \ifnum \c:secnumdepth>\c@secnumdepth
947 \else \thesclause \space \fi}
948 {\HCode{</h4>}\NoIndent\egroup}
949 \Configure{sclauseTITLE+}{\thesclause \space#1}
950 \Configure{likesclause}{}{}
951 {\EndP\bgroup \IgnorePar\HCode{<h4 class="likesclauseHead">}}
952 {\HCode{</h4>}\NoIndent\egroup}
953
954 \Configure{ssclause}{}{}
955 {\EndP\bgroup \IgnorePar\HCode{<h5 class="ssclauseHead">}
956 \ifnum \c:secnumdepth>\c@secnumdepth
957 \else \thessclause \space \fi}
958 {\HCode{</h5>}\NoIndent\egroup}
959 \Configure{likessclause}{}{}
960 {\EndP\bgroup \IgnorePar\HCode{<h5 class="likessclauseHead">}}
961 {\HCode{</h5>}\NoIndent\egroup}
962 \Configure{ssclauseTITLE+}{\thessclause \space#1}
963
964 \Configure{sssclause}{}{}
965 {\ShowPar\NoIndent\HCode{<span class="sssclauseHead">}\begingroup\bf
966 \thesssclause\space}
967 {\endgroup\HCode{</span>}\IgnorePar}
968 \Configure{likesssclause}{}{}
969 {\ShowPar\NoIndent\HCode{<span class="likesssclauseHead">}}
970 {\HCode{</span>}\IgnorePar}
971 \Css{.sssclauseHead, .likesssclauseHead
972 { margin-top:2em; font-weight: bold;}}
973
974 \Configure{ssssclause}{}{}
975 {\ShowPar\HCode{<span class="ssssclauseHead">}\begingroup\bf
976 \thessssclause\space}
977 {\endgroup\HCode{</span>}\IgnorePar}
978 \Configure{likessssclause}{}{}
979 {\ShowPar\HCode{<span class="likssssclauseHead">}\begingroup\bf}
980 {\endgroup\HCode{</span>}\IgnorePar}
981 \Css{.ssssclauseHead, .likessssclauseHead
982 { font-weight: bold;}}
983
984 \Configure{sssssclause}{}{}
985 {\ShowPar\HCode{<span class="sssssclauseHead">}\begingroup\bf
986 \thesssssclause\space}
987 {\endgroup\HCode{</span>}\IgnorePar}
988 \Configure{likesssssclause}{}{}
989 {\ShowPar\HCode{<span class="liksssssclauseHead">}\begingroup\bf}
990 {\endgroup\HCode{</span>}\IgnorePar}
991 \Css{.sssssclauseHead, .likesssssclauseHead
992 { font-weight: bold;}}
993
994 \Configure{fibicl@use}{}{}
995 {\IgnorePar\EndP \IgnorePar\HCode{<h3 class="fibicl@useHead">}}
996 {\HCode{</h3>}\NoIndent \par}
997 \Configure{fibicl@useTITLE+}{#1}
998 \Configure{likefibicl@use}{}{}
999 {\IgnorePar\EndP \IgnorePar\HCode{<h3 class="likefibicl@useHead">}}
1000 {\HCode{</h3>}\NoIndent \par}
1001
1002 \Configure{normannex}{}{}
1003 {\IgnorePar \EndP\IgnorePar\HCode{<h3 class="normannexHead">}
1004 \annexname\ \theannex\ (\normativename)\HCode{<BR\xml:empty>}}
1005 {\HCode{</h3>}\NoIndent \par}
1006 \Configure{normannexTITLE+}{\annexname\space \theannex\space (\normativename)\space #1}
1007 \Css{h3.normannexHead{text-align: center}}
1008
1009 \Configure{infannex}{}{}
1010 {\IgnorePar\EndP \IgnorePar\HCode{<h3 class="infannexHead">}
1011 \annexname\ \theannex\ (\informativename)\HCode{<BR\xml:empty>}}
1012 {\HCode{</h3>}\NoIndent \par}
1013 \Configure{infannexTITLE+}{\annexname\space \theannex\space (\informativename)\space #1}
1014 \Css{h3.infannexHead{text-align: center}}
1015
1016 \Configure{repannex}{}{}
1017 {\IgnorePar\EndP \IgnorePar\HCode{<h3 class="repannexHead">}
1018 \annexname\ \theannex\ \HCode{<BR\xml:empty>}}
1019 {\HCode{</h3>}\NoIndent \par}
1020 \Configure{repannexTITLE+}{\annexname\space \theannex\space #1}
1021 \Css{h3.repannexHead{text-align: center}}
1022
1023 \fi
1024 \fi
1025
1026 % \end{macrocode}
1027 %
1028 % Reconfigure sectioning if not HTML.
1029 % \begin{macrocode}
1030 \ifHtml \else
1031 \ifx\bf\:UnDef
1032 \def\bf{\normalfont\bfseries}
1033 \fi
1034 \Configure{titleclause}{\begingroup\bf}{\endgroup}
1035 \Configure{liketitleclause}{\begingroup\bf}{\endgroup}
1036 \Configure{clause}{}{}{\begingroup\bf\theclause\space}{\endgroup}
1037 \Configure{likeclause}{}{}{\begingroup\bf}{\endgroup}
1038 \Configure{sclause}{}{}{\begingroup\bf\thesclause\space}{\endgroup}
1039 \Configure{likesclause}{}{}{\begingroup\bf}{\endgroup}
1040 \Configure{ssclause}{}{}{\begingroup\bf\thessclause\space}{\endgroup}
1041 \Configure{likessclause}{}{}{\begingroup\bf}{\endgroup}
1042 \Configure{sssclause}{}{}
1043 {\begingroup\bf\thesssclause\space}{\endgroup}
1044 \Configure{likesssclause}{}{}{\begingroup\bf}{\endgroup}
1045 \Configure{ssssclause}{}{}
1046 {\begingroup\it\thessssclause\space}{\endgroup}
1047 \Configure{likessssclause}{}{}
1048 {\begingroup\it}{\endgroup}
1049 \Configure{sssssclause}{}{}
1050 {\begingroup\it\thesssssclause\space}{\endgroup}
1051 \Configure{likesssssclause}{}{}
1052 {\begingroup\it}{\endgroup}
1053 \Configure{fibicl@use}{}{}{\begingroup\bf}{\endgroup}
1054 \Configure{likefibicl@use}{}{}{\begingroup\bf}{\endgroup}
1055 \Configure{normannex}{}{}
1056 {\begingroup\bf \annexname~\theannex~(\normativename)\space}{\endgroup}
1057 \Configure{infannex}{}{}
1058 {\begingroup\bf \annexname~\theannex~(\informativename)\space}{\endgroup}
1059 \Configure{repannex}{}{}
1060 {\begingroup\bf v\annexname~\theannex\space}{\endgroup}
1061 \fi
1062
1063 % \end{macrocode}
1064 % \end{macro}
1065 % \end{macro}
1066 % \end{macro}
1067 % \end{macro}
1068 % \end{macro}
1069 % \end{macro}
1070 % \end{macro}
1071 % \end{macro}
1072 % \end{macro}
1073 % \end{macro}
1074 % \end{macro}
1075 % \end{macro}
1076 % \end{macro}
1077 % \end{macro}
1078 % \end{macro}
1079 % \end{macro}
1080 % \end{macro}
1081 % \end{macro}
1082 % \end{macro}
1083 %
1084 % \subsubsection{Miscellaneous}
1085 %
1086 % \begin{macro}{\caption}
1087 % Configure the |\caption| command.
1088 % \begin{macrocode}
1089 \:CheckOption{0.0}
1090 \if:Option
1091 % \end{macrocode}
1092 % The html0 option is in effect.
1093 % \begin{macrocode}
1094 %%%% Do html0
1095 \Configure{caption}{}{}{}{}
1096 \else
1097 \:CheckOption{3.2}
1098 \if:Option
1099 % \end{macrocode}
1100 % The html32 option is in effect.
1101 % \begin{macrocode}
1102 %%%% Do html32
1103 \Configure{caption}{\HCode{\if:nopar \else <br\xml:empty>\fi
1104 <div align="center"><table\Hnewline>
1105 <tr valign="bottom"><td nowrap><strong>}}
1106 {} {\HCode{</strong></td><td \Hnewline}}
1107 {\HCode{</td></tr></table></div>}}
1108 \else
1109 % \end{macrocode}
1110 % The html4 option
1111 % (the default, unless specifically overridden by html0 or html32)
1112 % is in effect.
1113 % \begin{macrocode}
1114 %%%% Do html4
1115 \Configure{caption}{\HCode{\if:nopar \else <br\xml:empty>\fi}
1116 \:xhtml{\IgnorePar\EndP}\HCode{<div align="center"
1117 class="caption"><table class="caption"\Hnewline><tr
1118 valign="baseline" class="caption"><td class="id">}}
1119 {: } {\HCode{</td><td \Hnewline class="content">}}
1120 {\HCode{</td></tr></table></div>}}
1121 \Css{.caption td.id{font-weight: bold; white-space: nowrap; }}
1122 \fi
1123 \fi
1124
1125 % \end{macrocode}
1126 % \end{macro}
1127 %
1128 % \begin{environment}{theindex}
1129 % Copy of original \texht{} code. There are 9 hooks for possible
1130 % configuration.
1131 % \begin{macrocode}
1132 \:CheckOption{0.0}
1133 \if:Option
1134 %%%% Do html0
1135 \Configure{theindex}{}{}{}{}{}{}{}{}{}
1136 \else
1137 \:CheckOption{3.2}
1138 \if:Option
1139 %%%% Do html32
1140 \Configure{theindex}
1141 {\HCode{<div>}}
1142 {\HCode{</div>}}
1143 {}
1144 {\HCode{<br\xml:empty>}\hfil\break}
1145 {\ \ \ \ }
1146 {\HCode{<br\xml:empty>}\hfil\break}
1147 {\ \ \ \ \ \ \ \ }
1148 {\HCode{<br\xml:empty>}\hfil\break}
1149 {\hbox{\HCode{<p>}}}
1150 \else
1151 %%%% Do html4
1152 \Configure{theindex}
1153 {\HCode{<div class="theindex">}\let\end:theidx\empty}
1154 {\end:theidx\HCode{</div>}}
1155 {}
1156 {\HCode{<br\xml:empty>}\hfil\break}
1157 {\ \ \ \ }
1158 {\HCode{<br\xml:empty>}\hfil\break}
1159 {\ \ \ \ \ \ \ \ }
1160 {\HCode{<br\xml:empty>}\hfil\break}
1161 {\hbox{\end:theidx\HCode{<p class="theindex">}}%
1162 \def\end:theidx{\HCode{</p>}}}
1163 \fi
1164 \fi
1165
1166 % \end{macrocode}
1167 % \end{environment}
1168 %
1169 % \begin{environment}{quotation}
1170 % \begin{environment}{quote}
1171 % \begin{environment}{anote}
1172 % \begin{environment}{note}
1173 % \begin{environment}{anexample}
1174 % \begin{environment}{example}
1175 % These are all quotation-like environments. |quotation| and |quote|
1176 % are original \texht, while the others are specifically for \Lpack{iso}.
1177 % \begin{macrocode}
1178 \:CheckOption{0.0}
1179 \if:Option
1180 %%%% Do html0
1181 \ConfigureEnv{quotation}{}{}{}{}
1182 \ConfigureEnv{quote}{}{}{}{}
1183 \ConfigureEnv{anote}{}{}{}{}
1184 \ConfigureEnv{note}{}{}{}{}
1185 \ConfigureEnv{anexample}{}{}{}{}
1186 \ConfigureEnv{example}{}{}{}{}
1187 \else
1188 \:CheckOption{3.2}
1189 \if:Option
1190 %%%% Do html32
1191 \ConfigureEnv{quotation}{}{}{\start:env{quotation}}{\end:env}
1192 \ConfigureEnv{quote}{}{}{\start:env{quote}}{\end:env}
1193 \ConfigureEnv{anote}{\HCode{<blockquote>}}{\HCode{</blockquote>}}%
1194 {\start:env{anote}}{\end:env}
1195 \ConfigureEnv{note}{\HCode{<blockquote>}}{\HCode{</blockquote>}}%
1196 {\start:env{note}}{\end:env}
1197 \ConfigureEnv{anexample}{\HCode{<blockquote>}}{\HCode{</blockquote>}}%
1198 {\start:env{anexample}}{\end:env}
1199 \ConfigureEnv{example}{\HCode{<blockquote>}}{\HCode{</blockquote>}}%
1200 {\start:env{example}}{\end:env}
1201 \else
1202 %%%% Do html4
1203 \ConfigureEnv{quotation}{}{}{\start:env{quotation}}{\end:env}
1204 \ConfigureEnv{quote}{}{}{\start:env{quote}}{\end:env}
1205 \Css{.quote {margin-bottom:0.25em;
1206 margin-top:0.25em;
1207 margin-left:1em;}}
1208 \ConfigureEnv{anote}{\HCode{<blockquote>}}{\HCode{</blockquote>}}%
1209 {\start:env{anote}}{\end:env}
1210 \ConfigureEnv{note}{\HCode{<blockquote>}}{\HCode{</blockquote>}}%
1211 {\start:env{note}}{\end:env}
1212 \ConfigureEnv{anexample}{\HCode{<blockquote>}}{\HCode{</blockquote>}}%
1213 {\start:env{anexample}}{\end:env}
1214 \ConfigureEnv{example}{\HCode{<blockquote>}}{\HCode{</blockquote>}}%
1215 {\start:env{example}}{\end:env}
1216 \fi
1217 \fi
1218
1219 % \end{macrocode}
1220 % \end{environment}
1221 % \end{environment}
1222 % \end{environment}
1223 % \end{environment}
1224 % \end{environment}
1225 % \end{environment}
1226 %
1227 %
1228 %
1229 % \begin{environment}{description}
1230 % \begin{environment}{nreferences}
1231 % \begin{environment}{references}
1232 % \begin{environment}{symbols}
1233 % These all all description-like environments. |description| is the
1234 % original \texht{} configuration, while the others are new for \Lpack{iso}.
1235 % \begin{macrocode}
1236 \:CheckOption{0.0}
1237 \if:Option
1238 %%%% Do html0
1239 \ConfigureList{description}{}{}{}{}{}{}
1240 \ConfigureList{nreferences}{}{}{}{}{}{}
1241 \ConfigureList{references}{}{}{}{}{}{}
1242 \ConfigureList{symbols}{}{}{}{}{}{}
1243 \else
1244 \:CheckOption{3.2}
1245 \if:Option
1246 %%%% Do html32
1247 \ConfigureList{description}%
1248 {\HCode{<dl>}}
1249 {\HCode{</dl>}\ShowPar}
1250 {\HCode{<dt>}\bgroup \bf}
1251 {\egroup\HCode{<dd\Hnewline>}}
1252 \ConfigureList{nreferences}%
1253 {\HCode{<dl>}}
1254 {\HCode{</dl>}\ShowPar}
1255 {\HCode{<dt>}\bgroup \bf}
1256 {\egroup\HCode{<dd\Hnewline>}}
1257 \ConfigureList{references}%
1258 {\HCode{<dl>}}
1259 {\HCode{</dl>}\ShowPar}
1260 {\HCode{<dt>}\bgroup \bf}
1261 {\egroup\HCode{<dd\Hnewline>}}
1262 \ConfigureList{symbols}%
1263 {\HCode{<dl>}}
1264 {\HCode{</dl>}\ShowPar}
1265 {\HCode{<dt>}\bgroup \bf}
1266 {\egroup\HCode{<dd\Hnewline>}}
1267 \else
1268 %%%% Do html4
1269 \ConfigureList{description}%
1270 {\EndP\HCode{<dl class="description">}\let\end:itm=\empty}
1271 {\EndP\HCode{</dd></dl>}\ShowPar}
1272 {\end:itm\def\end:itm{\EndP\Tg</dd>}
1273 \HCode{<dt class="description">}\bgroup \bf}
1274 {\egroup\EndP\HCode{</dt><dd\Hnewline class="description">}}
1275 \ConfigureList{nreferences}%
1276 {\EndP\HCode{<dl class="nreferences">}\let\end:itm=\empty}
1277 {\EndP\HCode{</dd></dl>}\ShowPar}
1278 {\end:itm\def\end:itm{\EndP\Tg</dd>}
1279 \HCode{<dt class="nreferences">}\bgroup \bf}
1280 {\egroup\EndP\HCode{</dt><dd\Hnewline class="nreferences">}}
1281 \ConfigureList{references}%
1282 {\EndP\HCode{<dl class="references">}\let\end:itm=\empty}
1283 {\EndP\HCode{</dd></dl>}\ShowPar}
1284 {\end:itm\def\end:itm{\EndP\Tg</dd>}
1285 \HCode{<dt class="references">}\bgroup \bf}
1286 {\egroup\EndP\HCode{</dt><dd\Hnewline class="references">}}
1287 \ConfigureList{symbols}%
1288 {\EndP\HCode{<dl class="symbols">}\let\end:itm=\empty}
1289 {\EndP\HCode{</dd></dl>}\ShowPar}
1290 {\end:itm\def\end:itm{\EndP\Tg</dd>}
1291 \HCode{<dt class="symbols">}\bgroup \bf}
1292 {\egroup\EndP\HCode{</dt><dd\Hnewline class="symbols">}}
1293 \fi
1294 \fi
1295
1296 % \end{macrocode}
1297 % \end{environment}
1298 % \end{environment}
1299 % \end{environment}
1300 % \end{environment}
1301 %
1302 %
1303 % \begin{macro}{\footnotetext}
1304 % \begin{macro}{\footnote}
1305 % These are configured to print the footnote text in the main body of the
1306 % document and for the number to link to the text. This is based on
1307 % suggestions by Eitan Gurari.\label{footpage}
1308 % \begin{macrocode}
1309 \:CheckOption{0.0}
1310 \if:Option
1311 \Configure{footnotetext}{}{}{} % from latex section
1312 \else
1313 \:CheckOption{3.2}
1314 \if:Option
1315 %% \Configure{footnotetext} % from latex section I THINK THIS IS WRONG
1316 %% {\HCode{<hr>}} {\HCode{<hr>}}
1317 %% {\HCode{<sup>}} {\HCode{</sup>}}
1318 \Configure{footnotetext}
1319 {\HCode{<sup>}\FNmark\HCode{</sup>}}
1320 {(footnote\ifx \FNmark\empty \else\space\fi \FNmark : }
1321 {)}
1322 \Configure{footnote}
1323 {\def\PRNT{)}\HCode{<sup>}%
1324 \Link{\arabic{footnote}}{}\FNmark\EndLink
1325 \HCode{</sup>}}
1326 {\relax\space
1327 \Link{}{\arabic{footnote}}\EndLink
1328 (footnote \FNmark : }
1329 {)}
1330
1331 \else
1332 %% \Configure{footnotetext} % from latex section
1333 %% {\HCode{<br \xml:empty><span class="footnotetext"><sup>}\FNmark
1334 %% \HCode{</sup}}
1335 %% {}
1336 %% {\HCode{</span>}}
1337 %% \Css{span.footnotetext{ font-size:75\%; font-style:italic; } }
1338 %%
1339 %% \Configure{footnote} % from latex section
1340 %% {\HPageButton[fn\FNnum]{\HCode{<sup>}\FNmark\HCode{</sup>}}}
1341 %% {\BeginHPage[fn\FNnum]{ }}
1342 %% {\EndHPage{}}
1343 % \end{macrocode}
1344 % This is Eitan's suggested code.
1345 % \begin{macrocode}
1346 \Configure{footnotetext}
1347 {\Tg<sup>\FNmark\Tg</sup>}
1348 {(footnote\ifx \FNmark\empty \else\space\fi \FNmark : }
1349 {)}
1350
1351 \Configure{footnote}
1352 {\def\PRNT{)}\Tg<sup>%
1353 \Link{\arabic{footnote}}{}\FNmark\EndLink
1354 \Tg</sup>}
1355 {\relax\space
1356 \Link{}{\arabic{footnote}}\EndLink
1357 (footnote \FNmark : }
1358 {)}
1359 \fi
1360 \fi
1361
1362 % \end{macrocode}
1363 % \end{macro}
1364 % \end{macro}
1365 %
1366 % The following is a slight revision of the end of \Lpack{article.4ht}.
1367 % \begin{macrocode}
1368 \def\tableofcontents{%
1369 \ifx\contentsname\empty \else
1370 \clause*{\contentsname}%
1371 \fi
1372 \:tableofcontents}
1373 \let\dx:begin\begin
1374 \def\begin#1{\def\:temp{#1}\def\:tempa{theindex}\ifx \:temp\:tempa
1375 \fibicl@use*{\indexname}\fi\dx:begin{#1}}
1376
1377 % \end{macrocode}
1378 %
1379 % The end of the package
1380 % \begin{macrocode}
1381 %</usc>
1382 % \end{macrocode}
1383 %
1384 %
1385 % \subsection{Observations}
1386 %
1387 % There are three main aspects to developing \texht{} code and
1388 % configurations for a new class or package:
1389 % \begin{enumerate}
1390 % \item Finding out what hooks and configurations are already available.
1391 % \item Determining what additional hooks, and where they should be put, for
1392 % the new package.
1393 % \item Configuring all the hooks.
1394 % \end{enumerate}
1395 %
1396 % \texht{} has added many hooks to the \LaTeX{} kernel and classes
1397 % and packages
1398 % based on kernel code inherit those hooks. I found it advisable to run
1399 % a test document with new macros through \texht{} to see what
1400 % the result looked like. Depending on the particular macros it may be that
1401 % the inherited hooks and configuration are sufficient and nothing needs
1402 % to be done.
1403 %
1404 % For this particular class a lot of new hooks were required, but mainly
1405 % related to the new macros for sectioning. Configurations were obviously
1406 % required for these, together with a few for new kinds of environments
1407 % and lists.
1408 %
1409 % There are other packages that, in their turn, are designed to work
1410 % with the \Lpack{iso}
1411 % class and it turned
1412 % out that they required few new hooks or changes to the existing
1413 % configurations.
1414 %
1415 % The rest of this section is concerned with item~2, namely
1416 % adding hooks.
1417 %
1418 % \subsubsection{Colon is a letter}
1419 %
1420 % Within the \texht{} `environment', that is the \file{*.4ht}
1421 % files, the colon character (|:|) acts as a letter in a similar manner
1422 % as the at character (|@|) does in class and package files; |@| is also
1423 % treated as a letter in the environment. Normally, something like
1424 % |\start:env{myenv}| would be treated as the command |\start| followed by
1425 % the text |:env{myenv}|. In the \texht{} environment it is the command
1426 % |\start:env| with the argument |{myenv}|. If any commands like this
1427 % occur in the preamble to a \LaTeX{} document, then they must be surrounded
1428 % by |\makecolonletter| and |\restorecolon|, which may be defined
1429 % as:\footnote{Note that a package may redefine the category code for
1430 % the colon, which is why the old value is saved.}
1431 % \begin{verbatim}
1432 % \chardef\oldcolon=\thecatcode`\:
1433 % \newcommand{\makecolonletter}{\catcode`\:11\relax}
1434 % \newcommand{\restorecolon}{\catcode`\:=\oldcolon\relax}
1435 % \end{verbatim}
1436 %
1437 % The fact that command names can include a colon means that you have
1438 % to be careful in code that includes any colon characters. In \LaTeX,
1439 % code like like |{footnote \thefootnote:}| will print the footnote number
1440 % immediately followed by a colon (e.g., |footnote 3:|). In the \texht{}
1441 % environment you are more likely to get an error message saying that
1442 % |\thefootnote:| is undefined! Instead, this needs to be coded as
1443 % |{footnote \thefootnote :}|, so that the |\thefootnote| command is ended
1444 % by the space before the colon.
1445 %
1446 % \subsubsection{Adding code and hooks}
1447 %
1448 % A \LaTeX{} idiom for adding code at the start and/or end of
1449 % an existing macro which takes no arguments called, say |\foo|, is:
1450 % \begin{verbatim}
1451 % \let\oldfoo\foo
1452 % \renewcommand{\foo}{new-start-code \oldfoo new-end-code}
1453 % \end{verbatim}
1454 % Similarly for commands |\baz| and |\biz| which take one and two arguments
1455 % respectively:
1456 % \begin{verbatim}
1457 % \let\oldbaz\baz
1458 % \renewcommand{\baz}[1]{new-start-code \oldbaz{#1} new-end-code}
1459 % \let\oldbiz\biz
1460 % \renewcommand{\biz}[2]{new-start-code \oldbiz{#1}{#2} new-end-code}
1461 % \end{verbatim}
1462 %
1463 % As these kinds of redefinitions are a common occurrence
1464 % \file{tex4ht.sty} provides commands that encapsulate the above idiom.
1465 % These are |\pend:def\foo{new-start-code}| and
1466 % |\append:def\foo{new-end-code}| for when |\foo| is a macro without
1467 % arguments, and there are similar commands for prepending and appending
1468 % to macros with up to three arguments. Repeating and extending
1469 % the \LaTeX{} example,
1470 % in the \texht{} environment it could be coded as:
1471 % \begin{verbatim}
1472 % \pend:def\foo{new-start-code} % \foo has no arguments
1473 % \append:def\foo{new-end-code}
1474 % \pend:defI\baz{new-start-code} % \baz has one argument
1475 % \append:defI\baz{new-end-code}
1476 % \pend:defII\biz{new-start-code} % \biz has two arguments
1477 % \append:defII\biz{new-end-code}
1478 % \pend:defIII\boz{new-start-code} % \boz has three arguments
1479 % \append:defIII\boz{new-end-code}
1480 % \end{verbatim}
1481 %
1482 % The definition of a hook in a macro called, say |\buz|, takes
1483 % the form |\X:buz| where X is a single letter. For example, adding a
1484 % configurable hook
1485 % at the start and end of the macro |\baz| can be done like this:
1486 % \begin{verbatim}
1487 % \pend:defI\baz{\a:baz} % hook at start
1488 % \append:defI\baz{\b:baz} % hook at end
1489 % \NewConfigure{baz}{2} % declare \baz has two configurable hooks
1490 % \end{verbatim}
1491 % Note that by default a |\NewConfigure{baz}{2}| command expects the hook
1492 % corresponding to the first argument to be |\a:baz| and the hook
1493 % corresponding to the second argument to be |\b:baz|. Extending the
1494 % example, |\NewConfigure{foo}{9}| will expect the hook corresponding to
1495 % the ninth argument to be |\i:foo| (`i' is the ninth letter of the
1496 % alphabet). This default setting for |\NewConfigure| has been created via: \\
1497 % |\Configure{NewConfigure}{a:}{b:}{c:}{d:}{e:}{f:}{g:}{h:}{i:}| \\
1498 % in \file{tex4ht.sty}.
1499 %
1500 %
1501 % As an example for hook insertion, assume a macro defined like: \\
1502 % |\newcommand{\mac}[1]{START #1 END}| \\
1503 % in which there are four potential places for hooks (call them h1 to h4): \\
1504 % |{h1 START h2 #1 h3 END h4}|. Hooks h1 and h4 can be added via |\pend:defI|
1505 % and |\append:defI|, but these are not sufficient by themselves. Other
1506 % methods are required for inserting all four hooks. Two of these are:
1507 % \begin{itemize}
1508 % \item Redefine the whole macro from scratch:
1509 % \begin{verbatim}
1510 % \renewcommand{\mac}[1]{\a:mac START \c:mac #1 \d:mac END \b:mac}
1511 % \NewConfigure{mac}{4}
1512 % \end{verbatim}
1513 %
1514 % \item Reuse parts of the original macro
1515 % (similar to the \LaTeX{} ap/pre-pending idiom):
1516 % \begin{verbatim}
1517 % \let\oldmac\mac
1518 % \renewcommand{\mac}[1]{\a:mac\oldmac{\c:mac #1 \d:mac}\b:mac}
1519 % \NewConfigure{mac}{4}
1520 % \end{verbatim}
1521 % \end{itemize}
1522 % Either of these examples can be configured via:
1523 % \begin{verbatim}
1524 % \Configure{mac}%
1525 % {first arg for a hook} % \a:mac at the start of the command
1526 % {second arg for a hook} % \b:mac at the end of the command
1527 % {third arg for a hook} % \c:mac immediately before the argument
1528 % {fourth arg for a hook} % \d:mac immediately after the argument
1529 % \end{verbatim}
1530 % Note that the hooks do not have to be placed in the |\mac| command in
1531 % alphabetical order.
1532 %
1533 %
1534 %
1535 % \bibliographystyle{alpha}
1536 %
1537 % \begin{thebibliography}{GMS94}
1538 %
1539 % \bibitem[GMS94]{GOOSSENS94}
1540 % Michel Goossens, Frank Mittelbach, and Alexander Samarin.
1541 % \newblock \textit{The LaTeX Companion}.
1542 % \newblock Addison-Wesley Publishing Company, 1994.
1543 %
1544 % \bibitem[GR99]{GOOSSENS99}
1545 % Michel Goossens and Sebastian Rahtz
1546 % (with Eitan Gurari, Ross Moore, and Robert Sutor).
1547 % \newblock \textit{The LaTeX Web Companion --- Integrating TeX, HTML, and XML}.
1548 % \newblock Addison-Wesley Publishing Company, 1999.
1549 %
1550 % \bibitem[Wil96]{PRW96i}
1551 % Peter~R. Wilson.
1552 % \newblock \textit{{LaTeX for standards: The LaTeX package files user manual}}.
1553 % \newblock NIST Report NISTIR, June 1996.
1554 %
1555 % \end{thebibliography}
1556 %
1557 %
1558 % \Finale
1559 % \PrintIndex
1560 %
1561 \endinput
1562
1563 %% \CharacterTable
1564 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
1565 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
1566 %% Digits \0\1\2\3\4\5\6\7\8\9
1567 %% Exclamation \! Double quote \" Hash (number) \#
1568 %% Dollar \$ Percent \% Ampersand \&
1569 %% Acute accent \' Left paren \( Right paren \)
1570 %% Asterisk \* Plus \+ Comma \,
1571 %% Minus \- Point \. Solidus \/
1572 %% Colon \: Semicolon \; Less than \<
1573 %% Equals \= Greater than \> Question mark \?
1574 %% Commercial at \@ Left bracket \[ Backslash \\
1575 %% Right bracket \] Circumflex \^ Underscore \_
1576 %% Grave accent \` Left brace \{ Vertical bar \|
1577 %% Right brace \} Tilde \~}
1578
1579