% $Id: live4ht.cfg 54322 2020-03-15 18:10:11Z karl $
% tex4ht configuration file for the TeX Live documentation.
% Accumulated over many years.  Public domain.
%
% We specify tex4ht options on the htlatex command line; see ./Makefile.
% \Preamble still needs to be invoked, though.
\Preamble{}

% add extra stylesheet
\Configure{@HEAD}{\HCode{%
\Hnewline
\Hnewline
}}
% use png graphics as-is
\Configure{graphics*}
         {png}
         {\Needs{""}%
          \Picture[pict]{../texlive-common/\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 few
  % special characters that actually occur.
  \def\dirname{\texttt\bgroup\catcode`\$=12 \catcode`\_=12 \catcode`\~=12
    \finishliteral}
  \def\finishliteral#1{#1\egroup}
  \let\filename=\dirname
\fi
