[tex4ht] not translating math

Matteo Gamboz gamboz at medialab.sissa.it
Mon Sep 30 12:09:36 CEST 2013


Hi all,
  I'm looking for a way to keep math as it is. For example:

J\`er\'ome $\alpha < x^{\infty}$ end
→
Jèróme <math><![CDATA[$\alpha < x^{\infty}$]]></math> end

but, by now I'm only able to get to this:
Jèróme <math><![CDATA[α &#x003C; x∞]]></math> end

So I have the following problems/wishes:
1. I'd prefer that anything between "$" stays untouched (i.e. "\alpha"
stays "\alpha" ad does not become "α"; the same goes for eventual
user-defined macros).

2. Closely related to point 1, I'm loosing ^ and _
About this, I thought I could use "no_" and "no^", but (my fault), I
wasn't able to.
If possible I'd prefer not to use \Configure{SUB} etc.

3. if the point 1 above is not possible, I'd like to tell tex4ht that
"<" is inside a XML CDATA section, so that there is no need for the
entity &#x003C;

4. I'd like to maintain the "J\`er\'ome" → "Jèróme" translations


I'm using xhtml,docbook and \Configure{$} (attaching examples).

I compile using
htlatex a.tex m.cfg " -cunihtf -utf8"

An option that I'd like to try is to see if redefining \DviMat can
help, but I'm a bit intimidated :-)

Could anyone point me in the right direction?
Thanks a lot
m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.tex
Type: text/x-tex
Size: 96 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex4ht/attachments/20130930/7e6accd2/attachment.bin>
-------------- next part --------------
\Preamble{xhtml,docbook}
\Configure{BODY}{}{}\Configure{DOCTYPE}{}\Configure{VERSION}{} % just for clarity
\Configure{$}
        {\HCode{<math><![CDATA[}}
        {\HCode{]]></math>}}
        {}
\begin{document}
\EndPreamble
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://tug.org/pipermail/tex4ht/attachments/20130930/7e6accd2/attachment-0001.bin>


More information about the tex4ht mailing list