[tex4ht] [bug #624] File ended while scanning use of \AltMathOne. error
Michal Hoftich
puszcza-hackers at gnu.org.ua
Thu Apr 25 14:36:31 CEST 2024
Follow-up Comment #2, bug #624 (project tex4ht):
Hi Nasser,
I would prefer use of a special environment, like this:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% https://puszcza.gnu.org.ua/bugs/?624
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{longtable}
\usepackage{array}
\newcolumntype{C}{>{$}c<{$}}
\NewDocumentEnvironment{longmathtable}{m+b}{
\begin{longtable}{#1}
#2
\end{longtable}
}{}
\ifdefined\HCode
\RenewDocumentEnvironment{longmathtable}{m+b}{
\alteqtoks{\[\begin{array}{#1}
#2
\end{array}\]
}
}{}
\fi
\begin{document}
\begin{longmathtable}{CCC}
& {} & \textrm{Let's solve}
\\
{} & {} & \left[y^{\prime}=1+2 x , y \left(0\right)=3\right]
\end{longmathtable}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I've defined a new column type, C, so you don't need to type all these ugly
preambles, and also so it works better with MathJax. The redefined environment
will print array in math mode.
_______________________________________________________
Reply to this item at:
<http://puszcza.gnu.org.ua/bugs/?624>
_______________________________________________
Message sent via/by Puszcza
http://puszcza.gnu.org.ua/
More information about the tex4ht
mailing list.