summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/source/texlive/texlive-en/live4ht.cfg
blob: 8276b56970b51462a3e6c4bf21198d20553ba003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
% tex4ht configuration file for the TeX Live documentation.
% Accumulated over many years.  Public domain.
%
% html specifies the main output format.
% info for extra debugging info in the log files.

% have html in one piece (including footnotes).
\Preamble{charset=iso-8559-1,html,info,fn-in}

% add extra stylesheet
\Configure{@HEAD}{\HCode{%
<link rel="stylesheet" type="text/css" href="\jobname.css" />\Hnewline
<link rel="stylesheet" type="text/css" href="tex-live.css" />\Hnewline
}}
% use png graphics as-is
\Configure{graphics*}
         {png}
         {\Needs{""}%
          \Picture[pict]{\csname Gin@base\endcsname.png}%
         }
% or LaTeX complains it is missing.
\begin{document}

\EndPreamble

% simplify output for HTML.  We leave TeX and LaTeX alone, since tex4ht
% actually does the lowered E (and raised A) in CSS.
\def\OMEGA{Omega}
\def\LaTeXe{LaTeX2e}
\def\eTeX{e-\TeX}
\def\acro#1{#1}
\def\MF{Metafont}
\def\BibTeX{BibTeX}
\def\warningbox{}
\def\endwarningbox{}

\newif\ifhackliterals
\ifx\tldocenglish\undefined \else \hackliteralstrue \fi
\ifx\tldocrussian\undefined \else \hackliteralstrue \fi
\ifx\tldocgerman\undefined \else \hackliteralstrue \fi
%
\ifhackliterals
  % these definitions cause "missing } inserted" at \end{tabularx} in
  % French and Czech.  don't know why.
  %
  % don't make these into links, as happens with \path.  We only have a couple
  % special characters that actually occur.
  \def\dirname{\texttt\bgroup\catcode`\$=12 \catcode`\_=12 \finishliteral}
  \def\finishliteral#1{#1\egroup}
  \let\filename=\dirname
\fi