Document ClassesSpace between and within equations in Beamer

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
bscout
Posts: 4
Joined: Mon Sep 01, 2008 1:50 am

Space between and within equations in Beamer

Post by bscout »

Hi guys. :)
I am working on a presentation and I am having a problem with the space within two equations in the equation environment and also with the space that is left after an equation, i.e. after the \end{equation}.

Specifically this is one of the case in which I am have too much space:

Code: Select all

\item Some stuff $\left\{\epsilon_{ij}\right\}$ i.i.d. 
$$\sigma_j(\omega,p)\equiv\sigma(\omega_j,\omega_{-j},p_j,p_{-j})=\frac{exp\left[g(\omega_j)-p_j\right]}{1+\sum_{q=1}^{J}\left[g(\omega_q)-p_q\right]}$$ \pause
\item I wish this was closer to the equation \pause
Thanks in advance and I apologize for the inconvenience.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Space between and within equations in Beamer

Post by Stefan Kottwitz »

Hi,

you could change the value of \belowdisplayskip and \belowdisplayshortskip:

Code: Select all

\setlength{\belowdisplayskip}{0pt}
You could even use negative values. The corresponding lengths for the skips above are \abovedisplayskip and \abovedisplayshortskip.
If you change those values inside an itemize environment it will not have an effect outside, the equations outside will be displayed like default.

Stefan
LaTeX.org admin
bscout
Posts: 4
Joined: Mon Sep 01, 2008 1:50 am

Space between and within equations in Beamer

Post by bscout »

Thank you very much Stefan_K. I think I am doing something wrong since is not working.

Code: Select all

\item $\left\{\epsilon_{ij}\right\}$ i.i.d. 
\setlength{\belowdisplayskip}{-10pt}
$$\sigma_j(\omega,p)\equiv\sigma(\omega_j,\omega_{-j},p_j,p_{-j})=\frac{exp\left[g(\omega_j)-p_j\right]}{1+\sum_{q=1}^{J}\left[g(\omega_q)-p_q\right]}$$ \pause
\item Therefore \pause
Could you take a minute again to tell me what I should do? I did not get completely the idea. Sorry. :|
User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Space between and within equations in Beamer

Post by Stefan Kottwitz »

It works for me, perhaps provide a compilable minimal working example showing the problem.

Stefan
LaTeX.org admin
Post Reply