我在一个 2 列文档中有一个多行方程。我希望“+”号后的最后一项,即L_{p}^{ITM}\delta_{i,B}
,左对齐。从图中可以看出,以下 latex 脚本将最后一项设为右对齐。(完整代码如下)
\documentclass[journal]{IEEEtran}
\usepackage{amsmath}
\usepackage{adjustbox}
\usepackage[noadjust]{cite}
\usepackage{amsmath,amssymb}
\usepackage{amsthm}
\usepackage{color}
\usepackage[mathscr]{eucal}
\usepackage{graphics,graphicx,multicol}
\usepackage{epsfig}
\usepackage{enumerate}
\usepackage{multirow}
\usepackage{cite}
\usepackage{courier}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{rem}[thm]{Remark}
\newtheorem{pro}[thm]{Proposition}
\pagenumbering{arabic}
\pagestyle{plain}
\usepackage{lipsum,booktabs}
\usepackage{subfigure}
\usepackage{algorithmic}
\usepackage[section]{algorithm}
\usepackage{morefloats}
\usepackage{subfigure}
\usepackage{multirow}
\usepackage{array}
\usepackage{moredefs}
\begin{document}
\title{Title}
\author{Author}
\maketitle
\begin{abstract}
This is abstract.
\end{abstract}
\providelength{\AxesLineWidth} \setlength{\AxesLineWidth}{0.5pt}
\providelength{\plotwidth} \setlength{\plotwidth}{8cm}
\providelength{\LineWidth} \setlength{\LineWidth}{0.7pt}
\providelength{\MarkerSize} \setlength{\MarkerSize}{3pt}
\section{Introduction}\label{sec:intro}
Section1
\section{Equations}\label{sec:Eq}
The equation is:
\begin{align*}\label{eqn:1_1}
L_{p}(d, h_{TX}, h_{RX}) = \{\{\overbrace{L_{fs}(R,f)U(0.1-d)}^{L_{p,1}}+\clipbox{-2 0 5 0}{$\overbrace{[L_{fs}(R,f) + \hspace{1em}}^{L_{p,2}}$} \\[\jot]
\clipbox{100 0 -2 0}{$\overbrace{\phantom{\hspace{10em}}(1 + \log_{10}(d))(L^{EH}_{B}(1,f) - L_{fs}(0.1,f)]\prod(\frac{d-0.05}{0.1})\hspace{1em}}$} +\\
\overbrace{\max\{L_{p}^{EH}(d,f),L_{p}^{ITM}(d,f)\}\prod(\frac{d-41}{80})}^{L_{p,3}} + \clipbox{-2 0 5 0}{$\overbrace{(L_{P}^{ITM}(d,f) + \hspace{1em}}^{L_{p,4}}$} \\[\jot]
\clipbox{100 0 -2 0}{$\overbrace{\phantom{\hspace{10em}}\max\{L^{EH}_{B}(80,f) - L_{p}^{ITM}(80,f),0\})U(d-80)\hspace{1em}}$}\}\delta_{iA} + \\L_{p}^{ITM}\delta_{i,B}
\end{align*}
\end{document}
答案1
&
只需在每行的开头添加一个,即可使其左对齐。
\documentclass[journal]{IEEEtran}
\usepackage{amsmath}
\usepackage{adjustbox}
\usepackage[noadjust]{cite}
\usepackage{amsmath,amssymb}
\usepackage{amsthm}
\usepackage{color}
\usepackage[mathscr]{eucal}
\usepackage{graphics,graphicx,multicol}
\usepackage{epsfig}
\usepackage{enumerate}
\usepackage{multirow}
\usepackage{cite}
\usepackage{courier}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{rem}[thm]{Remark}
\newtheorem{pro}[thm]{Proposition}
\pagenumbering{arabic}
\pagestyle{plain}
\usepackage{lipsum,booktabs}
\usepackage{subfigure}
\usepackage{algorithmic}
\usepackage[section]{algorithm}
\usepackage{morefloats}
\usepackage{subfigure}
\usepackage{multirow}
\usepackage{array}
\usepackage{moredefs}
\begin{document}
\title{Title}
\author{Author}
\maketitle
\begin{abstract}
This is abstract.
\end{abstract}
\providelength{\AxesLineWidth} \setlength{\AxesLineWidth}{0.5pt}
\providelength{\plotwidth} \setlength{\plotwidth}{8cm}
\providelength{\LineWidth} \setlength{\LineWidth}{0.7pt}
\providelength{\MarkerSize} \setlength{\MarkerSize}{3pt}
\section{Introduction}\label{sec:intro}
Section1
\section{Equations}\label{sec:Eq}
The equation is:
\begin{align*}\label{eqn:1_1}
&L_{p}(d, h_{TX}, h_{RX}) = \{\{\overbrace{L_{fs}(R,f)U(0.1-d)}^{L_{p,1}}
+\clipbox{-2 0 5 0}{$\overbrace{[L_{fs}(R,f) + \hspace{1em}}^{L_{p,2}}$}
\\[\jot]
&\clipbox{100 0 -2 0}{$\overbrace{\phantom{\hspace{10em}}(1 +
\log_{10}(d))(L^{EH}_{B}(1,f) - L_{fs}(0.1,f)]\prod(\frac{d-0.05}{0.1})
\hspace{1em}}$} +\\
&\overbrace{\max\{L_{p}^{EH}(d,f),L_{p}^{ITM}(d,f)\}\prod(%
\frac{d-41}{80})}^{L_{p,3}} + \clipbox{-2 0 5 0}{%
$\overbrace{(L_{P}^{ITM}(d,f) + \hspace{1em}}^{L_{p,4}}$} \\[\jot]
&\clipbox{100 0 -2 0}{$\overbrace{\phantom{\hspace{10em}}%
\max\{L^{EH}_{B}(80,f) - L_{p}^{ITM}(80,f),0\})U(d-80)%
\hspace{1em}}$}\}\delta_{iA} + \\
&L_{p}^{ITM}\delta_{i,B}
\end{align*}
\end{document}
我甚至可能建议让方程式的所有行都具有相等的基线跳跃。可以使用 TABstack 来实现这一点:
\documentclass[journal]{IEEEtran}
\usepackage{amsmath}
\usepackage{adjustbox}
\usepackage[noadjust]{cite}
\usepackage{amsmath,amssymb}
\usepackage{amsthm}
\usepackage{color}
\usepackage[mathscr]{eucal}
\usepackage{graphics,graphicx,multicol}
\usepackage{epsfig}
\usepackage{enumerate}
\usepackage{multirow}
\usepackage{cite}
\usepackage{courier}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{rem}[thm]{Remark}
\newtheorem{pro}[thm]{Proposition}
\pagenumbering{arabic}
\pagestyle{plain}
\usepackage{lipsum,booktabs}
\usepackage{subfigure}
\usepackage{algorithmic}
\usepackage[section]{algorithm}
\usepackage{morefloats}
\usepackage{subfigure}
\usepackage{multirow}
\usepackage{array}
\usepackage{moredefs}
\usepackage{tabstackengine}
\TABstackMath
\begin{document}
\title{Title}
\author{Author}
\maketitle
\begin{abstract}
This is abstract.
\end{abstract}
\providelength{\AxesLineWidth} \setlength{\AxesLineWidth}{0.5pt}
\providelength{\plotwidth} \setlength{\plotwidth}{8cm}
\providelength{\LineWidth} \setlength{\LineWidth}{0.7pt}
\providelength{\MarkerSize} \setlength{\MarkerSize}{3pt}
\section{Introduction}\label{sec:intro}
Section1
\section{Equations}\label{sec:Eq}
The equation is:
\[\label{eqn:1_1}
\setstackgap{L}{38pt}
\alignCenterstack{
&L_{p}(d, h_{TX}, h_{RX}) = \{\{\overbrace{L_{fs}(R,f)U(0.1-d)}^{L_{p,1}}
+\clipbox{-2 0 5 0}{$\overbrace{[L_{fs}(R,f) + \hspace{1em}}^{L_{p,2}}$}
\\
&\clipbox{100 0 -2 0}{$\overbrace{\phantom{\hspace{10em}}(1 +
\log_{10}(d))(L^{EH}_{B}(1,f) - L_{fs}(0.1,f)]\prod(\frac{d-0.05}{0.1})
\hspace{1em}}$} +\\
&\overbrace{\max\{L_{p}^{EH}(d,f),L_{p}^{ITM}(d,f)\}\prod(%
\frac{d-41}{80})}^{L_{p,3}} + \clipbox{-2 0 5 0}{%
$\overbrace{(L_{P}^{ITM}(d,f) + \hspace{1em}}^{L_{p,4}}$} \\
&\clipbox{100 0 -2 0}{$\overbrace{\phantom{\hspace{10em}}%
\max\{L^{EH}_{B}(80,f) - L_{p}^{ITM}(80,f),0\})U(d-80)%
\hspace{1em}}$}\}\delta_{iA} + \\
&L_{p}^{ITM}\delta_{i,B}
}
\]
\end{document}