Debian Codegraph @

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

raw
1 %Needs: tex cond4ht.4ht
2 %% begin comment 29/09/2016 (dg)
3 %% detaching mktex4ht.cnf as
4 %% a separate file mktex4ht-cnf.tex (copy of mktex4ht.cnf)
5 %% end
6 \def\ConfigFiles{\input mktex4ht-cnf.tex} % Please, modify the bodies of the
7 \def\mkfilename{mktex4ht.4ht} % first four macros.
8 % The input file should consist
9 % of records \AddFile{i}{name}
10 % where i stands for a priority number
11 % in the range 0--9, and name stands for
12 % for a sty/cls file name. For instance,
13 %
14 % \AddFile{1}{latex} \AddFile{2}{article}
15 % \AddFile{5}{amsmath} \AddFile{2}{report} ...
16
17 % cond4ht.4ht (2022-06-01-13:59), generated from tex4ht-cond4ht.tex
18 % Copyright 2009-2021 TeX Users Group
19 % Copyright 1997-2009 Eitan M. Gurari
20 %
21 % This work may be distributed and/or modified under the
22 % conditions of the LaTeX Project Public License, either
23 % version 1.3c of this license or (at your option) any
24 % later version. The latest version of this license is in
25 % http://www.latex-project.org/lppl.txt
26 % and version 1.3c or later is part of all distributions
27 % of LaTeX version 2005/12/01 or later.
28 %
29 % This work has the LPPL maintenance status "maintained".
30 %
31 % The Current Maintainer of this work
32 % is the TeX4ht Project <http://tug.org/tex4ht>.
33 %
34 % If you modify this program, changing the
35 % version identification would be appreciated.
36 \immediate\write-1{version 2022-06-01-13:59}
37
38
39 \ifx \BREAK\UnDef
40 \def\BREAK{^^J}
41 \input common.tex
42 \fi
43
44
45 \ifx \OutputCode\UnDef
46
47 \def\next{
48 \input tex4ht.sty \Preamble{html}\EndPreamble
49 \input ProTex.sty
50 \AlProTex{sty,<<<>>>,|,title,list,[[]],ClearCode}
51 }
52 \def\BYE{\csname bye\endcsname}
53 \expandafter \next
54 \fi
55
56
57 \expandafter\def\csname lit0\endcsname{}
58 \expandafter\def\csname lit1\endcsname{}
59 \expandafter\def\csname lit2\endcsname{}
60 \expandafter\def\csname lit3\endcsname{}
61 \expandafter\def\csname lit4\endcsname{}
62 \expandafter\def\csname lit5\endcsname{}
63 \expandafter\def\csname lit6\endcsname{}
64 \expandafter\def\csname lit7\endcsname{}
65 \expandafter\def\csname lit8\endcsname{}
66 \expandafter\def\csname lit9\endcsname{}
67 \def\infostyles{}
68 \def\hookstyles{}
69 \def\XXXXs{}
70
71 \def\litstyles{%
72 \csname lit0\endcsname\BREAK
73 \csname lit1\endcsname\BREAK
74 \csname lit2\endcsname\BREAK
75 \csname lit3\endcsname\BREAK
76 \csname lit4\endcsname\BREAK
77 \csname lit5\endcsname\BREAK
78 \csname lit6\endcsname\BREAK
79 \csname lit7\endcsname\BREAK
80 \csname lit8\endcsname\BREAK
81 \csname lit9\endcsname
82 }
83 \HAssign\AddFileN = -3
84
85 \catcode`\!=14 \catcode`\%=12
86 \def\AddFile#1#2{!
87 ! \csname append:def\endcsname\hookstyles{\string\LitRow{#2}}!
88 \APPENDHOOK{\string\LitRow{#2}}!
89 \csname expand:after\endcsname{\csname append:def\endcsname}\csname !
90 lit#1\endcsname{\string\lit\string{#2\string}}!
91 \ifnum\AddFileN<0\else \csname append:def\endcsname\XXXXs{,}\fi !
92 \ifnum \AddFileN=4 !
93 \HAssign\AddFileN = 0 !
94 \csname append:def\endcsname\XXXXs{\BREAK\space\space\space} !
95 \csname expand:after\endcsname{\csname !
96 append:def\endcsname}\csname lit#1\endcsname{\BREAK}!
97 ! \csname append:def\endcsname\hookstyles{\BREAK}!
98 \fi !
99 \csname append:def\endcsname\XXXXs{#2}!
100 \ifnum \AddFileN<0 \HAssign\AddFileN = 2 \fi !
101 \HAdvance\AddFileN by 1 !
102 \csname append:def\endcsname\infostyles{\info.#2.}!
103 }
104 \catcode`\!=12 \catcode`\%=14
105
106
107 \def\getNextLit#1#2#3{\def\nextLit{#3 }\def\NextLit{#3}}
108
109 \def\APPENDHOOK#1{%
110 \getNextLit#1%
111 \expandafter\let\expandafter\hookstyles\expandafter\empty
112 \expandafter\sorthooks\hookstyles{}{}{}}
113
114 \def\sorthooks#1#2#3{%
115 \if !#3!%
116 \expandafter\expandafter\csname append:def\endcsname
117 \expandafter\hookstyles\expandafter{\expandafter\string
118 \expandafter\LitRow\expandafter{\NextLit}}%
119 \else
120 \def\comp{0}%
121 \expandafter\compare\nextLit<>#3 <>%
122 \ifnum \comp<0
123 \expandafter\expandafter\csname append:def\endcsname
124 \expandafter\hookstyles\expandafter{\expandafter\string
125 \expandafter\LitRow\expandafter{\NextLit}}%
126 \let\next=\resthooks
127 \else
128 \let\next\sorthooks
129 \fi
130 \csname append:def\endcsname\hookstyles{#1#2{#3}}%
131 \expandafter\next
132 \fi}
133
134 \def\resthooks#1#2#3{%
135 \if !#3!%
136 \else
137 \csname append:def\endcsname\hookstyles{#1#2{#3}}%
138 \expandafter\next
139 \fi}
140
141
142 \def\compare#1#2<>#3#4<>{%
143 \ifnum `#1<`#3\def\comp{-1}\let\next=\relax
144 \else \ifnum `#1>`#3\def\comp{1}\let\next=\relax
145 \else \def\next{\compare#2<>#4<>}%
146 \if !#2!\let\next=\relax \fi
147 \if !#4!\let\next=\relax \fi
148 \def\tempa{#2}\def\tempb{#4}%
149 \ifx \tempa\space
150 \ifx \tempb\tempa \else \def\comp{-1}\fi
151 \let\next=\relax
152 \else\ifx \tempb\space \def\comp{1}\let\next=\relax
153 \fi\fi
154 \fi\fi
155 \next
156 }
157
158 \HAssign\resthookN=0
159 \def\hookstylesBreaks#1#2#3{%
160 \if !#3!\else
161 \csname append:def\endcsname\hookstyles{#1#2{#3}}%
162 \HAdvance\resthookN by 1
163 \ifnum \resthookN=4
164 \csname append:def\endcsname\hookstyles{\BREAK}%
165 \HAssign\resthookN=0
166 \fi
167 \expandafter\hookstylesBreaks
168 \fi}
169
170 \def\finalizeHooks{%
171 \expandafter\let\expandafter\hookstyles\expandafter\empty
172 \expandafter\hookstylesBreaks\hookstyles{}{}{}}
173
174
175
176
177
178
179 \ConfigFiles
180
181
182
183
184
185
186 \finalizeHooks
187
188 \catcode`\%=12
189
190 \def\hook.#1.{\BREAK
191 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\BREAK
192 \string\section\string{#1\string}\string\rightline
193 \string{\string\Link\string{#1-b\string}\string
194 {#1-a\string}info\string\EndLink\string}\BREAK
195 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\BREAK
196 \BREAK
197 \string\<configure 4ht #1\string\><<< \BREAK
198 \BREAK
199 >>>\BREAK\BREAK
200 }
201
202
203 \def\info.#1.{\BREAK \BREAK\BREAK
204 \string\def\string\infolink{[\string\Link\string{#1-a\string}\string
205 {#1-b\string}up\string\EndLink] \string\gdef
206 \string\infolink{}}\BREAK
207 \string\section{#1}\BREAK\BREAK
208 \string\begin\string{verbatim\string}\BREAK
209 \<info 4ht #1\>
210 \string\end\string{verbatim\string}\BREAK
211 }
212
213 \def\lit.#1.{\BREAK
214 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\BREAK
215 \space\space\space\space\space\space\space\space
216 \space\space\space\space\space\space\space\space
217 |<configure 4ht|>\string{#1\string} \BREAK
218 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\BREAK
219 \space\space\space\space |<configure 4ht #1|>
220 \space\space \<end configure 4ht\> \BREAK}
221
222 \catcode`\%=14
223
224
225
226
227
228 \<*.4ht out of order\><<<
229 \Hinclude{\@ifpackageloaded{colortbl}{%
230 \no:dupl{array}{\input array.4ht}%
231 \no:dupl{color}{\input color.4ht}%
232 \no:dupl{colortbl}{\input colortbl.4ht}%
233 }{}}{colortbl}
234 >>>
235
236 \<set Hinclude\><<<
237
238 \<Hinclude plain\><<<
239 \ifx \contextversion\Un:def
240 \Hinclude{\input #1.4ht}{plain}
241 \def\:temp{t}%
242 \ifx \eplain\:temp
243 \Hinclude{\input #1.4ht}{eplain}
244 \fi
245 ||<include mex||>
246 \ifx \d@nger\:UnDef \else
247 \let\leftheadline\empty
248 \let\rightheadline\empty
249 \Hinclude{\input #1.4ht}{manmac}
250 \fi
251 \else
252 \Hinclude{\input #1.4ht}{context}
253 \fi
254 >|empty>>
255
256 \<Hinclude latex\><<<
257 \Hinclude{\input #1.4ht}{latex}
258 >|empty>>
259
260 \<Hinclude plain lib\><<<
261 ||<Hinclude util||>
262 >|empty>>
263
264 \<Hinclude latex lib\><<<
265 ||<Hinclude util||>
266 >|empty>>
267
268 \<Hinclude plain + latex lib\><<<
269 ||<Hinclude util||>
270 >|empty>>
271
272
273
274
275 \<include mex\><<<
276 \def\:temp{M\kern-.111em\lower.6ex\hbox{E}\kern-.075emX}
277 \ifx \nM@X\:temp
278 \expandafter\ifx\csname emulateplain\endcsname\relax \else
279 \Hinclude{\input #1.4ht}{mex}
280 \fi\fi
281 >|empty>>
282
283
284
285 Style files, like xy, may be loaded in latex with \verb'\usepackage' or
286 \verb'\input'. The latter case doesn't leave footprints, hence we need for
287 it an explicitly check. On the other hand, we should avoid duplications.
288
289 \<Hinclude util\><<<
290 \expandafter\let\csname tex4ht:4ht\endcsname\empty
291 \def\no:dupl#1#2{%
292 \expandafter\ifx \csname #1:4ht\endcsname\relax
293 \expandafter\let \csname #1:4ht\endcsname\empty
294 \expand:after{#2}%
295 \fi
296 }
297 >|empty>>
298
299
300
301
302 \<Hinclude plain lib\><<<
303 \Hinclude{\def\:temp{\ht:everypar={\setbox0=\lastbox\ht:everypar={}}}%
304 \ifx \NoindentAfter\:temp
305 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
306 {osudeG}
307 \Hinclude{\ifx\amstexloaded@\relax
308 \no:dupl{#1}{
309 \ifx \Space@\:UnDef \expand:after{\input #1.4ht} %
310 \else \input vanilla.4ht \fi}%
311 \fi}
312 {amstex}
313 \Hinclude{\expandafter\ifx \csname amsppt.sty\endcsname\relax \else
314 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
315 {amsppt}
316 \Hinclude{\ifx \texinfoversion\:UnDef\else
317 \no:dupl{#1}{\expand:after{\input texinfo.4ht}}\fi}
318 {texinfo}
319 \Hinclude{\ifx \thistubstyle\:UnDef\else
320 \no:dupl{#1}{\expand:after{\input tugboat.4ht}}\fi}
321 {tugboat}
322 >|empty>>
323
324
325
326 \<Hinclude latex lib\><<<
327 \ifx\InputIfFileExists\UnDef%
328 \def\input:if:fileexists#1#2#3{%
329 \openin15 #1.4ht%
330 \ifeof15%
331 #3%
332 \else%
333 \input #1%
334 \fi\closein15%
335 }%
336 \else
337 \let\input:if:fileexists\InputIfFileExists%
338 \fi%
339 \Hinclude{\input #1.4ht}{fontmath}
340 |<*.4ht out of order|>
341 \def\:strip:quotes"#1"#2"#3\relax{\if .#1.#2\else #1\fi}
342 \def\h:input#1.#2.#3!*?: {%
343 \edef\:current:package{\:strip:quotes"#1""\relax}
344 \:CheckOption{no_\:current:package}\if:Option
345 \let\:temp\empty
346 \else
347 \let\:temp\empty
348 \no:dupl{\:current:package}{%
349 \def\:warn:msg{}
350 \:CheckOption{debug}\if:Option
351 \def\:warn:msg{%
352 \:warning{No configuration file for \:current:package.\if .#2.tex\else #2\fi}%
353 }
354 \fi%
355 \def\:temp{\input:if:fileexists{\:current:package.4ht}{}{\:warn:msg}}%
356 }%
357 \fi \:temp}
358 \edef\:temp{\noexpand\Hinclude
359 {\noexpand\h:input ##1..!*?: }{\@filelist}}
360 \:temp
361 >|empty>>
362
363
364
365 \<Hinclude plain + latex lib\><<<
366 \Hinclude{\ifx \PsfigVersion\:UnDef \else
367 \no:dupl{#1}{\expand:after{\input psfig.4ht}}\fi}
368 {psfig}
369 \Hinclude{\:CheckOption{#1}
370 \if:Option \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
371 {pictex}
372 \Hinclude{%
373 \expandafter\ifx \csname PSTricksLoaded\endcsname\relax\else
374 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
375 {pstricks}
376 \Hinclude{%
377 \ifx \:DraCatCodes\:UnDef \else
378 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
379 {dratex}
380 \Hinclude{%
381 \ifx \xyloaded\:UnDef \else
382 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
383 {xy}
384
385 \Hinclude{%
386 \ifx \epsfsetgraph\:UnDef \else
387 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
388 {epsf}
389
390 \Hinclude{%
391 \ifx \diagram@help@messages\:UnDef \else
392 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
393 {diagrams}
394
395 \Hinclude{%
396 \ifx \figvisu\:UnDef \else
397 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
398 {fig4tex}
399
400 \Hinclude{|<pctex table 4ht|>}
401 {pctable}
402 \Hinclude{%
403 \:CheckOption{xhtml}\if:Option |<xhtml.4ht|>\fi}
404 {xhtml}
405 \Hinclude{\:CheckOption{#1}
406 \if:Option\else \:CheckOption{ShowFont}\fi
407 \if:Option\else \:CheckOption{frames-}\fi
408 \if:Option\else \:CheckOption{frames}\fi
409 \if:Option\else \:CheckOption{image-maps}\fi
410 \if:Option\else \:CheckOption{java}\fi
411 \if:Option\else \:CheckOption{javascript}\fi
412 \if:Option \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
413 {th4}
414 \Hinclude{\ifx \sethebrew\:UnDef\else \ifx \ArabTeX\:UnDef\else
415 \no:dupl{#1}{\expand:after{\input hebtex.4ht}}\fi \fi}
416 {hebtex}
417 >|empty>>
418
419
420
421 \<pctex table 4ht\><<<
422 \ifx \BeginTable\:UnDef \else\ifx \EndTable\:UnDef \else
423 \expandafter\ifx \csname !ttBeginTable\endcsname\relax\else
424 \no:dupl{#1}{\input #1.4ht}%
425 \fi\fi\fi
426 >|empty>>
427
428
429
430 >>>
431
432
433
434
435 {\tt \string\EXIST} is needed for styles/classes not coming from
436 tex4ht-4ht, e.g., for adding cases to {\tt\string\exit:ifnot}.
437
438
439 \input tex4ht-cpright % needed for this generation:
440
441 \<\mkfilename\><<<
442 % \def\HTML{...} \def\CONFIG{...} \def\MAKETITLE{...} \def\EXIST{...}
443 % \def\OPTIONS{...} \def\PREAMBLE{...}
444 %
445 % Compile this file with the command `xhlatex |mkfilename',
446 % and read the instructions at mktex4ht.html => index => mktex4ht.
447 %
448 % The compilation needs the files ProTex.sty & AlProTex.sty from
449 % http://ctan.org/pkg/protex
450 %
451 % This file is designed for machines--not human beings! You
452 % are strongly advised not to look at the code which follows
453 % the copyright notice.
454 %
455 % |mkfilename (|version), generated from |jobname.4ht
456 % Copyright 2009-2022 TeX Users Group
457 % Copyright 1997-2009 Eitan M. Gurari
458 |<TeX4ht copywrite|>
459
460 |<list of info files|>
461
462 \openin15=ProTex.sty \ifeof15
463 \immediate\write16{--- Needs ProTex.sty \& AlProTex.sty
464 from http://ctan.org/pkg/protex --}
465 \fi \closein15
466
467
468
469 \edef\RecallCats{\catcode`\noexpand\^=\the\catcode`\^} \catcode`\^=7
470 \catcode`\%=12 \catcode`\!=14 \catcode`\^^M=13 \catcode`\:=11
471 \def\lit#1{
472 \expandafter\ifx\csname !
473 cw:)\clearcode:id P:configure \HTML\space #1\endcsname\relax !
474 ! % no code for <configure \HTML\space #1> !
475 \else !
476 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
477 \space\space\space\space\space\space\space\space!
478 \space\space\space\space\space\space\space\space!
479 \string\ConfigureHinput\string{#1\string}
480 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
481 \space\space\space\space \<configure \HTML\space #1\>
482 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
483 \space\space
484 \string\endinput\string\empty\string\empty\string\empty\string\empty !
485 \string\empty\string\empty
486 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
487 \fi !
488 }
489 \catcode`\%=14 \catcode`\!=12
490
491 \def\GetLit#1,{\def\HTML{#1}\ifx \HTML\empty
492 \def\GetLit##1!*?: {}\else%
493 \section{Container of \HTML.4ht}
494 \expandafter\ifx\csname YES\HTML\endcsname\relax\else
495 \<\HTML\><<<
496 \string\exit:ifnot{\csname YES\HTML\endcsname}
497 >>|empty>
498 \fi
499 \<\HTML\><<<
500 |litstyles
501 \ifx \EXIST\UnDef\else \expandafter\moreLit\EXIST,,//\fi
502 \string\endinput
503 >>|empty> \LitFile \fi \GetLit}
504 \catcode`\^^M=5 \RecallCats
505
506 \def\moreLit#1,{\if !#1!\expandafter\SofLit\else
507 \lit{#1}\expandafter\moreLit\fi}
508 \def\moreLitRow#1,{\if !#1!\expandafter\SofLit\else
509 \LitRow{#1}\expandafter\moreLitRow\fi}
510 \def\SofLit#1//{}
511
512 \def\LitFile{\OutputCode[4ht]\<\HTML\>}
513
514 \def\cleancom#1,#2(){#1}
515 \def\LitRow#1{%
516 \let\next=\LitCols \def\RowTp{#1}%
517 \HCode{<tr align="center"><td align="left">}\ifx \RowTp\empty \else
518 \edef\temp{\noexpand\Link[\noexpand\cleancom
519 \RefFile{f-#1}}\temp,()]{}{b-#1}#1\EndLink \fi \HCode{</td>}%
520 \HAssign\curf=0
521 \ifx \HTML\:UnDef
522 \expandafter\LitCols\infosources,,!*?:
523 \else \expandafter\LitCols\HTML,,!*?: \fi
524 \HCode{</tr>}%
525 }
526 \def\LitCols#1,{\def\temp{#1}\ifx \temp\empty
527 \def\next##1!*?: {}\else%
528 \ifx \RowTp\empty \HCode{<th>}\Vth#1:\HCode{</th>}\else
529 \HCode{<td>}\expandafter\ifx\csname
530 cw:)\clearcode:id P:configure #1 \RowTp\endcsname\relax
531 |<non-code pointer|>\else \LinkPort\<configure #1 \RowTp\>*\EndLink
532 \expandafter\edef\csname YES#1\endcsname{%
533 \expandafter\ifx \csname YES#1\endcsname\relax\else
534 \csname YES#1\endcsname,\%\Hnewline\fi \RowTp}%
535 \fi
536 \HCode{</td>}\fi
537 \fi
538 \next }
539
540 \def\Vth#1{\if #1:\else #1\expandafter\VTH\fi}
541 \def\VTH#1{\if #1:\else \HCode{<br />}#1\expandafter\VTH\fi}
542
543 \expandafter\def\csname html4hook\endcsname{%
544 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
545 % for bootstrapping, when html4.4ht is not available %
546 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
547 \ifx \b:HEAD\UnDef
548 % \let\tbl:XV=\empty
549 \let\:Hii=\empty
550 \let\End:Hii=\empty
551 \let\:SPAN=\empty
552 %
553 \expandafter\def\csname html4hook\endcsname{%
554 \csname newcount\endcsname\pageno
555 \Configure{HtmlPar}{}{}{}{}
556 \Configure{HEAD}{}{}
557 \Configure{CssFile}{}{}
558 \Configure{HTML}{}{}
559 \Configure{TITLE}{}{}
560 \Configure{BODY}{}{}
561 \Configure{Css}{foo}
562 \Configure{TITLE+}{}
563 \Configure{HPageTITLE+}{}
564 } \csname html4hook\endcsname
565 \fi
566 }
567 \catcode`\:=12
568
569 \documentclass{book}
570 \ifx \HCode\UnDef
571 \ifx\OPTIONS\UnDef
572 \toks0={xhtml,3,sections+}%
573 \else
574 \toks0={\OPTIONS}%
575 \fi
576 \def\temp{\usepackage[\the\toks0]{tex4ht}}
577 \expandafter\temp
578 \fi
579 \Configure{ProTex}{4ht,<<<>>|empty>,||,title,list,[[]]}
580 \csname PREAMBLE\endcsname
581 \begin{document}
582
583 \ifx \OPTIONS\UnDef
584 \TocAt{section,subsection}
585 \fi
586
587 \title{TeX4ht: \ifx\HTML\UnDef Seeded Hooks\else Configuration Files\fi}
588 \ifx \MAKETITLE\UnDef \else \expandafter\MAKETITLE\fi
589
590 \maketitle
591
592
593
594 \noindent
595 [\HPage{index}
596 \HCode{<table>}\LitRow{}|hookstyles
597 \ifx \EXIST\UnDef\else \expandafter\moreLitRow\EXIST,,//\fi
598 \ifvmode \IgnorePar\fi\EndP \HCode{</table>}
599 \IgnoreIndent\par\rightline{[\ExitHPage{}]} \EndHPage{}]
600 \ifx \HTML\UnDef
601 \par
602 \let\LitFile=\empty
603 \def\HTML{replace-with-file-name}
604 \immediate\write16{-- Missing definition for \noexpand\HTML --}
605 See {\tt index => mktex4ht} for directions on how to create
606 configuration files with `mktex4t.4ht'.\par
607 WARNING: Missing definition for {\tt \string\HTML }
608 \else
609 [\HPage{the 4ht files}
610 \def\Comma{\def\Comma{, }}
611 \def\LitFiles#1,{\def\temp{#1}\ifx \temp\empty
612 \def\LitFiles##1!*?: {}\else
613 \Comma\Link[#1.4ht]{}{}#1.4ht\EndLink \fi
614 \LitFiles }
615 \expandafter\LitFiles\HTML,,!*?:
616 \par\ShowPar[\ExitHPage{}] \EndHPage{}]
617 \fi
618
619
620
621 \ifx \CONFIG\UnDef
622 WARNING: Missing definition for {\tt \string\CONFIG }
623 \fi
624
625 \IgnorePar\EndP
626
627
628
629
630 \ifx \CONFIG\UnDef
631 \immediate\write16{-- Missing definition for \noexpand\CONFIG --}
632 \else
633 \def\temp{\input \CONFIG}\expandafter\temp
634 \fi
635
636
637
638 \tableofcontents
639
640 \chapter{Utilities}
641
642 |<set Hinclude|>
643
644 %% begin comment 29/09/2016 (dg)
645 %% file \jobname.4ct does not exist on first run;
646 %% it should be available on second and third run
647 %% end
648 \newif\ifFirstPass\FirstPassfalse
649 \openin15=\Jobname.4ct
650 \ifeof15
651 \FirstPasstrue
652 \message{^^J warning *********** FIRST PASS **************************** ^^J}
653 \fi
654 \closein15
655
656
657 \chapter{Containers for the Configurations}
658
659 %%
660 %% Skip processing lit entries on first pass
661 %%
662
663 \ifFirstPass\else
664
665 \catcode`\:=11
666 \expandafter\GetLit\HTML,,,!*?: \relax
667 \catcode`\:=12
668
669 \fi
670
671 |<include info4ht|>
672
673
674 \end{document}
675 \endinput
676 >>>
677
678 \<include info4ht\><<<
679 \bgroup
680 \catcode`\:=11 \catcode`\@=0 \catcode`\\=11 @relax
681
682 @def@infoIVht[#1]#2//{@bgroup
683 @no:catcodes0{255}{11}%
684 @no:catcodes{47}{47}{12}% /
685 @def@infoIVht##1\ConfigureHinput{@egroup
686 @let@ConfigureHinput=@ConfigureHINPUT @ConfigureHinput}%
687 @infoIVht }
688
689 @def@ConfigureHINPUT#1{@bgroup
690 @no:catcodes0{255}{11}%
691 @no:catcodes{47}{47}{12}% /
692 @no:catcodes{13}{13}{13}% ^^M
693 @no:catcodes{32}{32}{13}% ^^M
694 @def@ConfigureHinput##1//##2//##3\ifx\infoIVht##4\endinput{@egroup
695 @HPage[f@curf-#1]{#1}%
696 @rightline{@Link{b-#1}{}up@EndLink}@ShowPar@par@textbf{#1}@par
697 @verbshow{##3}@rightline{@Link{b-#1}{}up@EndLink}%
698 @EndHPage{}@par@ShowPar}@ConfigureHinput}
699
700 @bgroup
701 @catcode `[= 1 @catcode`]=2 @catcode `@{=12 @catcode `@}=12
702 @catcode`@\=12
703 @long@gdef@verbshow#1[@begin[verbatim]#1\end{verbatim}]
704 @egroup
705
706 @catcode`@\=0 \catcode`\:=12 \catcode`\@=12 \relax
707
708
709 \def\curf{} \input info4ht.4ht
710 \ifx \HTML\empty
711 \HAssign\curf=0
712 \def\nextinfo#1,{\if !#1!\def\nextinfo##1//{}
713 \else \HAdvance\curf by 1
714 \input #1.4ht \expandafter\nextinfo
715 \fi
716 }
717 \expandafter\nextinfo\infofiles,,//%
718 \fi
719 \egroup
720
721 >>>
722
723 \<list of info files\><<<
724 \def\infofiles{infoht4,infomml}
725 \def\infosources{html4,mathml}
726 >>>
727
728 \<non-code pointer\><<<
729 \HAdvance\curf by 1\relax
730 \expandafter\ifx \csname cw:f\curf-\RowTp(L \endcsname\relax
731 -\else\Link[\csname cw:f\curf-\RowTp(L \endcsname]{}{}*\EndLink
732 \fi
733 >>>
734
735
736 %%
737 %% set a hook for skipping mktex4ht.4ht generation from tex4ht-4ht.tex
738 %% The file should be generated when cond4ht.4ht is processed,
739 %% not when tex4ht-4ht.
740 %%
741 %%
742 \csname Skipmkfilename\endcsname
743 \expandafter\OutputCodE\expandafter\<\mkfilename\>
744
745 \csname BYE\endcsname
746 \endinput
747
748