3

This question already has an answer here:

Here is what I have:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{align*}
 &f(x) = y \\
 &f(g(x)) = g(y) \\
 &15
\end{align*}
Here is some text commenting on the similarity of these two sets of equations    .
\begin{align*}
 &f'(x) = y' \\
 &f'(g'(x)) = g'(y) \\
 &15000
\end{align*}
But now the bottom align* is just a tiny bit to the left of the top one, which looks wierd.
\end{document}

Is there a good way to make these two aligns line up horizontally? Let me know if it's not clear what I'm going for here. I'm open to using something other than align* of course.

marked as duplicate by Werner, karlkoeller, clemens, zeroth, Svend Tveskæg Oct 1 '13 at 19:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 6
    Use \intertext{Here is some text commenting on the similarity of these two sets of equations .} – karlkoeller Oct 1 '13 at 19:00
  • Or make &f(g(x)) = g(y)\phantom{'''} \\ the second line of your first align*. – Steven B. Segletes Oct 1 '13 at 19:03