bugtex4ht - 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 <nma123>
Submitted on:  Tue 06 Jan 2015 09:51:32 PM EET  
 
Category: NonePriority: 5 - Normal
Severity: 3 - MinorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 26 Jul 2020 07:41:10 PM EEST, comment #4:

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

Michal Hoftich <michal_h21>
Project Member
Sun 26 Jul 2020 07:19:07 PM EEST, 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/Baskervaldx
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>
Project Administrator
Sat 25 Jul 2020 05:18:19 PM EEST, 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>
Project Member
Sat 25 Jul 2020 01:29:31 AM EEST, 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>
Project Member
Tue 06 Jan 2015 09:51:32 PM EET, 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"

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.

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?
    If so, you can click here to add your encouragement to it.
    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):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 25 Jul 2020 05:18:19 PM EESTmichal_h21Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray