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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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