Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Im having problems with the vertical space that the $$ $$ command creates. For example:

\begin{multicols}{2}
\begin{enumerate}
\item  \[\sum\limits_{k=1}^{\infty}\frac{k^2e^{-2k}}{k^2+1}\]
\item $$\sum\limits_{k=1}^{\infty}\frac{\left|\sin{k^4}\right|}{\sqrt{k^4+1}}$$
\end{enumerate}
\end{multicols}

This creates a vertical space between the \item and the object in the $$ $$ command. I just want to eliminate this effect. One possible solution is to use the fast math mode: $object$. But, this doesn't satisfy me.

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

First of all you should not use $$ ... $$ in LaTeX but \[ ... \]. Then: you are asking for display-math which is centered. This causes the vertical space. You need inline math, i.e. use $ ... $ or \( ... \) instead. You can add \displaystyle at the beginning to get the same style used as before:

\item $\displaystyle\sum\limits_{k=1}^{\infty}\frac{\left|\sin{k^4}\right|}{\sqrt{k^4+1}}$
share|improve this answer
    
Hello, your solution was exactly was I was looking for. Thank you very much! Now that you mentioned it, Im a little curious about why I should not use $$...$$ command...! –  user4836 Apr 17 '11 at 20:51
    
@user4836: Note that the correct/best answer to a question should be accepted using the tick-symbol below the vote count. This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). For the $$ versus \[ \] see the question Why is \[ … \] preferable to $$?. –  Martin Scharrer Apr 17 '11 at 21:00
    
Ok, thanks again! –  user4836 Apr 17 '11 at 21:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.