
저는 Springer 저널에 논문을 제출하기 위해 Springer에서 제공하는 sn-jnl.cls를 사용하고 있습니다. 그러나 사례 환경으로 인해 오류가 발생합니다.
! $가 누락되어 삽입되었습니다. $ l.8 x^n, & \text{if } 2 | N;\
\documentclass[referee,pdflatex]{sn-jnl}
\begin{document}
\begin{equation*}
(A^n) = \begin{cases}
x^n, & \text{if } 2 | n;\\
y^n, & \text{otherwise}.
\end{cases}
\end{equation*}
\end{document}
답변1
\mid
수직 막대에 사용합니다 .
수학 모드에서는 양쪽에 \mid
"두꺼운" 공백이 있는 수직 막대가 만들어집니다 .\;
% !TeX TS-program = pdflatex
\documentclass[referee,pdflatex]{sn-jnl}
\begin{document}
\begin{equation*}
(A^n) = \begin{cases}
x^n, & \text{if 2} \mid n;\\
y^n, & \text{otherwise}.
\end{cases}
\end{equation*}
\end{document}
( amsmath
클래스에 의해 로드됩니다.)