큰 수식을 정렬하여 분할

큰 수식을 정렬하여 분할

정렬된 큰 수식이 있습니다.

\begin{align}
\overline{r}_D(n_D) = \begin{cases}
r_D(n_D)  & \textrm{ if } r_D(n_D)  < b_{min} \\
\max\{b_{min} , \max \{b_{l-f(\rho_E)} \mid b_l \leq r_D(n_D), \; 1\leq l \leq m\}\}& \textrm{otherwise} 
\end{cases}
\nonumber
\end{align}

그리고 그것은 다음과 같습니다:

여기에 이미지 설명을 입력하세요

오른쪽 열과 겹칩니다. 어떻게 해결할 수 있나요?

편집하다:

컴파일 가능한 스크립트는 다음과 같습니다.

\documentclass[10pt,a4paper,twocolumn]{IEEEtran}

\usepackage{graphicx,amssymb,amsmath,amsfonts,mathtools, bm}


\begin{document}


Postremo ad id indignitatis est ventum, ut cum peregrini ob formidatam haut ita dudum alimentorum inopiam pellerentur ab urbe praecipites, sectatoribus disciplinarum liberalium inpendio paucis sine respiratione ulla extrusis, tenerentur minimarum adseclae veri, quique id simularunt ad tempus.


\begin{align}
\overline{r}_D(\vec{n}) = \begin{cases}
r_D(\vec{n})  & \textrm{ if } r_D(\vec{n})  < b_{min} \\
\max\{b_{min} , \max \{b_{l-f(\rho_E)} \mid b_l \leq r_D(\vec{n}), \; 1\leq l \leq m\}\}& \textrm{otherwise} 
\end{cases}
\nonumber
\end{align}

Postremo ad id indignitatis est ventum, ut cum peregrini ob formidatam haut ita dudum alimentorum inopiam pellerentur ab urbe praecipites, sectatoribus disciplinarum liberalium inpendio paucis sine respiratione ulla extrusis, tenerentur minimarum adseclae veri, quique id simularunt ad tempus, et tria milia saltatricum ne interpellata quidem cum choris totidemque remanerent magistris.


\end{document}

답변1

임시 변수를 사용하는 것이 좋습니다

샘플 출력

\documentclass{amsart}

\begin{document}

Text text text text text text text text text text text text text text
text text text text text text text text text text text text text text
text text text text text text text text text text text text text text
\begin{align}
  {r}_D(n_D)
  =
  \begin{cases}
    r_D(n_D),  & \textrm{ if } r_D(n_D)  < b_{\min}, \\
    \max\{b_{\min},c\},& \textrm{otherwise},
  \end{cases}
\nonumber
\end{align}
where
\( c = \max\{ b_{\ell-f(\rho_E)} \mid b_\ell \leq r_D(n_D), \; 1\leq
\ell \leq m \} \).

\end{document}

답변2

"그렇지 않은 경우"를 다른 줄로 이동하여 더 나은 명확성을 위해 수직 공간을 추가할 수 있습니다.

\documentclass{article}
\usepackage{amsmath}

\usepackage{lipsum} % for mock text

\begin{document}

\lipsum*[1][1-3]
\begin{equation*}
\overline{r}_D(n_D) =
\begin{cases}
\begin{alignedat}{2}
&r_D(n_D) && \text{if $r_D(n_D)  < b_{\min}$} \\[2ex]
&\!\max\{b_{\min}, \max \{b_{l-f(\rho_E)} \mid b_l \leq r_D(n_D), 1 \leq l &&\leq m\}\} \\
 &&& \text{otherwise}
\end{alignedat}
\end{cases}
\end{equation*}
\lipsum*[2]

\end{document}

여기에 이미지 설명을 입력하세요

2열 출력의 경우 더 많은 것이 필요합니다. 같은 것

\max \{b_{l-f(\rho_E)} \mid b_l \leq r_D(n_D), 1 \leq l \leq m\}

이름을 붙여야 합니다. 더 마음에 드는 것을 선택하세요. 여기서는 을 사용합니다 B(n_D,m).

\documentclass[a4paper]{IEEEtran}
\usepackage{amsmath}
\usepackage{newtxtext,newtxmath}

\usepackage{lipsum} % for mock text

\begin{document}

\lipsum*[1][1-3]
\begin{align*}
&\overline{r}_D(n_D) =
\begin{cases}
r_D(n_D) & \text{if $r_D(n_D)  < b_{\min}$,} \\
\max\{b_{\min}, B(n_D,m)\}& \text{otherwise,}
\end{cases}
\\
&B(n_D,m)=\max \{b_{l-f(\rho_E)} \mid b_l \leq r_D(n_D), 1 \leq l \leq m\}.
\end{align*}
\lipsum*[2][1-3]
\lipsum[4-9]

\end{document}

저는 Computer Modern에서 Times와 함께 텍스트에 대한 (끔찍한) 공식을 사용 newtxtext하고 피했습니다.newtxmath

여기에 이미지 설명을 입력하세요

답변3

\medmath{...}패키지의 매크로를 사용하여 이 방정식을 더 작게 작성할 수 있습니다 nccmath.

여기에 이미지 설명을 입력하세요

(빨간색 선은 텍스트 테두리를 나타냅니다)

\documentclass{amsart}
\usepackage{nccmath}

\usepackage{lipsum}
\begin{document}
\lipsum[66]
\begin{align*}
    \medmath{
\overline{r}_D(n_D) = \begin{cases}
r_D(n_D)  
    & \text{ if } r_D(n_D)  < b_{\min} \\
\max\bigl\{b_{\min}, \max\{b_{l-f(\rho_E)} \mid b_l \leq r_D(n_D), \; 1\leq l \leq m\}\bigr\}
    & \text{otherwise}
\end{cases}
            }
\end{align*}
\end{document}

편집하다: 질문을 편집한 후에는앤드루 스완(+1)이 문제를 해결할 수 있습니다. 그의 솔루션(및 새로운 MWE)에는 주제에서 벗어난 설명만 추가할 수 있습니다(아래 코드의 설명 참조).

\documentclass[10pt,a4paper]{IEEEtran} % it is default twocolumn
\usepackage{amssymb,    % load amsfonts too
            mathtools,  % it is supersede of the amsmath, no need to load it (again) 
            bm}
\usepackage{graphicx}

\usepackage{lipsum}

\begin{document}
\lipsum[1]
\begin{align*}          % no numbered
\overline{r}_D(n_D) = \begin{cases}
r_D(n_D)  
    & \text{ if } r_D(n_D)  < b_{\min} \\
\max\bigl\{b_{\min}, c_{\max}\bigr\}
    & \text{otherwise}
\end{cases}
\end{align*}
where $c_{max}=\max\{b_{l-f(\rho_E)} \mid b_l \leq r_D(n_D), \; 1\leq l \leq m\}$. 

\lipsum[2-7]
\end{document}

이는 다음을 제공합니다:

여기에 이미지 설명을 입력하세요

관련 정보