
질문: 주어진 방정식을 (왼쪽에서) 정당화하려면 어떻게 해야 합니까?
MWE
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[width=1.00cm, height=1.00cm, left=1.00cm, right=1.00cm, top=1.00cm, bottom=1.00cm]{geometry}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{amsthm}
\begin{document}
\begin{equation}
\begin{split}
\dfrac{\partial T}{\partial t}+\left(u\,\frac{\partial T}{\partial x} + v\,\frac{\partial T}{\partial y}\right)
&= \left(\dfrac{k_{2}}{\rho\,c_{p}}\right)\,\dfrac{\partial^2 T}{\partial y^2}+\left(\dfrac{\mu+\kappa}{\rho\,c_{p}}\right)\,\left(\dfrac{\partial u}{\partial y}\right)^2
+ \left(\dfrac{\sigma B_{0}^2}{\rho\,c_{p}}\right)\;u^2 \\[1ex]
&\qquad\qquad\quad\quad\quad\qquad\qquad -\dfrac{1}{\rho\,c_{p}}\;\dfrac{\partial q_{r}}{\partial y} +q'''
\end{split}
\end{equation}
\end{document}
답변1
밀어야 하는 이유가 명확하지 않음하나왼쪽 여백에 방정식: 없음 또는 모두. 후자를 선택하려면 fleqn
문서 클래스 옵션을 지정하면 됩니다.
어쨌든, 나는 여러분이 할 수 있는 몇 가지 방법을 (더 좁은 텍스트 너비로) 제시합니다.
입력이 단순화되고 여러 \,
토큰이 생략된 점(및 잘못된 \;
)에 유의하세요. 두 가지 경우에는 다음을 추가했습니다 \!
: when \right)
바로 뒤에 \left(
지수가 옵니다.
부분 파생 기능을 사용하면 입력 내용을 훨씬 더 쉽게 읽을 수 있습니다.
\documentclass[12pt,a4paper]{article}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{showframe}
\newcommand{\pder}[2]{\frac{\partial #1}{\partial #2}}
\begin{document}
Just the last term on the next line
\begin{equation}
\begin{aligned}
\pder{T}{t}+\left(u\,\pder{T}{x} + v\,\pder{T}{y}\right)
=
\left(\frac{k_{2}}{\rho c_{p}}\right)\pder{^2 T}{y^2}
+
\left(\frac{\mu+\kappa}{\rho c_{p}}\right)\!\left(\pder{u}{y}\right)^{\!2}
+
\left(\frac{\sigma B_{0}^2}{\rho c_{p}}\right) u^2
\\[1ex]
{}-
\dfrac{1}{\rho\,c_{p}}\,\pder{q_{r}}{y}+q'''
\end{aligned}
\end{equation}
Just the last term in the next line, but pushed a bit to the left
\begin{equation}
\begin{aligned}
\pder{T}{t}+\left(u\,\pder{T}{x} + v\,\pder{T}{y}\right)
=
\left(\frac{k_{2}}{\rho c_{p}}\right)\pder{^2 T}{y^2}
+
\left(\frac{\mu+\kappa}{\rho c_{p}}\right)\!\left(\pder{u}{y}\right)^{\!2}
+
\left(\frac{\sigma B_{0}^2}{\rho c_{p}}\right) u^2
\\[1ex]
{}-
\dfrac{1}{\rho\,c_{p}}\,\pder{q_{r}}{y}+q''' \qquad
\end{aligned}
\end{equation}
Two terms in the next line
\begin{equation}
\begin{aligned}
\pder{T}{t}+\left(u\,\pder{T}{x} + v\,\pder{T}{y}\right)
=
\left(\frac{k_{2}}{\rho c_{p}}\right)\pder{^2 T}{y^2}
+
\left(\frac{\mu+\kappa}{\rho c_{p}}\right)\!\left(\pder{u}{y}\right)^{\!2}
\\[1ex]
{}+
\left(\frac{\sigma B_{0}^2}{\rho c_{p}}\right) u^2
-
\dfrac{1}{\rho\,c_{p}}\,\pder{q_{r}}{y}+q'''
\end{aligned}
\end{equation}
A more conventional set up
\begin{multline}
\pder{T}{t}+\left(u\,\pder{T}{x} + v\,\pder{T}{y}\right)
=
\left(\frac{k_{2}}{\rho c_{p}}\right)\pder{^2 T}{y^2}
+
\left(\frac{\mu+\kappa}{\rho c_{p}}\right)\!\left(\pder{u}{y}\right)^{\!2}
\\[1ex]
+
\left(\frac{\sigma B_{0}^2}{\rho c_{p}}\right) u^2
-
\dfrac{1}{\rho\,c_{p}}\,\pder{q_{r}}{y}+q'''
\end{multline}
A more conventional set up with just one term on the next line
\begin{multline}
\pder{T}{t}+\left(u\,\pder{T}{x} + v\,\pder{T}{y}\right)
=
\left(\frac{k_{2}}{\rho c_{p}}\right)\pder{^2 T}{y^2}
+
\left(\frac{\mu+\kappa}{\rho c_{p}}\right)\!\left(\pder{u}{y}\right)^{\!2}
+
\left(\frac{\sigma B_{0}^2}{\rho c_{p}}\right) u^2
\\[1ex]
-
\dfrac{1}{\rho\,c_{p}}\,\pder{q_{r}}{y}+q'''
\end{multline}
\end{document}
답변2
다소 좁은 여백이 사용되는 경우 방정식을 두 줄로 분할하는 데 대한 좋은 주장을 볼 수 없습니다. 이 방정식(및 기타 모든 방정식)을 왼쪽으로 정렬하려면 fleqn
문서 클래스 옵션으로 지정하는 것이 좋습니다. 아, 그리고 불필요한 긴 괄호도 제거하겠습니다.
\documentclass[12pt,a4paper,fleqn]{article}
%%\usepackage[utf8]{inputenc} % that's the default nowadays
\usepackage[T1]{fontenc}
\usepackage[margin=1cm]{geometry}
\usepackage{amssymb,mathtools,amsthm}
\begin{document}
\begin{equation}
\frac{\partial T}{\partial t}
+\left(u\,\frac{\partial T}{\partial x}
+ v\,\frac{\partial T}{\partial y}\right)
= \frac{k_{2}}{\rho\,c_{p}}\, \frac{\partial^2 T}{\partial y^2}
+\frac{\mu+\kappa}{\rho\,c_{p}}
\left(\frac{\partial u}{\partial y}\right)^{\!\!2}
+\frac{\sigma B_{0}^2}{\rho\,c_{p}}\,u^2
-\frac{1}{\rho\,c_{p}}\,\frac{\partial q_{r}}{\partial y}
+q'''
\end{equation}
\end{document}