# beamer with \index creates empty lines in the index [closed]

I try to build an index in two columns at the end of my slides. To do so, I use the definitions from Create index entries in beamer with 2 columns (latex-community.org):

\documentclass{beamer}
\usepackage{makeidx}
\makeindex
\newenvironment{theindex}
{\let\item\par %definitions for subitem etc
}{}
\newcommand\indexspace{}

\begin{document}

\begin{frame}{test 1}
\index{Laplace}Laplace transform is... \LaTeXe\ can make you happy!
\index{Test}
\end{frame}

\begin{frame}{test 2}
\printindex \end{frame}
\end{document}


However, sometimes the index entry including the page numbers fits in one line, but nevertheless LaTeX makes an empty line after the entry. It looks pretty ugly... What can I do to avoid the empty lines?

-

## closed as too localized by Marco Daniel, egreg, lockstep, Joseph Wright♦Apr 14 '12 at 22:09

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. –  lockstep Mar 18 '12 at 17:50
Also note that you don't have to sign with your name since it automatically appears in the lower right corner of your post. –  lockstep Mar 18 '12 at 17:51
It looks fine with me. Please, run 1) pdflatex, 2) pdflatex again, 3) makeindex, and post the contents of .idx and .ind files. –  yo' Mar 18 '12 at 18:10