Re: teTeX 3.0: can't use amdmath w/ pdflatex?

Robin Fairbairns <[email protected]>
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
> 
> It seems the documentation for tnt-mmtl (see http://mmtl.sourceforge.net/) 
> cannot be built with teTeX 3.0, while it worked fine with version 2.0.
> tnt-mmtl uses pdflatex on a .tex file that has \usepackage{amsmath}.
> 
> The error printed is:
> 
>  	! Illegal parameter number in definition of \math@cr@@@align@measure.
>  	<to be read again>
>  	                   1
>  	l.1996 \edef\split@err#1
>  	                        {%
>  	? h
>  	You meant to type ## instead of #, right?
>  	Or maybe a } was forgotten somewhere earlier, and things
>  	are all screwed up? I'm going to assume that you meant ##.
> 
>  	?

my immediate guess is you've got a corrupt amsmath.sty; the line where
your error occurs is miles earlier than where that definition is in my
copy(ies) of amsmath.sty (1996 vs 2101).

there are three commands with parameters defined between the start of
the definition of \math@cr@@@align@measure and (my) line 2101, so
presumably they've been lost in your corruption, too.  they are

\def\fieldlengths@#1{%
    \ifcase\@xp#1\field@lengths\fi
}
\let\maxcolumn@widths\@empty
\def\maxcol@width#1{%
    \ifcase\@xp#1\maxcolumn@widths\fi\relax
}
\def\measure@#1{% ....

that little sequence starts at line 1621: do you have any of those
commands in your amsmath.sty?

> The input file only has ~600 lines, the problem seems to be somewhere in 
> teTeX.

i presume you mean "in amsmath"?

> A simple input file to reproduce the same error (also at line 1996) 
> is:
> 
>  	\documentclass{article}
>  	\usepackage{amsmath}
>  	\begin{document}
>  	\end{document}
> 
> The same error occurs for latex both pdflatex.

not here it doesn't.

> What is the recommended way to use amsmath with teTeX 3.0?

same as ever.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.