Debian Codegraph @

texmf-dist/source/generic/tex4ht/tex4ht-options.tex

raw
1 % $Id: tex4ht-options.tex 1798 2026-03-22 13:53:41Z karl $
2 % latex tex4ht-options or xhlatex tex4ht-options
3 %
4 % Copyright 2009-2026 TeX Users Group
5 % Copyright 2000-2009 Eitan M. Gurari
6 % Released under LPPL 1.3c+.
7 % See tex4ht-cpright.tex for license text.
8
9 \ifx \HTML\UnDef
10 \def\HTML{}
11 \def\CONFIG{\jobname}
12 \def\MAKETITLE{\author{Eitan M. Gurari}}
13 \def\next{\input mktex4ht.4ht \endinput}
14 \expandafter\next
15 \fi
16
17 %%%%%%%%%%%%%%%%%% definitions %%%%%%%%%%%%%%%%%%%%%%%%%
18
19 \input{common.tex}
20 \input{common-code.tex}
21 \input{tex4ht-cpright.tex}
22
23 \def\.{\string\a:mathml:\space}
24
25 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26 \chapter{Shared}
27 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
28
29 \<par del\><<<
30 !*?: >>>
31
32
33 \<tag of Tag\><<<
34 cw:>>>
35
36 \<tail\><<<
37 tail>>>
38
39 \<addr for Tag and Ref of Sec\><<<
40 \xdef\:cursec{|<section html addr|>}%
41 >>>
42
43
44
45
46
47 \<tex4ht.4ht\><<<
48 \ifnum\the\catcode`\%=14\else \expandafter\edef\csname
49 \string:RestoreCatcodes\endcsname{\catcode`\%|=\the
50 \catcode`\%}\catcode`\%|=14\fi
51 % tex4ht.4ht (|version), generated from |jobname.tex
52 % Copyright 2009-2026 TeX Users Group
53 % Copyright |CopyYear.1997. Eitan M. Gurari
54 |<TeX4ht copywrite|>
55 |<save catcodes|>
56 |<note about tex4ht.usr|>
57
58 \:CheckOption{info}\if:Option
59 \Hinclude[*]{info4ht.4ht}
60 \Log:Note{For additional information,
61 compile `xhlatex mktex4ht.4ht'^^J and review the appropriate
62 pointers under mktex4ht.html => index}
63 \else
64 \Log:Note{for additional information, use
65 the command line option `info'}
66 \fi
67 \writesixteen{::::::::::::::::::::::::::::::::::::::::::}
68 \writesixteen{ TeX4ht info is available in the log file }
69 \writesixteen{::::::::::::::::::::::::::::::::::::::::::}
70 |<redefine Configure|>
71 |<built-in settings|>
72 |<user's configuration files|>
73 |<recall Configure|>
74 \:tempc
75
76 \:RestoreCatcodes
77 \endinput
78 >>>
79
80 \<redefine Configure\><<<
81 \let\:tempd|=\Configure
82 \def\Configure#1#2{%
83 \:CheckOption{#1}\if:Option \def\:tempc{#2}\fi}
84 >>>
85
86 \<recall Configure\><<<
87 \let\Configure|=\:tempd
88 >>>
89
90
91 \<user's configuration files\><<<
92 \openin15=tex4ht.usr \ifeof15 \else \closein15
93 \input tex4ht.usr
94 \fi
95 >>>
96
97 \<note about tex4ht.usr\><<<
98 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
99 % It is highly recommended NOT TO CHANGE THIS FILE. Options
100 % ^^^^^^^^^^^^^^^^^^^^^^^
101 % defined in this file may be redefined, and new ones may be
102 % added, within a user supplied file named tex4ht.usr.
103 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
104 >>>
105
106
107 \<built-in settings\><<<
108 |<html4 settings|>
109 |<0.0 and 3.2 settings|>
110 |<mozilla settings|>
111 |<html5 settings|>
112 |<tei settings|>
113 |<jats settings|>
114 |<docbook settings|>
115 |<html for word settings|>
116 |<open office settings|>
117 |<html mathltx settings|>
118 |<html jsmath settings|>
119 |<html emacspeak settings|>
120 >>>
121
122
123
124 \<html4 settings\><<<
125 \def\:tempc{\:CheckOption{info}\if:Option
126 \Hinclude[*]{infoht4.4ht}%
127 \:CheckOption{javahelp}\if:Option
128 \Hinclude[*]{infojh.4ht}\fi
129 \fi
130 \Hinclude[*]{html4.4ht}%
131 \Hinclude[*]{html4-math.4ht}%
132 \:CheckOption{svg}%
133 \if:Option \else\:CheckOption{svg-}\fi
134 \if:Option \else\:CheckOption{svg-obj}\fi
135 \if:Option \else\:CheckOption{svg-inline}\fi
136 \if:Option
137 \Hinclude[*]{svg-option.4ht}%
138 \Hinclude[*]{html4-svg.4ht}%
139 \:CheckOption{info}\if:Option \Hinclude[*]{infosvg.4ht}\fi
140 \fi
141 }
142 \Configure{uni-html4}{%
143 \:CheckOption{info}\if:Option
144 \Hinclude[*]{infoht4.4ht}\fi
145 \Hinclude[*]{html4.4ht}%
146 \Hinclude[*]{html4-math.4ht}%
147 \Hinclude[*]{unicode.4ht}
148 \:CheckOption{svg}%
149 \if:Option \else\:CheckOption{svg-}\fi
150 \if:Option \else\:CheckOption{svg-obj}\fi
151 \if:Option \else\:CheckOption{svg-inline}\fi
152 \if:Option \Hinclude[*]{svg-option.4ht}%
153 \:CheckOption{info}\if:Option \Hinclude[*]{infosvg.4ht}\fi
154 \fi
155 }
156 \Configure{mathml}{%
157 \:CheckOption{info}\if:Option
158 \Hinclude[*]{infoht4.4ht}\fi
159 \:CheckOption{info}\if:Option
160 \Hinclude[*]{infomml.4ht}\fi
161 \Hinclude[*]{html4.4ht}%
162 \Hinclude[*]{unicode.4ht}%
163 \Hinclude[*]{mathml.4ht}%
164 \Hinclude[*]{html-mml.4ht}%
165 \:CheckOption{svg}%
166 \if:Option \else\:CheckOption{svg-}\fi
167 \if:Option \else\:CheckOption{svg-obj}\fi
168 \if:Option \else\:CheckOption{svg-inline}\fi
169 \if:Option \Hinclude[*]{svg-option.4ht}%
170 \:CheckOption{info}\if:Option \Hinclude[*]{infosvg.4ht}\fi
171 \fi
172 \:CheckOption{mathplayer}\if:Option
173 \:CheckOption{pmathml}\if:Option \else
174 \:CheckOption{pmathml-css}\if:Option \else
175 \Hinclude[*]{mathplayer.4ht}
176 \fi\fi
177 \else
178 \Log:Note{For MathML on MSIE + MathPlayer use
179 the command line option `mathplayer'}
180 \fi
181 }
182 >>>
183
184 \<html for word settings\><<<
185 \Configure{word}{%
186 \:CheckOption{info}\if:Option
187 \Hinclude[*]{infoht4.4ht}\fi
188 \Hinclude[*]{html4.4ht}%
189 \Hinclude[*]{html4-math.4ht}%
190 \Hinclude[*]{htmlw.4ht}%
191 \:CheckOption{svg}%
192 \if:Option \else\:CheckOption{svg-}\fi
193 \if:Option \else\:CheckOption{svg-obj}\fi
194 \if:Option \else\:CheckOption{svg-inline}\fi
195 \if:Option \Hinclude[*]{svg-option.4ht}%
196 \:CheckOption{info}\if:Option \Hinclude[*]{infosvg.4ht}\fi
197 \fi
198 }
199 >>>
200
201 \<0.0 and 3.2 settings\><<<
202 \Configure{0.0}{%
203 \Hinclude[*]{html0.4ht}%
204 }
205 \Configure{3.2}{%
206 \:CheckOption{info}\if:Option
207 \:CheckOption{javahelp}\if:Option
208 \Hinclude[*]{infojh.4ht}\fi\fi
209 \Hinclude[*]{html32.4ht}%
210 \Hinclude[*]{html32-math.4ht}%
211 \:CheckOption{javahelp}\if:Option
212 |<option javahelp|>%
213 \fi
214 \:CheckOption{unicode}\if:Option \Hinclude[*]{unicode.4ht}\fi
215 }
216 >>>
217
218
219
220
221 Allows cleanup using xtpipes.
222
223
224 \<option javahelp\><<<
225 \Hinclude[*]{javahelp.4ht}%
226 \:CheckOption{jh-} \if:Option
227 \else
228 \edef\Preamble{\Preamble,xml}%
229 \Log:Note{for sources failing to produce
230 XML versions of HTML, try the command line option `jh-'}%
231 \fi
232 >>>
233
234
235
236 \<mozilla settings\><<<
237 \Configure{mozilla}{%
238 \:CheckOption{info}\if:Option
239 \Hinclude[*]{infoht4.4ht}\fi
240 \:CheckOption{info}\if:Option
241 \Hinclude[*]{infomml.4ht}\fi
242 \Hinclude[*]{html4.4ht}%
243 \Hinclude[*]{unicode.4ht}%
244 \Hinclude[*]{mathml.4ht}%
245 \Hinclude[*]{html-mml.4ht}%
246 \Hinclude[*]{mozilla.4ht}%
247 \:CheckOption{svg}%
248 \if:Option \else\:CheckOption{svg-}\fi
249 \if:Option \else\:CheckOption{svg-obj}\fi
250 \if:Option \else\:CheckOption{svg-inline}\fi
251 \if:Option \Hinclude[*]{svg-option.4ht}%
252 \:CheckOption{info}\if:Option \Hinclude[*]{infosvg.4ht}\fi
253 \fi
254 \:CheckOption{mathplayer}\if:Option
255 \Hinclude[*]{mathplayer.4ht}
256 \else
257 \Log:Note{For MathML on MSIE + MathPlayer use
258 the command line option `mathplayer'}
259 \fi
260 }
261 >>>
262
263
264 \<html5 settings\><<<
265 \Configure{html5}{%
266 \:CheckOption{info}\if:Option
267 \Hinclude[*]{infoht4.4ht}\fi
268 \:CheckOption{info}\if:Option
269 \Hinclude[*]{infomml.4ht}\fi
270 \Hinclude[*]{html4.4ht}%
271 \Hinclude[*]{unicode.4ht}%
272 \:CheckOption{mathml}\if:Option%
273 \else\:CheckOption{mathml-}\fi%
274 \if:Option%
275 \Hinclude[*]{mathml.4ht}%
276 \Hinclude[*]{html-mml.4ht}%
277 \else
278 \Hinclude[*]{html4-math.4ht}%
279 \fi
280 \:CheckOption{svg}%
281 \if:Option \else\:CheckOption{svg-}\fi
282 \if:Option \else\:CheckOption{svg-obj}\fi
283 \if:Option \else\:CheckOption{svg-inline}\fi
284 \if:Option \Hinclude[*]{svg-option.4ht}%
285 \:CheckOption{info}\if:Option \Hinclude[*]{infosvg.4ht}\fi
286 \fi
287 \Hinclude[*]{html5.4ht}%
288 }
289 >>>
290
291 \<tei settings\><<<
292 \Configure{tei}{%
293 \Hinclude[*]{tei.4ht}%
294 \Hinclude[*]{unicode.4ht}%
295 \:CheckOption{mathml}\if:Option%
296 \else\:CheckOption{mathml-}\fi%
297 \if:Option%
298 \Hinclude[*]{mathml.4ht}%
299 \Hinclude[*]{tei-mml.4ht}%
300 \else
301 \Hinclude[*]{tei-math.4ht}%
302 \fi
303 \:CheckOption{svg}%
304 \if:Option \else\:CheckOption{svg-}\fi
305 \if:Option \else\:CheckOption{svg-obj}\fi
306 \if:Option \else\:CheckOption{svg-inline}\fi
307 \if:Option \Hinclude[*]{svg-option.4ht}%
308 \:CheckOption{info}\if:Option \Hinclude[*]{infosvg.4ht}\fi
309 \fi
310 }
311 \Configure{tei-mml}{%
312 \:CheckOption{info}\if:Option
313 \Hinclude[*]{infomml.4ht}\fi
314 \Hinclude[*]{tei.4ht}%
315 \Hinclude[*]{unicode.4ht}%
316 \Hinclude[*]{mathml.4ht}%
317 \Hinclude[*]{tei-mml.4ht}%
318 \:CheckOption{svg}%
319 \if:Option \else\:CheckOption{svg-}\fi
320 \if:Option \else\:CheckOption{svg-obj}\fi
321 \if:Option \else\:CheckOption{svg-inline}\fi
322 \if:Option \Hinclude[*]{svg-option.4ht}%
323 \:CheckOption{info}\if:Option \Hinclude[*]{infosvg.4ht}\fi
324 \fi
325 }
326 >>>
327
328 \<jats settings\><<<
329 \Configure{jats}{%
330 \Hinclude[*]{html4.4ht}% we will build upon HTML
331 \Hinclude[*]{jats.4ht}%
332 \Hinclude[*]{mathml.4ht}%
333 \Hinclude[*]{html-mml.4ht}%
334 \Hinclude[*]{jats-mml.4ht}%
335 \Hinclude[*]{unicode.4ht}%
336 }
337 >>>
338
339 \<docbook settings\><<<
340 \Configure{docbook}{%
341 \Hinclude[*]{docbook.4ht}%
342 \Hinclude[*]{unicode.4ht}%
343 \:CheckOption{mathml}\if:Option%
344 \else\:CheckOption{mathml-}\fi%
345 \if:Option%
346 \Hinclude[*]{mathml.4ht}%
347 \Hinclude[*]{docbook-mml.4ht}%
348 \else
349 \Hinclude[*]{docbook-math.4ht}%
350 \fi
351 \:CheckOption{svg}%
352 \if:Option \else\:CheckOption{svg-}\fi
353 \if:Option \else\:CheckOption{svg-obj}\fi
354 \if:Option \else\:CheckOption{svg-inline}\fi
355 \if:Option \Hinclude[*]{svg-option.4ht}%
356 \:CheckOption{info}\if:Option \Hinclude[*]{infosvg.4ht}\fi
357 \fi
358 }
359 \Configure{docbook-mml}{%
360 \:CheckOption{info}\if:Option
361 \Hinclude[*]{infomml.4ht}\fi
362 \Hinclude[*]{docbook.4ht}%
363 \Hinclude[*]{unicode.4ht}%
364 \Hinclude[*]{mathml.4ht}%
365 \Hinclude[*]{docbook-mml.4ht}%
366 \:CheckOption{svg}%
367 \if:Option \else\:CheckOption{svg-}\fi
368 \if:Option \else\:CheckOption{svg-obj}\fi
369 \if:Option \else\:CheckOption{svg-inline}\fi
370 \if:Option \Hinclude[*]{svg-option.4ht}%
371 \:CheckOption{info}\if:Option \Hinclude[*]{infosvg.4ht}\fi
372 \fi
373 }
374 >>>
375
376
377 \<open office settings\><<<
378 \Configure{ooffice}{%
379 \:CheckOption{info}\if:Option
380 \Hinclude[*]{infoht4.4ht}%
381 \Hinclude[*]{infomml.4ht}%
382 \Hinclude[*]{infoof.4ht}\fi
383 \Hinclude[*]{ooffice.4ht}%
384 \:CheckOption{1}\if:Option\else
385 \:CheckOption{2}\if:Option\else
386 \:CheckOption{3}\if:Option\else
387 \:CheckOption{4}\if:Option\else
388 \:CheckOption{5}\if:Option\else
389 \:CheckOption{6}\if:Option\else
390 \:CheckOption{7}
391 \fi
392 \fi
393 \fi
394 \fi
395 \fi
396 \fi
397 \if:Option
398 \Hinclude[*]{ooimpress.4ht}%
399 \fi
400 \Hinclude[*]{unicode.4ht}%
401 \Hinclude[*]{mathml.4ht}%
402 \Hinclude[*]{ooffice-mml.4ht}%
403 }
404 >>>
405
406 \<save catcodes\><<<
407 \expandafter\edef\csname :RestoreCatcodes\endcsname{%
408 \expandafter\ifx \csname :RestoreCatcodes\endcsname\relax\else
409 \csname :RestoreCatcodes\endcsname \fi
410 \catcode`\noexpand :|=\the\catcode`:%
411 \ifnum \the\catcode`\#=6 \else
412 \catcode`\noexpand \#|=\the\catcode`\#\fi
413 \ifnum \the\catcode`\^=7 \else
414 \catcode`\noexpand \^|=\the\catcode`\^\fi
415 \let\expandafter\noexpand\csname :RestoreCatcodes\endcsname|=
416 \noexpand\UnDefcS}
417 \catcode`\:|=11 \catcode`\#|=6 \catcode`\^|=7
418 >>>
419
420
421
422
423
424 \<html mathltx settings\><<<
425 \Configure{mathltx}{%
426 \:CheckOption{info}\if:Option
427 \Hinclude[*]{infoht4.4ht}\fi
428 \Hinclude[*]{html4.4ht}%
429 \Hinclude[*]{unicode.4ht}%
430 \Hinclude[*]{mathltx.4ht}%
431 \Hinclude[*]{html-mltx.4ht}%
432 }
433 >>>
434
435 \<html jsmath settings\><<<
436 \Configure{jsmath}{%
437 \:CheckOption{info}\if:Option
438 \Hinclude[*]{infoht4.4ht}\fi
439 \Hinclude[*]{html4.4ht}%
440 \Hinclude[*]{unicode.4ht}%
441 \Hinclude[*]{mathltx.4ht}%
442 \Hinclude[*]{html-mltx.4ht}%
443 \Hinclude[*]{jsmath.4ht}%
444 \Hinclude[*]{html-jsmath.4ht}%
445 }
446 >>>
447
448
449
450
451 \<html emacspeak settings\><<<
452 \Configure{emspk}{%
453 \:CheckOption{info}\if:Option
454 \Hinclude[*]{infoht4.4ht}\fi
455 \Hinclude[*]{html4.4ht}%
456 \Hinclude[*]{unicode.4ht}%
457 \Hinclude[*]{mathml.4ht}%
458 \Hinclude[*]{html-mml.4ht}%
459 \Hinclude[*]{html-speech.4ht}%
460 \Hinclude[*]{html-speech-math.4ht}%
461 \Hinclude[*]{emacspeak.4ht}%
462 }
463 >>>
464
465
466 \<html emacspeak settings\><<<
467 \Configure{jsml}{%
468 \:CheckOption{info}\if:Option
469 \Hinclude[*]{infoht4.4ht}\fi
470 \Hinclude[*]{html4.4ht}%
471 \Hinclude[*]{unicode.4ht}%
472 \Hinclude[*]{mathml.4ht}%
473 \Hinclude[*]{html-mml.4ht}%
474 \Hinclude[*]{jsml.4ht}%
475 \Hinclude[*]{jsml-math.4ht}%
476 }
477 >>>
478
479
480
481
482 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
483
484 \OutputCodE\<tex4ht.4ht\>
485
486
487 \endinput
488 \subsection{Accents}