[tex4ht] [bug #337] tex4ht changes \_ in math mode to X in HTML when not including \usepackage[T1]{fontenc}

Nasser M. Abbasi nma at 12000.org
Wed Jul 27 22:57:31 CEST 2016


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

                 Summary: tex4ht changes \_ in math mode to X in HTML when not
including \usepackage[T1]{fontenc}
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Wed 27 Jul 2016 11:57:31 PM EEST
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This looks like a bug to me, but if it is not, this can be closed.

I also posted this with screen shots here 
http://tex.stackexchange.com/questions/321259/tex4ht-changes-in-math-mode-to-x-in-html-when-not-including-usepackaget1f

tex4ht changes \_ to X when not including \usepackage[T1]{fontenc}

Here is MWE

\documentclass[11pt]{article}

\ifdefined\HCode
  \usepackage[utf8]{luainputenc}
   %\usepackage[T1]{fontenc} %do not use. Make tex4ht \verb not accept 
different fonts
\else
    \usepackage{fontspec}
\fi   

\usepackage{amsmath,mathtools}

\begin{document}    
\[ 
    y = \_C1
\]    
\end{document} 

Compiled using make4ht --lua -u foo.tex and looking at the HTML shows  \_ was
changed to X

TL 2016 on Linux mint 64 bit





    _______________________________________________________

Reply to this item at:

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

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



More information about the tex4ht mailing list