I am trying to convert some TeX files to html, for this I am using tex4ht. I am also using myconfig.cfg to produce html file.
In this config file I have declared following two lines to translate \textit and \textbf declarations to <span class"italic>data</span>
and <span class"bold>data</span>.
\Configure{textit}{\HCode{`<span class="italic">`}}{\HCode{`</span>`}}<br />
\Configure{textbf}{\HCode{`<span class="bold">`}}{\HCode{`</span>`}}
After running through tex4ht using the command htlatex test5 "myconfig, fn-out", output is
<span class="italic"><span class="t1xi-x-x-109">italic</span></span>
<span class="bold"><span class="t1xb-x-x-109">bold</span></span>
my question is how to tell tex4ht to not to generate <span class="t1xi-x-x-109"> and <span class="t1xb-x-x-109">.
\Configure{textit}{\ifvmode\ShowPar\fi\HCode{<em>}\NoFonts}{\EndNoFonts\HCode{</em>}}. What is\ifvmode\ShowPar\fipurpose? – mmj Aug 03 '16 at 05:57xmlcode may be produced. – michal.h21 Aug 03 '16 at 18:10