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.

I have an equation that is two wide to fit on a single line, but it has \left(-\right) split over two lines, and I can't align to something inside these for some reason... The wanted output is something like this:

A = B ( C
        + D ) (1)

The best I can do is this:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
 A =
 \begin{aligned}[t]
  &\left( B \right. \\
  &\phantom{(} \left. + C \right)
 \end{aligned}
 %\raisetag{-1\baselineskip} <- doesn't work :-(
\end{equation}
\end{document}

But this places the equation number on the top line, which looks very awkward when the horizontal spacing is a lot more compact than in this isolated example.

What magic ritual do I need to perform for the proper layout of this equation?

share|improve this question
    
It should be \raisetag{-1\baselineskip}. –  Henri Menke Jul 17 at 13:03
    
@Henri true, typo, but that doesn't work. –  rubenvb Jul 17 at 13:05
    

2 Answers 2

I'd do something like this

\documentclass{article}
\usepackage{amsmath}
\begin{document}
  \begin{align}
    A &= \Bigl( B  \notag \\
      &\phantom{= \Bigl(}  + C \Bigr)
  \end{align}
\end{document}

or using split

\documentclass{article}
\usepackage{amsmath}
\begin{document}
  \begin{equation}
    \begin{split}
      A &= \Bigl( B  \\
        &\phantom{= \Bigl(}  + C \Bigr)
    \end{split}
  \end{equation}
\end{document}

The latest will write the number of the equation in the middle of the multiple-line equation.

share|improve this answer
2  
Please always use \Bigl and \Bigr to get the correct spacing for opening and closing delimiters. –  Henri Menke Jul 17 at 13:11
    
@HenriMenke Wow... I didn't knew that! Thank you for the advise, I'll change the examples! –  Dox Jul 17 at 13:13

As \raisetag doesn't seem to work properly here the align environment looks like a decent solution:

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{align}
 A = &\left( B \right. \notag \\
     &\phantom{(} \left. + C \right)
\end{align}
\end{document}

enter image description here

share|improve this answer

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.