![방정식의 줄 바꿈](https://rvso.com/image/286971/%EB%B0%A9%EC%A0%95%EC%8B%9D%EC%9D%98%20%EC%A4%84%20%EB%B0%94%EA%BF%88.png)
이것이 제가 LaTex로 작성하고 싶은 방정식입니다:
내가 읽고이 조언, 그러나 분할 및 여러 줄 명령의 경우 정의되지 않았다고 말합니다(여러 줄의 경우에도 마찬가지이지만 그럼에도 불구하고 이것은 나에게 적합하지 않습니다). 줄을 끊는 방법이 또 있나요?
답변1
패키지 ( 및 empheq
로드 )를 사용하면 방정식 그룹의 왼쪽이나 오른쪽에 원하는 것을 넣을 수 있습니다. 환경 을 활용한 또 다른 솔루션은 다음과 같습니다 .mathtools
amsmath
gather*
\documentclass[12pt,a4paper,bothsides]{article}
\usepackage[utf8]{inputenc}
\usepackage[showframe, nomarginpar]{geometry}
\usepackage[overload]{empheq}
\begin{document}
\begin{gather*}[left ={ V_{i,j} = \empheqlbrace}, right = \empheqrbrace ]
a + b = c + d \\
∫_0¹ x² \ \mathrm{d}x = \dfrac{1}{3}\\
\nabla u = 0
\end{gather*}
\end{document}
답변2
주석에서 세미콜론이 "if ..." 관계를 나타내기 위해 존재한다고 언급했으므로 두 번째 열의 시작 부분을 ;
로 바꾸고 두 개의 별도 열에 자료를 표시하는 것이 좋습니다.if
게다가 중괄호 사이에 동일하고 상당히 복잡한 표현이 5번 나타나므로 미리 정의하고 \widehat{W}
. (분명히 더 적합한 속기 기호를 생각해내는 것은 자유입니다!) 그런 다음 환경 array
이나 환경을 사용하여 5번 나타나는 것이 무엇 인지 또는 최종적으로 선택한 기호가 무엇인지 dcases
설명합니다 .V_{ij}
\widehat{W}
이 설정은 먼저 복잡한 표현식을 정의합니다. 둘째, 그것이 무엇인지에 대한 설명에서 반복적으로 사용하십시오 V_{ij}
. 독자가 논증의 구조에 더 쉽게 집중할 수 있도록 해야 합니다.
\documentclass{article}
\usepackage{mathtools}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\begin{document}
Let $\displaystyle\widehat{W}\equiv W_{j}\ln\biggl( 1 +
\frac{G_{i,j} \abs{h_{i,j}}^2 P_{i,j}} {\sigma_{i,j}^2} \biggr)$. Then
\[
\renewcommand\arraystretch{1.5} % more space between lines to mimic display style
V_{i,j} =
\left\{\begin{array}{ll}
(Q_{1}D_{i}^{d} + Q_{2}D_{i}^{o}) \widehat{W}
& \text{if } D_{i}^{d} + D_{i}^{o} \leq \widehat{W}\\
Q_{1}D_{i}^{d} \widehat{W}
& \text{if } D_{i}^{d} \leq \widehat{W} < D_{i}^{d} + D_{i}^{o}\\
0
& \text{if } \widehat{W} < D_{i}^{d}
\end{array}\right\}
\]
Or, using the \texttt{dcases} environment:
\[
V_{i,j} =
\begin{dcases} % dcases environment is provided by the mathtools package
(Q_{1}D_{i}^{d} + Q_{2}D_{i}^{o}) \widehat{W}
& \text{if } D_{i}^{d} + D_{i}^{o} \leq \widehat{W}\\
Q_{1}D_{i}^{d} \widehat{W}
& \text{if } D_{i}^{d} \leq \widehat{W} < D_{i}^{d} + D_{i}^{o}\\
0
& \text{if } \widehat{W} < D_{i}^{d}
\end{dcases}
\]
\end{document}
답변3
또 다른 해결책:
\documentclass{article}
\usepackage{geometry}
\usepackage{mathtools}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\begin{document}
\begin{equation*}
V_{i,j} =
\begin{Bmatrix}
\displaystyle (Q_{1}D_{i}^{d} + Q_{2}D_{i}^{o})W_{j}\ln{\mkern -7mu}\left(1 + \frac{G_{i,j}\abs{h_{i,j}}^{2}P_{i,j}}{\sigma_{i,j}^{2}}\right){\mkern -5mu}; D_{i}^{d} + D_{i}^{o} \leq W_{j}\ln{\mkern -7mu}\left(1 + \frac{G_{i,j}\abs{h_{i,j}}^{2}P_{i,j}}{\sigma_{i,j}^{2}}\right){\mkern -5mu}\\[3ex]
\displaystyle Q_{1}D_{i}^{d}W_{j}\ln{\mkern -7mu}\left(1 + \frac{G_{i,j}\abs{h_{i,j}}^{2}P_{i,j}}{\sigma_{i,j}^{2}}\right){\mkern -5mu}; D_{i}^{d} \leq W_{j}\ln{\mkern -7mu}\left(1 + \frac{G_{i,j}\abs{h_{i,j}}^{2}P_{i,j}}{\sigma_{i,j}^{2}}\right){\mkern -5mu} < D_{i}^{d} + D_{i}^{o}\\[3ex]
\displaystyle 0; W_{j}\ln{\mkern -7mu}\left(1 + \frac{G_{i,j}\abs{h_{i,j}}^{2}P_{i,j}}{\sigma_{i,j}^{2}}\right){\mkern -5mu} < D_{i}^{d}
\end{Bmatrix}
\end{equation*}
\end{document}
추신 : 내가 추가했습니다geometry
방정식이 여백으로 들어가는 것을 방지합니다.
업데이트
문서의 모든 수학을 표시 스타일로 작성하려면 \everymath{\displaystyle}
;
\documentclass{article}
\usepackage{geometry}
\usepackage{mathtools}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\everymath{\displaystyle}
\begin{document}
\begin{equation*}
V_{i,j} =
\begin{Bmatrix}
(Q_{1}D_{i}^{d} + Q_{2}D_{i}^{o})W_{j}\ln{\mkern -7mu}\left(1 + \frac{G_{i,j}\abs{h_{i,j}}^{2}P_{i,j}}{\sigma_{i,j}^{2}}\right){\mkern -5mu}; D_{i}^{d} + D_{i}^{o} \leq W_{j}\ln{\mkern -7mu}\left(1 + \frac{G_{i,j}\abs{h_{i,j}}^{2}P_{i,j}}{\sigma_{i,j}^{2}}\right){\mkern -5mu}\\[3ex]
Q_{1}D_{i}^{d}W_{j}\ln{\mkern -7mu}\left(1 + \frac{G_{i,j}\abs{h_{i,j}}^{2}P_{i,j}}{\sigma_{i,j}^{2}}\right){\mkern -5mu}; D_{i}^{d} \leq W_{j}\ln{\mkern -7mu}\left(1 + \frac{G_{i,j}\abs{h_{i,j}}^{2}P_{i,j}}{\sigma_{i,j}^{2}}\right){\mkern -5mu} < D_{i}^{d} + D_{i}^{o}\\[3ex]
0; W_{j}\ln{\mkern -7mu}\left(1 + \frac{G_{i,j}\abs{h_{i,j}}^{2}P_{i,j}}{\sigma_{i,j}^{2}}\right){\mkern -5mu} < D_{i}^{d}
\end{Bmatrix}
\end{equation*}
\end{document}
답변4
mathtools
환경 을 얻으려면 패키지를 로드해야 합니다 multlined
.
어쨌든, Bmatrix
동일한 패키지(및 확장인 )의 환경이 귀하에게 적합할 수 있습니다 amsmath
.mathtools
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
V_{i,j}=\begin{Bmatrix} Q_1 \\ Q_2 \\ Q_3\end{Bmatrix}
\]
\end{document}
Q_1
, Q_2
및 대신 Q_3
자신만의 수식을 입력할 수 있습니다.