以下のようなコードをコンパイルしようとすると↓
Before.tex
\documentclass{jlreq}
\usepackage{amsmath}
\begin{document}
\begin{align}
a=0\\
b=1
\end{align}
\end{document}
こういうエラーが出る↓
Runaway argument?
a=0\\
! Paragraph ended before \align was complete.
<to be read again>
\par
l.7
? ^D
! Emergency stop.
<to be read again>
\par
l.7
No pages of output.
解決法は,align環境内に空白の行を入れないことである↓
After.tex
\documentclass{jlreq}
\usepackage{amsmath}
\begin{document}
\begin{align}
a=0\\
b=1
\end{align}
\end{document}
こうするとコンパイルが上手くいく.
コードの見通しのためにちょくちょく空白の行を入れる癖がある私としては,ちょっと理不尽な仕様だな.