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

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
Stefan Kottwitz
Site Admin
Posts: 10348
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 5652 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