# How to align the term to right

\documentclass[a4paper,titlepage]{article}
\usepackage{amsmath,amssymb}
\newcommand*{\PartialConj}{\ensuremath{\bar{\partial}}}
\newcommand*{\Abs}[1]{\ensuremath{\left\lvert #1\right\rvert}}
\begin{document}
\begin{align*}
\Abs{\PartialConj F(z)}
& \leqslant \Abs{\chi'\left(\frac{\Abs{z-\alpha_{i}}^{2}}{\delta_{i}^{2}}\right)}\cdot\frac{\Abs{P_{i}(z)}}{\delta_{i}} + \Abs{\chi'\left(\frac{\Abs{z-\alpha_{k}}^{2}}{\delta_{k}^{2}}\right)}\cdot\frac{\Abs{P_{k}(z)}}{\delta_{k}} \\
&{}+ \Abs{\chi'\left(\frac{\Abs{z-\alpha_{n}}^{2}}{\delta_{n}^{2}}\right)}\cdot\frac{\Abs{P_{n}(z)}}{\delta_{n}} \\
& \lesssim \sup_{z\in A_{i}}\left\{\frac{\Abs{P_{i}(z)}}{\delta_{i}}\right\} + \sup_{z\in A_{k}}\left\{\frac{\Abs{P_{k}(z)}}{\delta_{k}}\right\} + \sup_{z\in A_{n}}\left\{\frac{\Abs{P_{n}(z)}}{\delta_{n}}\right\}
\end{align*}
\end{document}


I have a long equation showed as above, but I want move the second row to right as the following picture. What should I do?

• Can you make a complete example, so we don't have to reinvent your custom macros (like \Abs, \PartialConj). – Torbjørn T. Dec 17 '15 at 10:41
• Better to edit the code in your question, also adding a \documentclass, the required packages, and other missing definitions. – Torbjørn T. Dec 17 '15 at 10:47
• I'm sorry, I forgot that. – Kin Dec 17 '15 at 10:53

Another alternative is to use an aligned block:

\documentclass[a4paper,titlepage]{article}
\usepackage{amsmath,amssymb}
\newcommand*{\PartialConj}{\ensuremath{\bar{\partial}}}
\newcommand*{\Abs}[1]{\ensuremath{\left\lvert #1\right\rvert}}
\begin{document}
\begin{align*}
\Abs{\PartialConj F(z)}
& \leqslant \Abs{\chi'\left(\frac{\Abs{z-\alpha_{i}}^{2}}{\delta_{i}^{2}}\right)}\cdot\frac{\Abs{P_{i}(z)}}{\delta_{i}}
\begin{aligned}[t]
&{}+ \Abs{\chi'\left(\frac{\Abs{z-\alpha_{k}}^{2}}{\delta_{k}^{2}}\right)}\cdot\frac{\Abs{P_{k}(z)}}{\delta_{k}} \\
&{}+ \Abs{\chi'\left(\frac{\Abs{z-\alpha_{n}}^{2}}{\delta_{n}^{2}}\right)}\cdot\frac{\Abs{P_{n}(z)}}{\delta_{n}}
\end{aligned}\\
& \lesssim \sup_{z\in A_{i}}\left\{\frac{\Abs{P_{i}(z)}}{\delta_{i}}\right\} + \sup_{z\in A_{k}}\left\{\frac{\Abs{P_{k}(z)}}{\delta_{k}}\right\} + \sup_{z\in A_{n}}\left\{\frac{\Abs{P_{n}(z)}}{\delta_{n}}\right\}
\end{align*}
\end{document}


• You might need a small neg space \! before aligned in order to counteract the small space introduced by aligned itself. (I'm in nitpicking mood :-)) – campa Dec 17 '15 at 13:41

A quick and simple solution is to use \phantom{} for the second row:

\documentclass{article}

\usepackage{mathtools}
\usepackage{amssymb}
\newcommand*{\PartialConj}{\ensuremath{\bar{\partial}}}
\newcommand*{\Abs}[1]{\ensuremath{\left\lvert #1\right\rvert}}
\begin{document}

\begin{align*}
\Abs{\PartialConj F(z)}
&\leqslant \Abs{\chi'\left(\frac{\Abs{z-\alpha_{i}}^{2}}{\delta_{i}^{2}}\right)}\cdot\frac{\Abs{P_{i}(z)}}{\delta_{i}} + \Abs{\chi'\left(\frac{\Abs{z-\alpha_{k}}^{2}}{\delta_{k}^{2}}\right)}\cdot\frac{\Abs{P_{k}(z)}}{\delta_{k}} \\
& \,\phantom{\leqslant \Abs{\chi'\left(\frac{\Abs{z-\alpha_{i}}^{2}}{\delta_{i}^{2}}\right)}\cdot\frac{\Abs{P_{i}(z)}}{\delta_{i}}}\,
+ \Abs{\chi'\left(\frac{\Abs{z-\alpha_{n}}^{2}}{\delta_{n}^{2}}\right)}\cdot\frac{\Abs{P_{n}(z)}}{\delta_{n}}\\
&\lesssim \sup_{z\in A_{i}}\left\{\frac{\Abs{P_{i}(z)}}{\delta_{i}}\right\} + \sup_{z\in A_{k}}\left\{\frac{\Abs{P_{k}(z)}}{\delta_{k}}\right\} + \sup_{z\in A_{n}}\left\{\frac{\Abs{P_{n}(z)}}{\delta_{n}}\right\}
\end{align*}

\end{document}


Not really easy, but doable, with the help of a variant of my macro \Cen from https://tex.stackexchange.com/a/209732/4427

There's a small catch: the width of a subscript k is not the same as for n, so we need a trick.

I also improved the appearance and the input of those expressions with commands from mathtools; don't abuse \left and \right: as you'll see, the sizes of the delimiters are better here.

\documentclass[a4paper,titlepage]{article}
\usepackage{amsmath,amssymb,mathtools,calc}

\newcommand*{\PartialConj}{\bar{\partial}}
\DeclarePairedDelimiter{\Abs}{\lvert}{\rvert}
\DeclarePairedDelimiter{\Paren}{(}{)}
\DeclarePairedDelimiter{\Brace}{\{}{\}}

\makeatletter
\newcommand{\Shove}[3][c]{%
\ifmeasuring@
#3%
\else
\makebox[\ifcase\expandafter #2\maxcolumn@widths\fi][#1]{$\displaystyle{#3}$}%
\fi
}
\makeatother

% a subscript k as wide as n
\newcommand{\kn}{{\mathmakebox[\widthof{$\scriptstyle n$}]{k}}}

\begin{document}

\begin{align*}
\Abs{\PartialConj F(z)}
& \leqslant \Abs[\bigg]{\chi'\Paren[\bigg]{\frac{\Abs{z-\alpha_{i}}^{2}}{\delta_{i}^{2}}}}
\cdot
\frac{\Abs{P_{i}(z)}}{\delta_{i}}
+ \Abs[\bigg]{\chi'\Paren[\bigg]{\frac{\Abs{z-\alpha_{\kn}}^{2}}{\delta_{k}^{2}}}}
\cdot
\frac{\Abs{P_{\kn}(z)}}{\delta_{k}} \\
&\Shove[r]{2}{
{}+      \Abs[\bigg]{\chi'\Paren[\bigg]{\frac{\Abs{z-\alpha_{n}}^{2}}{\delta_{n}^{2}}}}
\cdot
\frac{\Abs{P_{n}(z)}}{\delta_{n}}
}\\
& \lesssim  \sup_{z\in A_{i}}\Brace[\bigg]{\frac{\Abs{P_{i}(z)}}{\delta_{i}}}
+ \sup_{z\in A_{k}}\Brace[\bigg]{\frac{\Abs{P_{k}(z)}}{\delta_{k}}}
+ \sup_{z\in A_{n}}\Brace[\bigg]{\frac{\Abs{P_{n}(z)}}{\delta_{n}}}
\end{align*}

\end{document}


Compare it with a more standard way

\documentclass[a4paper,titlepage]{article}
\usepackage{amsmath,amssymb,mathtools,calc}

\newcommand*{\PartialConj}{\bar{\partial}}
\DeclarePairedDelimiter{\Abs}{\lvert}{\rvert}
\DeclarePairedDelimiter{\Paren}{(}{)}
\DeclarePairedDelimiter{\Brace}{\{}{\}}

\makeatletter
\newcommand{\Shove}[3][c]{%
\ifmeasuring@
#3%
\else
\makebox[\ifcase\expandafter #2\maxcolumn@widths\fi][#1]{$\displaystyle{#3}$}%
\fi
}
\makeatother

\newcommand{\kn}{{\mathmakebox[\widthof{$\scriptstyle n$}]{k}}}

\begin{document}

\begin{align*}
\Abs{\PartialConj F(z)}
& \leqslant \Abs[\bigg]{\chi'\Paren[\bigg]{\frac{\Abs{z-\alpha_{i}}^{2}}{\delta_{i}^{2}}}}
\cdot
\frac{\Abs{P_{i}(z)}}{\delta_{i}}
+ \Abs[\bigg]{\chi'\Paren[\bigg]{\frac{\Abs{z-\alpha_{\kn}}^{2}}{\delta_{k}^{2}}}}
\cdot
\frac{\Abs{P_{\kn}(z)}}{\delta_{k}} \\
\cdot
\frac{\Abs{P_{n}(z)}}{\delta_{n}}\\[1ex]
& \lesssim  \sup_{z\in A_{i}}\Brace[\bigg]{\frac{\Abs{P_{i}(z)}}{\delta_{i}}}
+ \sup_{z\in A_{k}}\Brace[\bigg]{\frac{\Abs{P_{k}(z)}}{\delta_{k}}}
+ \sup_{z\in A_{n}}\Brace[\bigg]{\frac{\Abs{P_{n}(z)}}{\delta_{n}}}
\end{align*}

\end{document}


Quick and dirty but seems to do the trick:

\documentclass[a4paper,titlepage]{article}
\usepackage{mathtools,amssymb}
\newcommand*{\PartialConj}{\ensuremath{\bar{\partial}}}
\newcommand*{\Abs}[1]{\ensuremath{\left\lvert #1\right\rvert}}
\begin{document}
\begin{align*}
\Abs{\PartialConj F(z)} &
\begin{array}[t]{ll}
\leqslant \Abs{\chi'\left(\frac{\Abs{z-\alpha_{i}}^{2}}{\delta_{i}^{2}}\right)}\cdot\frac{\Abs{P_{i}(z)}}{\delta_{i}}
+ \Abs{\chi'\left(\frac{\Abs{z-\alpha_{k}}^{2}}{\delta_{k}^{2}}\right)}\cdot\frac{\Abs{P_{k}(z)}}{\delta_{k}} \\
\hfill+ \Abs{\chi'\left(\frac{\Abs{z-\alpha_{n}}^{2}}{\delta_{n}^{2}}\right)}\cdot\frac{\Abs{P_{n}(z)}}{\delta_{n}} \\
\end{array}\\
& \lesssim \sup_{z\in A_{i}}\left\{\frac{\Abs{P_{i}(z)}}{\delta_{i}}\right\} + \sup_{z\in A_{k}}\left\{\frac{\Abs{P_{k}(z)}}{\delta_{k}}\right\} + \sup_{z\in A_{n}}\left\{\frac{\Abs{P_{n}(z)}}{\delta_{n}}\right\}
\end{align*}
\end{document}


And one more solution, employing array, however slightly on different way as Denis do:

\documentclass{article}
\usepackage{amssymb,mathtools}
\newcommand*{\PartialConj}{\ensuremath{\bar{\partial}}}
\newcommand*{\Abs}[1]{\ensuremath{\left\lvert #1\right\rvert}}

\begin{document}
\begin{align*}
\Abs{\PartialConj F(z)}
&   \setlength{\arraycolsep}{1pt}
\begin{array}[t]{ll}
\leqslant \Abs{\chi'\left(\frac{\Abs{z-\alpha_{i}}^{2}}{\delta_{i}^{2}}\right)}
\cdot\frac{\Abs{P_{i}(z)}}{\delta_{i}}
&   +     \Abs{\chi'\left(\frac{\Abs{z-\alpha_{k}}^{2}}{\delta_{k}^{2}}\right)}
\cdot\frac{\Abs{P_{k}(z)}}{\delta_{k}} \\[1.5ex]
&   +     \Abs{\chi'\left(\frac{\Abs{z-\alpha_{n}}^{2}}{\delta_{n}^{2}}\right)}
\cdot\frac{\Abs{P_{n}(z)}}{\delta_{n}}
\end{array}\\
&   \lesssim \sup_{z\in A_{i}}\left\{\frac{\Abs{P_{i}(z)}}{\delta_{i}}\right\}
+ \sup_{z\in A_{k}}\left\{\frac{\Abs{P_{k}(z)}}{\delta_{k}}\right\}
+ \sup_{z\in A_{n}}\left\{\frac{\Abs{P_{n}(z)}}{\delta_{n}}\right\}
\end{align*}
\end{document}


Edit: By added \setlength{\arraycolsep}{1pt} before \begin{array} I fine adjust spaces between array parts.

Very easy to fix by making a right-aligned stack of the first two lines (and changing the \fracs to \dfracs).

\documentclass[a4paper,titlepage]{article}
\usepackage{amsmath,amssymb,stackengine}
\def\stackalignment{r}
\stackMath
\newcommand*{\PartialConj}{\ensuremath{\bar{\partial}}}
\newcommand*{\Abs}[1]{\ensuremath{\left\lvert #1\right\rvert}}
\begin{document}
\begin{align*}
\Abs{\PartialConj F(z)}
& \leqslant
\stackunder[5pt]{
\Abs{\chi'\left(\dfrac{\Abs{z-\alpha_{i}}^{2}}{\delta_{i}^{2}}\right)}\cdot\dfrac{\Abs{P_{i}(z)}}{\delta_{i}} + \Abs{\chi'\left(\dfrac{\Abs{z-\alpha_{k}}^{2}}{\delta_{k}^{2}}\right)}\cdot\dfrac{\Abs{P_{k}(z)}}{\delta_{k}}
}{
+ \Abs{\chi'\left(\dfrac{\Abs{z-\alpha_{n}}^{2}}{\delta_{n}^{2}}\right)}\cdot\dfrac{\Abs{P_{n}(z)}}{\delta_{n}}
} \\
& \lesssim \sup_{z\in A_{i}}\left\{\frac{\Abs{P_{i}(z)}}{\delta_{i}}\right\} + \sup_{z\in A_{k}}\left\{\frac{\Abs{P_{k}(z)}}{\delta_{k}}\right\} + \sup_{z\in A_{n}}\left\{\frac{\Abs{P_{n}(z)}}{\delta_{n}}\right\}
\end{align*}
\end{document}