bugtex4ht - Bugs: bug #537, tex4ht having trouble with...

 
 
Show feedback again

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

bug #537: tex4ht having trouble with $\frac{\partial u}{\partial x}=0$ in mathjax mode

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Wed Dec 1 22:07:32 2021  
 
Category: NonePriority: 5 - Normal
Severity: 7 - ImportantStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu Dec 2 09:20:42 2021, comment #2:

That's great that it works! I hope we can close this issue now.

Michal Hoftich <michal_h21>
Project Member
Wed Dec 1 22:53:06 2021, comment #1:

Thanks for the report. This issue was caused by previous change to the MathJax processing. The problem was that paragraphs in MathMode produced \par command instead of blank lines. I've used regex to fix that, but the issue is that it replaces \partial with two blank lines and string "tial". I've updated the regex, so it requires some white space after \par, which seems to fix the issue. Try the attached version of `mathjax-latex-4ht.4ht`.

(file #447)

Michal Hoftich <michal_h21>
Project Member
Wed Dec 1 22:07:32 2021, original submission:

reference and screen shots at

https://tex.stackexchange.com/questions/624671/tex4ht-having-trouble-with-frac-partial-u-partial-x-0-in-mathjax-mode

For some reason, after recent update of texlive, tex4ht in mathjax mode no longer generate valid math for this

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\[
\frac{\partial u}{\partial x}=0
\]
\end{document}
Compiled using

make4ht -ulm default -a debug foo.tex "mathjax,htm"

gives wrong rendering as shown in the link above.

The HTML generated is
====================
<!DOCTYPE html>
<html lang='en-US' xml:lang='en-US'>
<head><title></title>
<meta charset='utf-8' />
<meta content='TeX4ht (https://tug.org/tex4ht/)' name='generator' />
<meta content='width=device-width,initial-scale=1' name='viewport' />
<link href='foo.css' rel='stylesheet' type='text/css' />
<meta content='foo.tex' name='src' />
<script>window.MathJax = { tex: { tags: "ams", }, }; </script>
<script async='async' id='MathJax-script' src='https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js' type='text/javascript'></script>
</head><body>
<!-- l. 9 --><p class='noindent'>\[ \frac {

tial u}{

tial x}=0 \]
</p>

</body>
</html>
=================

What happened? Why tex4ht no longer generates correct math? This only happens when using mathjax mode. When not using mathjax mode, the output is correct.

TL 2021 updated about 2 weeks ago on Linux.

Thank you
--Nasser

Nasser M. Abbasi <nma123>

 

Attached Files
file #447:  mathjax-latex-4ht.4ht added by michal_h21 (4kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Updated the item)
  • -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):

     

     

    2 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Dec 2 09:20:42 2021michal_h21Open/ClosedOpen=>Closed
    Wed Dec 1 22:53:06 2021michal_h21Attached File-=>Added mathjax-latex-4ht.4ht, #447
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray