Math & ScienceReduce space before and after a sum in an equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

Reduce space before and after a sum in an equation

Post by NELLLY »

Hello
I need to reduce the space before and after the sum in an equation to be placed within a text. This is the equation

Code: Select all

 \documentclass[12pt]{article}
 \begin{document}
 texte.....$\alpha = \displaystyle\sum_{j=UCL+1}^{n}BIN(j, n, p_0)$....texte
 \end{document}
I used \! to reduce space but I didn't get good results.

Recommended reading 2024:

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

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

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

Reduce space before and after a sum in an equation

Post by localghost »

Use \mathclap from mathtools (part of the mh bundle).

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}  % loads »amsmath«

\begin{document}
  \[
    \alpha =\sum_{\mathclap{j=UCL+1}}^{n} BIN(j,n,p_0)
  \]
\end{document}

Further reading:

Thorsten
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

Re: Reduce space before and after a sum in an equation

Post by NELLLY »

Thanks.
Post Reply