You'll also see that
\begin{align*}
\scalebox{1.5}{$x &= 3$}
\end{align*}
fails, which is exactly what your myalign
is producing. It's not the problem with really with your \NewEnviron
, but your interpretation of how you want to scale things. Specifically, that you can't let a group opening and closing straddle a &
.
From your definition it seems like you want to enlarge the display of the align
by 50%. Rather use a definition like this:
\NewEnviron{myalign}{%
\Large\begin{align*}
\BODY
\end{align*}}
or (without environ
and an up-to-date LaTeX)
\NewDocumentEnvironment{myalign}{ b }{%
\Large\begin{align*}
#1
\end{align*}
}{}
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/vwW44.png)
\documentclass{article}
\usepackage{amsmath,graphicx}
\NewDocumentEnvironment{myalign}{ b }{%
\Large\begin{align*}
#1
\end{align*}
}{}
\begin{document}
\begin{align*}
f(x) &= ax^2 + bx + c \\
g(x) &= ax^3 + bx^2 + cx + d
\end{align*}
{\Large
\begin{align*}
f(x) &= ax^2 + bx + c \\
g(x) &= ax^3 + bx^2 + cx + d
\end{align*}
}
\begin{myalign}
f(x) &= ax^2 + bx + c \\
g(x) &= ax^3 + bx^2 + cx + d
\end{myalign}
\end{document}
align
?