[tex4ht] [bug #236] using {newtxtext, newtxmath} packages breaks MathML generation in tex4ht

Nasser M. Abbasi puszcza-hackers at gnu.org.ua
Tue Jan 6 20:51:32 CET 2015


URL:
  <http://puszcza.gnu.org.ua/bugs/?236>

                 Summary: using {newtxtext,newtxmath} packages breaks MathML
generation in tex4ht
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Tue 06 Jan 2015 09:51:32 PM EET
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Minor
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

There is a work around for this, but adding it here for tracking just in
case.

I found when adding the line \usepackage{newtxtext,newtxmath} breaks mathml
generated by tex4ht and hence the math looks bad when viewed in the browser.
It seems to be a font issue.

\documentclass[10pt,notitlepage]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{newtxtext,newtxmath}
\usepackage{etex}    
\begin{document}
\[
  \int \sin(x) \, dx
\]
\end{document}

compiling as

htlatex foo.tex "nma.cfg,charset=utf-8" " -cunihtf -utf8"

Produces invalid HTML. Please see

http://tex.stackexchange.com/questions/220555/why-using-newtxtext-newtxmath-packages-breaks-mathml-generation-in-tex4ht

Work around is not to use \usepackage{newtxtext,newtxmath} when compiling with
tex4ht if target is mathml.






    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?236>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list