3

I have an align environement with intertext:

\usepackage{amsmath,mathtools}
\begin{align*}
x&=f(z)\cos\alpha\\
y&=f(z)\sin\alpha
\shortintertext{with}
f(z)&=\ldots
\end{align*}

However I want a label, centered between the first two equations. So something like this:

\begin{equation}\label{eq:test}
\begin{aligned}
x&=f(z)\cos\alpha\\
y&=f(z)\sin\alpha
\end{aligned}
\end{equation}
with
\begin{equation*}
f(z)=\ldots
\end{equation*}

This allows labeling as I want it, but the third equation is not aligned anymore. Any ideas on how to solve this?

3
  • 1
    use align plus aligned or split for the first two, and add \nonumber to the last equation
    – daleif
    Jun 17, 2013 at 9:44
  • Thanks! (only works with split though).
    – Wox
    Jun 17, 2013 at 10:05
  • Seems you're right about aligned
    – daleif
    Jun 17, 2013 at 11:48

1 Answer 1

4

Please always post complete documents,not just fragments.

The split environment is designed for this use:

enter image description here

\documentclass{article}

\usepackage{amsmath,mathtools}
\begin{document}

aaa
\begin{align}
\begin{split}
x&=f(z)\cos\alpha\raisetag{0pt}\\
y&=f(z)\sin\alpha
\end{split}\\
\shortintertext{with}
f(z)&=\ldots
\end{align}

\end{document}
1
  • Thanks! align with split and \nonumber to the last equation works.
    – Wox
    Jun 17, 2013 at 10:05

You must log in to answer this question.

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