[tex4ht] [bug #581] tex4ht does not show some math in table

Nasser M. Abbasi puszcza-hackers at gnu.org.ua
Sat Nov 19 19:42:47 CET 2022


                 Summary: tex4ht does not show some math in table
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Sat Nov 19 18:42:47 2022
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



reference and screen shots at 


This MWE makes one small table of 2 rows of type p. The first row has has two
math equations. tex4ht only shows the first one but not the second. While
compiling with lualatex to pdf shows both as expect.


y^{\prime}-1-2 x=0
With initial conditions
[y \left(0\right) = 3]
\\ \hline
program solution&\vspace{-1em}
y \left(x \right) = x^{2}+x +3
Verified OK. 
\\ \hline


the pdf shows the math on the right in first row. But HTML does not.

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

Here is the raw HTML generated. I see the missing math is there, but it is not
displayed but it is sitting there doing nothing.

<!DOCTYPE html> 
<html lang='en-US' xml:lang='en-US'> 
<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'
<div class='tabular'> <table class='tabular' id='TBL-1'><colgroup
id='TBL-1-1g'><col id='TBL-1-1' /></colgroup><colgroup id='TBL-1-2g'><col
id='TBL-1-2' /></colgroup><tr class='hline'><td></td><td></td></tr><tr
id='TBL-1-1-' style='vertical-align:baseline;'><td class='td11' id='TBL-1-1-1'
style='white-space:normal; text-align:left;'> <!-- l. 18 --><p
class='noindent'>ODE      </p></td>
                  <td class='td11' id='TBL-1-1-2' style='white-space:normal;
text-align:left;'> <!-- l. 20 --><p class='noindent'>\begin {gather*} 
y^{\prime }-1-2 x=0  \end {gather*} With initial conditions \( \begin
{aligned} [y \left (0\right ) = 3] \end {aligned} \)
class='hline'><td></td><td></td></tr><tr id='TBL-1-2-'
style='vertical-align:baseline;'><td class='td11' id='TBL-1-2-1'
style='white-space:normal; text-align:left;'> <!-- l. 28 --><p
solution   </p></td><td class='td11' id='TBL-1-2-2' style='white-space:normal;
text-align:left;'> <!-- l. 31 --><p class='noindent'>\begin {align*}  y \left
(x \right ) = x^{2}+x +3  \end {align*}
</p><!-- l. 32 --><p class='noindent'>Verified OK.                            
</tr><tr class='hline'><td></td><td></td></tr></table>                        

Using TL 2022 on linux

>which tex4ht
>make4ht --version
make4ht version v0.3l

How to correct this so that the math shows up in HTML?


Reply to this item at:


  Message sent via/by Puszcza

More information about the tex4ht mailing list.