\Preamble{ext=htm,charset="utf-8",p-width,pic-align} %work well with something, I forgot what \Configure{VERSION}{} \Configure{DOCTYPE}{\HCode{\Hnewline}} \Configure{HTML}{\HCode{\Hnewline}}{\HCode{\Hnewline}} \Configure{@HEAD}{} \Configure{@HEAD}{\HCode{\Hnewline}} %\Configure{@HEAD}{\HCode{\Hnewline}} \Configure{@HEAD}{\HCode{\Hnewline}} \Configure{@HEAD}{\HCode{\Hnewline}} \Configure{@HEAD}{\HCode{\Hnewline}} \Configure{Picture}{.svg} \makeatletter \Configure{graphics*} {svg} { {\Configure{Needs}{File: \Gin@base.svg}\Needs{}} \Picture[\csname a:GraphicsAlt\endcsname]{\csname Gin@base\endcsname.svg \csname a:Gin-dim\endcsname} } % \Configure{graphics*} {eps}% {\Needs{"convert \csname Gin@base\endcsname.eps \csname Gin@base\endcsname.png"}% \Picture[pict]{\csname Gin@base\endcsname.png}% \special{t4ht+@File: \csname Gin@base\endcsname.png} } %----------------------------- %see http://tex.stackexchange.com/questions/195410/setting-image-size-using-em-units-instead-of-pt \makeatletter % Various helper functions % default font size \newcommand\emwidth{16} \let\emwidth\f@size % convert pt to rem \newcommand\CalcRem[1]{\strip@pt\dimexpr(#1)/\emwidth} %\Configure{graphics*} % {png} % {% we must add the image to the list of output files % \special{t4ht+@File: \csname Gin@base\endcsname.png} % \Picture[pict]{\csname Gin@base\endcsname\PictExt % \space style="width:\CalcRem{\Gin@req@width}em;" % }% % } %\Configure{graphics*} % {eps} % {% you need to coonvert eps to png first % \Needs{"convert \csname Gin@base\endcsname.eps % \csname Gin@base\endcsname.png"}% % \special{t4ht+@File: \csname Gin@base\endcsname.png} % \Picture[pict]{\csname Gin@base\endcsname .png % \space style="width:\CalcRem{\Gin@req@width}em;" % }% % } \makeatother %-------------------------- \ConfigureEnv{block} %{\ifvmode \IgnorePar\fi \EndP\HCode{
}} %why these do not work? {\HCode{
}} {\HCode{
}} {}{} %-------------------------- \catcode`\:=11 \catcode`\@=11 \Configure{HtmlPar} {\EndP\HCode{%

}} {\EndP\HCode{%

}} {{\Tg

}} {{\Tg

}}% %------------------------ %http://tex.stackexchange.com/questions/8434/how-to-scale-math-font-only %\DeclareMathSizes {t-size} {mt-size} {s-size} {ss-size} %Basically, we instruct the use of a as the math %text size, as the script size and the %scriptscript size to be used in math, when is the %current text size. You can adjust the parameters to suit. %\DeclareMathSizes{12}{11}{7}{6} %\DeclareMathSizes{12}{12.5}{8}{7} %\DeclareMathSizes{10}{9}{5}{4} %\DeclareMathSizes{11}{10}{6}{5} %\DeclareMathSizes{11}{11.5}{7}{6} \begin{document} % \ConfigureToc{section} % {\tocNesting{1}\HCode{
}}{ }{}{ } % \ConfigureToc{subsection} % {\tocNesting{2}\HCode{
}}{ }{}{ } % \ConfigureToc{subsubsection} % {\tocNesting{3}\HCode{
}}{ }{}{ } % \Configure{tableofcontents} % {} {\tocNesting{0}} {} {} {} % \newcount\c % \def\tocNesting#1{% % \expandafter\ifx \csname level#1\endcsname\relax % \ifnum #1>0 \HCode{
    }\fi % \expandafter\def \csname level#1\endcsname{\HCode{
}} % \fi % \c=#1 \advance\c by 1 % \loop % \csname level\the\c\endcsname % \expandafter\let \csname level\the\c\endcsname\relax % \advance\c by 1 % \ifnum \c<10 \repeat % } %\ConfigureToc{part,chapter,section,subsection} %\TocAt{chapter,section,subsection,subsubsection} %\TocAt{chapter,section} %\TocAt{section,subsection,subsubsection} %\TocAt{subsection} %\TocAt{subsubsection} \Configure{$}{\PicMath}{\EndPicMath}{} \Configure{PicMath}{}{}{}{class="math";align="absmiddle"} \Css{.block { padding: 1px 2px; border: 1px solid \#ccc; color: \#1c1c1c; %overflow: hidden; /* fix for Firefox causes problem with chrome*/ %width: 200px; position: relative; margin: 1px auto; %box-shadow: 2px 2px 20px -5px \#bfbfbf; %-webkit-box-shadow: 2px 2px 20px -8px \#bfbfbf; %-moz-box-shadow: 2px 2px 20px -5px \#bfbfbf; border-radius: 0.2em; -moz-border-radius: 0.2em; -webkit-border-radius: 0.2em; -moz-box-shadow: 2px 1px 6px 0px rgba(50, 50, 50, 0.75); -webkit-box-shadow:2px 1px 6px 0px rgba(50, 50, 50, 0.75); box-shadow:2px 1px 6px 0px rgba(50, 50, 50, 0.75); }} \Css{.sc{font-variant: small-caps;}} \Css{.bf{font-weight: bold;}} %\Css{small{font-size: .8em;}} %\Css{.tt,.verb, .fancyvrb{font-family: "Courier New"; white-space: nowrap; % color: \#222; font-size: 100.0\%;}} \Css{.tt,.verb,.fancyvrb{font-family: monospace; white-space: nowrap; color:\#000; font-size:100\%; background-color:\#fff;}} \Css{div.verbatim{font-family: monospace; white-space: nowrap; color:\#000; font-size:100\%; background-color:\#fff;}} %\Css{.ec-lmtt-12, .ec-lmtt-10 {font-family: Verdana, sans-serif; white-space: nowrap; % font-size: 100.0\%;}} %LINKS URLs %\Css{.cmtt-12{font-family: Verdana, sans-serif; white-space: nowrap; % font-size: 100.0\%;}} %LINKS URLs %\Css{td {vertical-align: middle; auto;}} %this messes up the main index.tex page since more than one column %This below allows one to allign images in table cells. but %can mess up things when using images for math. %\Css{td img {display:block; margin: 0 auto;}} %this messes up the main index.tex page since more than one column %\Css{td {vertical-align: middle;}} \Css{div {float:auto;}} \Css{div.tabular {text-align: left; }} \Css{div.longtable {text-align: left; }} \Css{html{ font-size: 100.0\%; }} \Css{body{margin-top: 1em; margin-bottom: 1em; width: 95\%; margin-left: auto; margin-right: auto; padding: 0em; color: \#444; %box-shadow: 2px 2px 20px -5px #bfbfbf; %-webkit-box-shadow: 2px 2px 20px -8px #bfbfbf; %-moz-box-shadow: 2px 2px 20px -5px #bfbfbf; % % box-shadow: 2px 2px 20px -5px \#bfbfbf; % -webkit-box-shadow: 2px 2px 20px -8px \#bfbfbf; % -moz-box-shadow: 2px 2px 20px -5px \#bfbfbf; % font-family: Verdana, sans-serif; %line-height: 16.11px; %font-family: Georgia, serif; %font-family: Helvetica, Arial; font-family: arial, sans-serif; %line-height: 16px; font-style: normal; font-size: 100.0\%; %border: 1px solid \#F0F0F0 ; text-align:left; background: \#FFFFFF;}} \Css{ol { margin: 0px 2px 0 0; /* that's, top 0, right, bottom 0, left 0 */ //padding: 0px 0px 0px 0px; padding-top: 5px; padding-bottom: 5px; }} \Css{table { border-collapse: collapse; margin: 0 auto; border-spacing: 0;}} \Css{longtable { border-collapse: collapse; margin: 0 auto; border-spacing: 0;}} \Css{h4,h5 ,h6,h3,h2{ margin-bottom:5px; margin-top:5px; }} \Css{.infobox { padding: 1px 2px; border: 1px solid \#ccc; color: \#1c1c1c; %width: 200px; position: relative; margin: 1px auto; box-shadow: 2px 2px 20px -5px \#bfbfbf; -webkit-box-shadow: 2px 2px 20px -8px \#bfbfbf; -moz-box-shadow: 2px 2px 20px -5px \#bfbfbf; }} \Css{p.indent{ text-indent: 0em; }} \Css{div.fbox { border-style: solid; border-width: 1px; }} %fix for chrome to show frame around verbatim %to make the whole table lefty adjusted in HTML %\Css{table.tabular {margin-left: 0em;}} \EndPreamble