Closed christianp closed 1 year ago
This problem occurs in plain plasTeX too.
I think I've worked it out: without the curly braces, the command is equivalent to \input{d}ef.tex
, i.e. read the file d
.
That doesn't exist, so the macros aren't loaded. plastex silently ignores undefined macros, but pdflatex doesn't.
Here's a minimal example.
The document uses two macros,
\clp
and\twopi
, which sohuld be straight substitutions. The macro\clp
in text mode seems to just disappear, while\twopi
in math mode isn't replaced with its definition so MathJax gives an "undefined command" error.It looks like the names of macros are loaded, so that they don't throw an error when used, but the definitions aren't. I can't think how this could happen.