1

The following simple expression produces a sum operator as in (1). But I want it to be bigger like in (2), of course, without altering the size of inner braces. Any suggestion?

\documentclass[a4,12pt]{article}
\begin{document}
   $$\sum_{i=1}^{N_P}\biggl(X^{(i)}-Y^{(i)}\biggr)^2$$
\end{document}

enter image description here

Tnoor
  • 117
  • 2
    Please have a look on http://tex.stackexchange.com/questions/503/why-is-preferable-to ;-) –  Nov 07 '14 at 17:06
  • 2
    There is no reason for using \bigg in the first expression; if you use simple ( and ), the size of the summation symbol is just right. And there's no reason for increasing the size of \sum under any circumstance, in my opinion. – egreg Nov 07 '14 at 17:07
  • @egreg well, I actually need it bigger – Tnoor Nov 07 '14 at 17:42
  • @Tnoor No, you want it bigger. You didn't give any reason why it has to be bigger. The problem is that there's no such reason, as far as I know. – yo' Nov 07 '14 at 17:47
  • @tohecz My reason might seem unreasonable to someone else, or maybe you are right in speculating that I don't really have any. With due respect, why there always have to be a reason?-The fact here is not why, the fact is how. – Tnoor Nov 07 '14 at 18:00
  • 1
    @Tnoor The fact is "why", because when I copy edit articles and other works done by people who think they "know the things" and they actually do not, it is very painful, takes a lot of time, and costs money to the university which I work for. That's one of the reasons why many people here want everybody to use LaTeX to do good typography, and not to defile their documents. – yo' Nov 07 '14 at 18:03
  • to moderator -- i accidentally flagged a comment i meant to upvote. sorry. my ipad and i don't communicate very well. – barbara beeton Nov 07 '14 at 19:33

2 Answers2

0
\documentclass{article}
\usepackage{graphicx}
\newcommand*{\Scale}[2][4]{\scalebox{#1}{$#2$}}%
\newcommand*{\Resize}[2]{\resizebox{#1}{!}{$#2$}}%
 \begin{document}

    \[\sum_{i=1}^{N_P}\biggl(X^{(i)}-Y^{(i)}\biggr)^2\]

    \[\mathop{\Scale[2]{\sum}}_{i=1}^{N_P}\biggl(X^{(i)}-Y^{(i)}\biggr)^2\]


 \end{document}

enter image description here

Colas
  • 6,772
  • 4
  • 46
  • 96
0

Compile with LuaLaTeX (or XeLaTeX).

\documentclass{scrartcl}
\usepackage{unicode-math}
\setmathfont{Cambria Math}
\begin{document}
\[ \sum_{i=1}^{N_P} \bigl(X^{(i)} - Y^{(i)}\bigr)^2 \]
\end{document}
Manuel
  • 27,118