Debian Codegraph @

texmf-dist/doc/texlive/texlive-en/archive/live4ht.cfg-2021

raw
1 % $Id: live4ht.cfg 54322 2020-03-15 18:10:11Z karl $
2 % tex4ht configuration file for the TeX Live documentation.
3 % Accumulated over many years. Public domain.
4 %
5 % We specify tex4ht options on the htlatex command line; see ./Makefile.
6 % \Preamble still needs to be invoked, though.
7 \Preamble{}
8
9 % add extra stylesheet
10 \Configure{@HEAD}{\HCode{%
11 <link rel="stylesheet" type="text/css" href="\jobname.css" >\Hnewline
12 <link rel="stylesheet" type="text/css" href="tex-live.css" >\Hnewline
13 }}
14 % use png graphics as-is
15 \Configure{graphics*}
16 {png}
17 {\Needs{""}%
18 \Picture[pict]{../texlive-common/\csname Gin@base\endcsname.png}%
19 }
20 % or LaTeX complains it is missing.
21 \begin{document}
22
23 \EndPreamble
24
25 % simplify output for HTML. We leave TeX and LaTeX alone, since tex4ht
26 % actually does the lowered E (and raised A) in CSS.
27 \def\OMEGA{Omega}
28 \def\LaTeXe{LaTeX2e}
29 \def\eTeX{e-\TeX}
30 \def\acro#1{#1}
31 \def\MF{Metafont}
32 \def\BibTeX{BibTeX}
33 \def\warningbox{}
34 \def\endwarningbox{}
35
36 \newif\ifhackliterals
37 \ifx\tldocenglish\undefined \else \hackliteralstrue \fi
38 \ifx\tldocrussian\undefined \else \hackliteralstrue \fi
39 \ifx\tldocgerman\undefined \else \hackliteralstrue \fi
40 %
41 \ifhackliterals
42 % these definitions cause "missing } inserted" at \end{tabularx} in
43 % French and Czech. don't know why.
44 %
45 % don't make these into links, as happens with \path. We only have a few
46 % special characters that actually occur.
47 \def\dirname{\texttt\bgroup\catcode`\$=12 \catcode`\_=12 \catcode`\~=12
48 \finishliteral}
49 \def\finishliteral#1{#1\egroup}
50 \let\filename=\dirname
51 \fi