
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}