Math & ScienceParentheses around a sigma sum with huge subscript

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
hkyz
Posts: 9
Joined: Wed Apr 25, 2012 9:37 am

Parentheses around a sigma sum with huge subscript

Post by hkyz »

Consider the the following expression:

Code: Select all

\begin{equation}
A = \left( \sum_{\substack{i<B\\i<C\\i<D}}{i} \right)
\end{equation}
When latex renders it, there is significant empty space above the sigma sum that is covered by the parentheses. Any ideas on how to reduce the vertical size of the parenthesis so that it does not cover the empty space above the sigma?

Manual parentheses don't work. The expression is simply too tall.

Best,

hkyz

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Parentheses around a sigma sum with huge subscript

Post by Stefan Kottwitz »

You could change the base line by \vcenter. Here we just enter mathmode again, within that box, and switch on display style:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
A = \left(\vcenter{\hbox{$\displaystyle\sum_{\substack{i<B\\i<C\\i<D}}{i}$}} \right)
\end{equation}
\end{document}
Sum with parentheses
Sum with parentheses
sum.png (4.25 KiB) Viewed 5546 times
Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Parentheses around a sigma sum with huge subscript

Post by localghost »

Use manually adjusted delimiters.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}

\begin{document}
  \begin{equation}
    A=\Bigl(\sum_{\substack{i<B\\i<C\\i<D}}{i}\Bigr)
  \end{equation}
\end{document}
Usually the limits aren't enclosed by the delimiters.


Thorsten
hkyz
Posts: 9
Joined: Wed Apr 25, 2012 9:37 am

Re: Parentheses around a sigma sum with huge subscript

Post by hkyz »

Stefan's solution works well. Thanks a lot.
Post Reply