ギャザー環境での左揃えの方程式

ギャザー環境での左揃えの方程式

私は LATEX の初心者です。LATEX 構文に慣れていないことと怠け者なことから、構文の余分な入力を省きたいと思っています。

私のやり方が推奨される方法ではないことは承知していますが、私はすべての方程式を ONE\begin{gather}との間に記述することを好みます。そのため、符号、符号、 など\end{gather}は必要ありません。(また、中央揃えは好きではありません。この方法では、の代わりにを使用してテキスト内にスペースを記述する必要がありますが、通常、私が記述するもののほとんどは単なる方程式なので、それはあまり問題になりません。) したがって、私のコードは次のようになります。&$\begin{align}\' '

\documentclass[a4paper,10pt,fleqn]{article}
\usepackage{amsmath,amssymb,graphicx}
\setlength{\mathindent}{0pt}
\usepackage[margin=.5in]{geometry}


\newcommand{\nl}{\\[10pt]}
\begin{document}
\large\textbf{Advanced Plasma Physics}
\\Homework2 \hfill heptacle
\section*{1.}
\begin{gather}
(1)\ \phi=-\frac{z}{\sqrt{\pi}}\int_{\infty}^{-\infty}\frac{e^{-t^2}}{t-z}dt\\
\phi'=\frac{\phi}{z}-\frac{z}{\sqrt{\pi}}\int_{\infty}^{-\infty}\frac{e^{-t^2}}{(t-z)^2}dt\\
=\frac{\phi}{z}+\frac{2z}{\sqrt{\pi}}\int_{\infty}^{-\infty}\frac{te^{-t^2}}{t-z}dt\ (integration\ by\ part)\\
=\frac{\phi}{z}+\frac{2z}{\sqrt{\pi}}\int_{\infty}^{-\infty}(1+\frac{z}{t-z})e^{-t^2}dt\\
=\frac{\phi}{z}+2z-2z\phi\\
=\frac{\phi}{z}+2z(1-\phi)\\
\therefore\ \phi'=(\frac{1}{z}-2z)\phi+2z\\
\end{gather}
\end{document}

しかし、問題は、等号で方程式を揃えて、より明確にしたいということです。しかし、gather 環境で特別な位置に揃える方法が見つかりませんでした。& 記号は機能しません。または、& 記号を使用せずに、align 環境ですべての方程式を左揃えにする方法はありますか?

答え1

次のようなレイアウトを提案します:

\documentclass[a4paper,10pt,fleqn]{article}
\usepackage{amsmath, amssymb, graphicx}
\setlength{\mathindent}{0pt}
\usepackage[margin=.5in, showframe]{geometry}
\usepackage{titling}
\pretitle{\begin{center}\Large\bfseries}
\posttitle{\end{center}\vspace{2ex}}
\title{Advanced Plasma Physics}
\preauthor{\noindent\large Homework2\hfill}
\postauthor{}
\author{heptacle}
\date{}

\begin{document}

\maketitle
\section*{1.}
\begin{alignat*}{2}
\phi & =-\frac{z}{\sqrt{\pi}}\int_{\infty}^{-\infty}\frac{e^{-t^2}}{t-z}\,dt\\
 \phi ' & =\frac{\phi}{z}-\frac{z}{\sqrt{\pi}}\int_{\infty}^{-\infty}\!\frac{e^{-t^2}}{(t-z)^2}\,dt\\
 & =\frac{\phi}{z}+\frac{2z}{\sqrt{\pi}}\int_{\infty}^{-\infty}\frac{te^{-t^2}}{t-z}\,dt & \quad & \text{\footnotesize(integration\ by\ parts)}\\
 & =\frac{\phi}{z}+\frac{2z}{\sqrt{\pi}}\int_{\infty}^{-\infty}\Bigl(1+\frac{z}{t-z}\Bigr)e^{-t^2} dt\\
 & =\frac{\phi}{z}+2z-2z\phi\\
 & =\frac{\phi}{z}+2z(1-\phi) \\
  &\boldsymbol{\therefore} & \phi' &=\Bigl(\frac{1}{z}-2z\Bigr)\phi+2z
\end{alignat*}

\end{document} 

ここに画像の説明を入力してください

関連情報