5

I have set of equations which I would like to just assign one number to. The equations should be aligned at the center of the page. The problem is that I would like all equations to begin at the same point whereas now they end at the same point. I use the \usepackage{amsmath}. Using the following input:

\begin{equation}
\begin{aligned}
u_1 = \partial \phi_1 / \partial x + \partial \psi_1 / \partial z \\
w_1 = \partial \phi_1 / \partial z - \partial \psi_1 / \partial x \\
u_2 = \partial \phi_2 / \partial x \\
w_2 = \partial \phi_2 / \partial z
\label{eq2.23}
\end{aligned}
\end{equation}

I get the following output:

enter image description here

The problem is that I want the u2 and w2 to appear directly below u1 and w1. If anyone can help me with this, I would greatly appreciate it!

3
  • 2
    Or put & at the beginning of each row to align the left-hand edge. Commented Dec 4, 2015 at 9:31
  • 2
    Does this answer your question? Align equation left
    – user202729
    Commented Apr 19 at 22:34
  • This isn't a duplicate because it involves a set of equations rather than just one. (Even if some of the same solutions apply.)
    – cfr
    Commented Apr 20 at 1:43

1 Answer 1

9

Use the alignment tab & to justify the equations, i.e. substitute = by &=.

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{equation}
\begin{aligned}
u_1 &= \partial \phi_1 / \partial x + \partial \psi_1 / \partial z \\
w_1 &= \partial \phi_1 / \partial z - \partial \psi_1 / \partial x \\
u_2 &= \partial \phi_2 / \partial x \\
w_2 &= \partial \phi_2 / \partial z
\label{eq2.23}
\end{aligned}
\end{equation}
\end{document}

enter image description here

2
  • Thanks a lot. I didn't realize it was that easy :). Really appreciate it!
    – Kristian
    Commented Dec 4, 2015 at 9:33
  • 2
    @Kristian If you want to learn more about the possibilities in mathmode, this might be interesting. Commented Dec 4, 2015 at 9:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .