
Incomplete \ifx
при компиляции следующего 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}
решение1
Предположительно, проблема с группировкой. Если вы заключите aligned
окружение в фигурные скобки, код скомпилируется:
\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}