
multline
ケース内で環境を使用しようとすると、エラー メッセージが表示されます。これが私の方程式です:
\begin{equation} \label{eq:SMSKIN_TU2009}
\begin{split}
SM_{SKIN,Int} &= SM_{SKIN,Old} + INI - Q_M - EA_{SKIN} + SM_{SKIN,Upd} \\
SM_{SKIN,New} &=
\begin{cases}
FC_{SKIN} &
\begin{multline}
\quad \text{if } SM_{SKIN,Int} > FC_{SKIN}, \quad Q_{SKIN} = SM_{SKIN,Int} - \\ FC_{SKIN}
\end{multline} \\
0 & \quad \text{if } SM_{SKIN,Int} < 0, \quad Q_{SKIN} = 0\\
SM_{SKIN,Int} & \quad \text{otherwise }, \quad Q_{SKIN} = 0\\
\end{cases}
\end{split}
\end{equation}
環境を使用しない場合multline
、方程式は正しく表示されますが、行がページに収まらないため、コンパイラは警告をスローします。
皆様のご協力に感謝します。ありがとう!
答え1
@GuM が示唆しているように、mathtools
パッケージ (パッケージのスーパーセットamsmath
) をロードし、multlined
不正な環境の代わりにその環境を使用することもできますが、問題の資料を表示するにはmultline
単純なものを使用する方がよいと思います。\parbox
\mathit
また、複数文字の変数名をタイプセットしたり、\mathrm
下付き文字に置かれた頭字語をタイプセットしたりするためにも使用します。
\documentclass{article}
\usepackage{mathtools} % for 'dcases' env.
\begin{document}
\begin{equation} \label{eq:SMSKIN_TU2009}
\begin{split}
\mathit{SM}_{\mathrm{SKIN},\mathrm{Int}}
&= \mathit{SM}_{\mathrm{SKIN},\mathrm{Old}} + \mathit{INI}
- Q_M - \mathit{EA}_{\mathrm{SKIN}}
+ \mathit{SM}_{\mathrm{SKIN},\mathrm{Upd}} \\
\mathit{SM}_{\mathrm{SKIN},\mathrm{New}}
&= \begin{dcases}
\mathit{FC}_{\mathrm{SKIN}}
%% set up a parbox with automatic hanging indentation from the 2nd line onward
&\parbox[t]{6cm}{\raggedright\hangafter1\hangindent1em
if $\mathit{SM}_{\mathrm{SKIN},\mathrm{Int}}
> \mathit{FC}_{\mathrm{SKIN}}$,
$Q_{\mathrm{SKIN}} =
\mathit{SM}_{\mathrm{SKIN},\mathrm{Int}}
- \mathit{FC}_{\mathrm{SKIN}}$} \\
0 & \text{if $\mathit{SM}_{\mathrm{SKIN},\mathrm{Int}} < 0$,
$Q_{\mathrm{SKIN}} = 0$}\\
\mathit{SM}_{\mathrm{SKIN},\mathrm{Int}}
& \text{otherwise, $Q_{\mathrm{SKIN}} = 0$}
\end{dcases}
\end{split}
\end{equation}
\end{document}