I am a new latex users and in a report must print this type of summation
What is the latex code
Thanks to Steven B. Segletes I have obtained this result:
I need to reduce the space highlighted
I am a new latex users and in a report must print this type of summation
What is the latex code
Thanks to Steven B. Segletes I have obtained this result:
I need to reduce the space highlighted
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
\[
\sum_{\substack{0\le x<100\\x\in\mathbb{Z}}} f(x)
\]
\end{document}
To keep the substack from affecting the function offset, one can use \mathclap from the mathtools package:
\documentclass{article}
\usepackage{amsmath,amssymb,mathtools}
\begin{document}
\[
\sum_{\mathclap{\substack{0\le x<100\\x\in\mathbb{Z}}}} f(x)
\]
\end{document}
\[...\] does not number the equation, whereas \begin{equation}...\end{equation} does. Vertical spacing around the equation may also be slightly different.
– Steven B. Segletes
Feb 11 '16 at 18:36
equation* requires the amsmath package, whereas \[...\] does not. Of course, for this problem, amsmath is needed for the \substack.
– Steven B. Segletes
Feb 11 '16 at 18:38