qmcpack/manual/qmcpack_manual.cfg

48 lines
1.6 KiB
INI
Raw Normal View History

\Preamble{ext=html,charset="utf-8",p-width,pic-align}
\Configure{Picture}{.svg}
\DeclareGraphicsRule{dmn}{bmp}{.xbb}{}
\Configure{graphics*}
{png}
{%the special command below so it will copy the png over
\special{t4ht+@File: \csname Gin@base\endcsname.png}%
\Picture[pict]{\csname Gin@base\endcsname .png%
\space width="\expandafter\the\csname Gin@req@width\endcsname"
}%
}%
% this renames all the external svg conversion dumies .dmn to .svg's in the html
\Configure{graphics*}
{dmn}
{\Picture[pict]{\csname Gin@base\endcsname.svg%
\space width="\expandafter\the\csname Gin@req@width\endcsname"
}%
}%
%need this below for MATH.
\Configure{Picture}{.svg}
\makeatletter
\newcommand\emwidth{11}
\newcommand\CalcRem[1]{\strip@pt\dimexpr(#1)/\emwidth}
\Configure{graphics*}
{svg}
{\Picture[pict]{\csname Gin@base\endcsname.svg
\space style="width:\CalcRem{\Gin@req@width}em;"
}%
\special{t4ht+@File: \csname Gin@base\endcsname.svg}
}
\makeatother
\ScriptEnv{verbatim}%
{\NoFonts\hfill\break
\HCode{<pre>}}
{\HCode{</pre>}\EndNoFonts\endgraf}
\Css{ body{font-family: Arial, Helvetica, DejaVu Sans, sans-serif;} }
\Css{ .verbatim{border:1px solid; margin:0px 10px 10px 10px; padding: 10px; border-radius: 5px; font-family: Courier New !important, Consolas, Monaco, Lucida Console, monospace; white-space: pre !important;} }
\begin{document}
\Configure{$}{\PicMath}{\EndPicMath}{}
\Configure{PicMath}{}{}{}{class="math";align="absmiddle"}
\EndPreamble