
Incomplete \ifx
Aparece un error al compilar el siguiente código tex.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{multline} % <- Replacing `multline` with `equation` can fix the problem.
\iftrue
\begin{aligned} h \end{aligned} % <- Removing `aligned` can fix the problem.
\fi
\end{multline}
\end{document}
Respuesta1
Presumiblemente es un problema con la agrupación. Si incluye el aligned
entorno entre llaves, el código se compila:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{multline} % <- Replacing `multline` with `equation` can fix the problem.
\iftrue {
\begin{aligned} h \end{aligned} % <- Removing `aligned` can fix the problem.
}
\fi
\end{multline}
\end{document}