[Tex/LaTex] Stretch mathematical symbols in mathmode


For an exercise I have to stretch the summation and other symbols vertically like

enter image description here

As you see does the size not change horizontally. Any suggestions on how to do this? I've been looking for quite some time now :/

*note I don't have the code of this picture the exercise is about finding out how to remake this picture.

Best Answer

Like this?

enter image description here

Of course, since this is an exercise, I shouldn't disclose the code I produced the image with. ;-)

The basis is, of course, \resizebox{1}[1.6]{...} from the graphicx package. However, proper positioning is not really easy, but not terribly difficult either.

Well here's the commented code

    % get the dimensions of \sum in \displaystyle
    % lower the stretched \sum by its height and raise it by the height
    % of the unstretched symbol; give it the height it should have
    % and the right depth
  #1{% #1 is either \mathopen or \mathclose, #2 is \lbrace or \rbrace (or any delimiter)
    % get the dimensions of the unstretched delimiter so that
    % it covers \sum with subscript and superscript
    % as before, place the symbol, but in this case we want its
    % depth to be zero; the stretching is somewhat different
\newcommand{\slbrace}{\sbrace{\mathopen}{\lbrace}} % stretched left brace
\newcommand{\srbrace}{\sbrace{\mathclose}{\rbrace}} % stretched right brace

0=\ssum_{i=1}^{n} m(X_{i},\hat{\theta}_{i})
=\ssum_{i=1}^{n} m(X_{i},\hat{\theta}_{0})
  \ssum_{i=1}^{n}\frac{\partial m(X_{i},\theta^{*}_{n})}{\partial \theta^{T}}
\textbf{\qquad l 2} \emph{Omdat $\hat{\theta}_{n}\xrightarrow{p}\theta^{*}_{0}$
en $\theta^{*}_{0}$ een waarde is die tussen $\hat{\theta}_{n}$ en 
$\theta^{*}_{0}$ ligt, zal}

I'm not sure if a student is really supposed to know all that, but maybe the instructor will learn something. ;-)

Related Question