Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TeX capacity exceeded when using amsmath split in equations #132

Closed
alfredholmes opened this issue Aug 13, 2023 · 5 comments
Closed

TeX capacity exceeded when using amsmath split in equations #132

alfredholmes opened this issue Aug 13, 2023 · 5 comments

Comments

@alfredholmes
Copy link

The following file

\documentclass{article}

\usepackage{amsmath}

\begin{document}
\begin{equation}
\begin{split}
f(x) = x \\
f(y) = z
\end{split}
\end{equation}
\end{document}

Doesn't compile with make4ht Tested with v0.3m on Linux.

$ make4ht test.tex 
[STATUS]  make4ht: Conversion started
[STATUS]  make4ht: Input file: test.tex
[WARNING] tocid: char-def module not found
[WARNING] tocid: cannot fix section id's
[ERROR]   htlatex: Compilation errors in the htlatex run
[ERROR]   htlatex: Filename	Line	Message
[ERROR]   htlatex: ?	7	 TeX capacity exceeded, sorry [save size=200000].
[FATAL]   make4ht-lib: Fatal error. Command htlatex returned exit code 1

@alfredholmes alfredholmes changed the title TeX capacity exceeded when using split in equations TeX capacity exceeded when using amsmath split in equations Aug 13, 2023
@michal-h21
Copy link
Owner

Thanks for the report, I will fix that in TeX4ht sources. In the meantime, you can try this configuration file:

\Preamble{xhtml}
\makeatletter
\catcode`\:=11
\let\@begin:split\relax
\catcode`\:=12
\makeatother
\begin{document}
\EndPreamble

@alfredholmes
Copy link
Author

Thanks for that, the configuration file fixes the problem

@michal-h21
Copy link
Owner

Thanks for the confirmation. I've already updated TeX4ht sources, so the fix should be available in TeX Live soon.

@alfredholmes
Copy link
Author

I've just realised that there is a small issue with the suggested configuration since the equation number appears in the png as well as in the html

@michal-h21
Copy link
Owner

You are right, I haven't noticed that. The fix in TeX4ht sources produces the correct output, fortunately, so it should work correctly after the update.

johnsonjh pushed a commit to reduce-algebra/reduce-algebra that referenced this issue Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants