[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
URL:
<http://puszcza.gnu.org.ua/bugs/?581>
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
_______________________________________________________
Details:
reference and screen shots at
https://tex.stackexchange.com/questions/665779/tex4ht-does-not-show-some-math-in-table
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.
------------------------
\documentclass[12pt]{book}
\usepackage{amsmath,mathtools}
\usepackage{array}
\begin{document}
\begin{tabular}{|p{.6in}|>{\setlength\columnwidth{5.8in}}p{5.8in}|}\hline
ODE&\vspace{-2em}\begin{gather*}
y^{\prime}-1-2 x=0
\end{gather*}
With initial conditions
$
\begin{aligned}
[y \left(0\right) = 3]
\end{aligned}
$
\\ \hline
program solution&\vspace{-1em}
\begin{align*}
y \left(x \right) = x^{2}+x +3
\end{align*}
Verified OK.
\\ \hline
\end{tabular}
\end{document}
-----------------------------
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'>
<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>
<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} \)
</p></td></tr><tr
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
class='noindent'>program
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.
</p></td>
</tr><tr class='hline'><td></td><td></td></tr></table>
</div>
</body>
</html>
--------------------------------
Using TL 2022 on linux
>which tex4ht
/usr/local/texlive/2022/bin/x86_64-linux/tex4ht
>make4ht --version
make4ht version v0.3l
>
How to correct this so that the math shows up in HTML?
_______________________________________________________
Reply to this item at:
<http://puszcza.gnu.org.ua/bugs/?581>
_______________________________________________
Message sent via/by Puszcza
http://puszcza.gnu.org.ua/
More information about the tex4ht
mailing list.