[tex4ht] not translating math
Matteo Gamboz
gamboz at medialab.sissa.it
Tue Oct 1 15:59:47 CEST 2013
On Mon, Sep 30, 2013 at 02:07:04PM -0700, William F Hammond wrote:
> On Mon, Sep 30, 2013 at 3:09 AM, Matteo Gamboz <gamboz at medialab.sissa.it>wrote:
>
> > 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
...
> For translating LaTeX to DocBook you want, as I understand it, to have TeX
> source put inside <math> tags whose content is the literal TeX source as a
> CDATA marked section. Yes, your .cfg sets up the beginning and end of the
> CDATA marked section, but it does not give tex4ht a way to understand that
> the TeX math markup should be passed untouched. Probably, one could write
> an alternate version of dblatex to do this.
>
Thank for the answer.
I'm not sure I understand about the dblatex hint. If I'm not mistaken
it's a system to go from docbook to latex.
In any case, I'm targeting a very simplified JATS, and I'm now testing
a solution including:
\Configure{IMG}{\let\PictureFile\empty}{}{}{}{}%%
\newtoks\eqtoks
\def\AltMath#1${\eqtoks{#1}%%
\Picture*[\HCode{\the\eqtoks}]{}$#1$\EndPicture$}
\Configure{$}
{\HCode{<inline-formula><tex-math><![CDATA[$}}
{\HCode{$]]></tex-math></inline-formula>}}
{\expandafter\AltMath}%%
The interesting part (\AltMath) I found on
http://www.tug.org/applications/tex4ht/mn5.html#QQ1-5-23
m
-------------- 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/20131001/97fd97fd/attachment.bin>
More information about the tex4ht
mailing list