Math & ScienceBreaking up equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Breaking up equation

Post by niles »

Hi guys

Here is a MWE

Code: Select all

\documentclass[10pt, a4paper]{article}
\usepackage[T1]{fontenc}   
\usepackage[ntheorem]{empheq} 

\begin{document}

\begin{empheq}{alignat=4}
\left( {\sum\limits_{p,q} {U_{mp} V_{qn}^\dagger  \gamma_p(t)\gamma_q(t')+\gamma_q(t')\gamma_p(t)}} \right. + \\
\left. {\sum_{i,j} } \right)+
\end{empheq}

\end{document}
Goal: I would like for the two sum-signs (the two sigmas) to be aligned as well as the two plus signs. For some reason I am not allowed to insert alignments (&-signs) at the sigmas - I believe it is because of the left and right paranthesis. Is there a way to get around this problem?

Best,
Niles.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Breaking up equation

Post by localghost »

Thanks for the MWE. That made it easy to work out a solution. Use manual adjustment commands for the delimiters as shown below.

Code: Select all

\documentclass[10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[ntheorem]{empheq}

\begin{document}
  \begin{empheq}{alignat=2}
    \Big(\sum_{p,q}& U_{mp} V_{qn}^\dagger \gamma_p(t)\gamma_q(t')+\gamma_q(t')\gamma_p(t) &&+\\
    \sum_{i,j} &&\Big)&+
  \end{empheq}
\end{document}

Best regards
Thorsten
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Re: Breaking up equation

Post by niles »

Thanks, that worked!
Post Reply