Springer Journal クラス sn-jnl とケース環境

Springer Journal クラス sn-jnl とケース環境

Springerが提供するsn-jnl.clsを使用してSpringerジャーナルに論文を投稿しています。ただし、ケース環境ではエラーが発生します。

! 挿入された $ がありません。$ 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} 

b

(amsmathクラスによってロードされます。)

関連情報