与えられた方程式を左揃えにする

与えられた方程式を左揃えにする

質問: 与えられた方程式を (左側で) 正当化するにはどうすればよいでしょうか?

ムウェ

\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

なぜプッシュするのかは不明1つ左余白に等式を追加します。すべて追加するか、まったく追加しないかのいずれかです。後者の選択は、fleqnドキュメント クラス オプションを指定することで取得されます。

とにかく、(テキスト幅を狭くして)いくつかの方法を紹介します。

入力の簡略化といくつかの\,トークンの省略(および間違った\;)に注意してください。 2 つのケースでは、指数部の と の直後に がある\!場合にを追加しました。\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

かなり狭い余白が使用されていることを考えると、方程式を 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}

関連情報