Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Say I am trying to center a group of equations, written in separate lines, with equality sign aligned one below another, which are defined by: $f(r)+1=g(r^2)+1=O(r)$ as $r\to 1$ by first using the following sequence of commands for centering:

\begin{align*}

& f(r)+1 \\
&=g(r^2)+2 \\
&=O(r)\\

\end{align*}

followed by as $r\to 1$. But this put $r\to 1$ in a different line, not in the same line with O(r). I want the last line to be written as: $O(r)$ as $r\to 1$, centered in the middle of the page. How can I achieve this ? Thank you!

share|improve this question
    
You can use O(r) \text{ as } r\to 1 as the final entry (and you don't want \\ after the last row). –  David Carlisle Mar 31 '13 at 16:50
add comment

1 Answer

\documentclass{article}
\usepackage{mathtools}

\begin{document}
\begin{align*}
f(r)+1  &=g(r^2)+2 \\
        &=O(r) \qquad \text{as } r\to 1
\end{align*}
\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.