2018-06-11 23:33:54 +08:00
|
|
|
\Preamble{ext=html,charset="utf-8",p-width,pic-align}
|
|
|
|
\Configure{Picture}{.svg}
|
2018-06-16 05:41:35 +08:00
|
|
|
\DeclareGraphicsRule{dmn}{bmp}{.xbb}{}
|
2018-06-11 23:33:54 +08:00
|
|
|
\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"
|
|
|
|
}%
|
|
|
|
}%
|
|
|
|
|
2018-06-16 05:41:35 +08:00
|
|
|
% this renames all the external svg conversion dumies .dmn to .svg's in the html
|
2018-06-11 23:33:54 +08:00
|
|
|
\Configure{graphics*}
|
2018-06-16 05:41:35 +08:00
|
|
|
{dmn}
|
2018-06-11 23:33:54 +08:00
|
|
|
{\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
|
2018-06-16 05:41:35 +08:00
|
|
|
\newcommand\emwidth{11}
|
2018-06-11 23:33:54 +08:00
|
|
|
\newcommand\CalcRem[1]{\strip@pt\dimexpr(#1)/\emwidth}
|
2018-06-12 23:06:40 +08:00
|
|
|
\Configure{graphics*}
|
2018-06-11 23:33:54 +08:00
|
|
|
{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
|
2018-06-12 23:06:40 +08:00
|
|
|
\ScriptEnv{verbatim}%
|
|
|
|
{\NoFonts\hfill\break
|
|
|
|
\HCode{<pre>}}
|
|
|
|
{\HCode{</pre>}\EndNoFonts\endgraf}
|
|
|
|
|
2018-06-15 02:40:53 +08:00
|
|
|
\Css{ body{font-family: Arial, Helvetica, DejaVu Sans, sans-serif;} }
|
2018-06-16 05:41:35 +08:00
|
|
|
\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;} }
|
2018-06-11 23:33:54 +08:00
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
2018-06-12 23:06:40 +08:00
|
|
|
|
2018-06-11 23:33:54 +08:00
|
|
|
\Configure{$}{\PicMath}{\EndPicMath}{}
|
|
|
|
\Configure{PicMath}{}{}{}{class="math";align="absmiddle"}
|
2018-06-12 23:06:40 +08:00
|
|
|
\EndPreamble
|