tex4ht - Bugs: bug #236, using {newtxtext,newtxmath}...

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

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

 Submitted by: Nasser M. Abbasi Submitted on: Tue Jan 6 21:51:32 2015 Category: None Priority: 5 - Normal Severity: 3 - Minor Status: None Privacy: Public Assigned to: None Open/Closed: Closed

Sun Jul 26 19:41:10 2020, comment #4:

Yes, it seems correct. Thanks, Karl. Newtx seems like a huge project.

Michal Hoftich <michal_h21>
Sun Jul 26 19:19:07 2020, comment #3:

I installed the new htf files in TL. There were a ton. Hope that was the right thing to do.

alias/LibertineMath
alias/NewTXMath
alias/TeXGyreTermes
alias/TeXGyreTermesX
alias/XCharterMath
alias/coch
alias/erew
alias/ntxsups
alias/ntxtm
alias/t1xbtt
alias/t1xbttsc
alias/t1xtt
alias/t1xttsc
alias/tcxbtt
alias/txbexas
alias/txbmiaX
alias/txbsyb
alias/txbsyc
alias/txbsys
alias/txbtt
alias/txbttsc
alias/txfonts/pxbsyc.htf
alias/txmiaX
alias/txsys
alias/txtt
alias/txttsc
unicode/LibertineMath
unicode/MinLib
unicode/NCXFourierMath
unicode/NewTXMath
unicode/Nimbus_Roman_No9_L
unicode/TeXGyreTermes
unicode/TeXGyreTermesX
unicode/coch
unicode/ebg
unicode/erewMath
unicode/ntxsups
unicode/ntxtm
unicode/stickstooMath
unicode/stxickstooMath
unicode/t1xtt
unicode/tcxtt
unicode/txbexs
unicode/txbmiaX
unicode/txbsys
unicode/txexas
unicode/txexs
unicode/txmiaX
unicode/txsyb
unicode/txsyc
unicode/txsys
unicode/txtt

Karl Berry <karl>
Sat Jul 25 17:18:19 2020, comment #2:

In the end, I've identified all those glyphs, so Newtx fonts are now supported. The HTF files were generated automatically, so I hope that everything is correct.

Michal Hoftich <michal_h21>
Sat Jul 25 01:29:31 2020, comment #1:

OK, I am working on this question for more than five year now. Some details can be found in my answer on TeX.sx: https://tex.stackexchange.com/a/460843/2891

Thanks to Michael Sharpe's talk at TUG, I learned about existence of the glyphtounicode-ntx.tex file. It contains mapping of glyphs from Newtx fonts to Unicode. I am now able to generate .htf files where only relatively small number of glyphs doesn't have the correct mapping to Unicode. Here is the list:

aciiacutedbl
asciiacute
asciibreve
asciicaron
asciidieresis
asciigrave
asciigravedbl
asciimacron
circledP
cwmascender
cwmcapital
guillbracketleft
guillbracketright
hyphendblchar
newtieaccentcapital
newtieaccentlowercase
openbracketleft
openbracketright
orogate
Orogate

I found visual appearance of some of these in this file: http://texdoc.net/texmf-dist/doc/fonts/lm/lm-info.pdf

Some of them, like cwmcapital clearly doesn't have any visual appearance. Others like orogate, are some esoteric characters, that I haven't ever seen. I do not know if they have any corresponding Unicode character.

If anyone know about Unicode mapping for any of these, I will be more then happy to add them to the HTF files. I hope to add them to TeX4ht sources soon.

Michal Hoftich <michal_h21>
Tue Jan 6 21:51:32 2015, original submission:

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"

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

Nasser M. Abbasi <nma123>

No files currently attached

Depends on the following items: None found

Items that depend on this one: None found

Carbon-Copy List
• -unavailable- added by karl (Posted a comment)
• -unavailable- added by michal_h21 (Posted a comment)
• -unavailable- added by nma123 (Submitted the item)
•

Do you think this task is very important?
This task has 0 encouragements so far.

Only logged-in users can vote.

Please enter the title of George Orwell's famous dystopian book (it's a date):