Page Layoutalternative to manually inserting vspace everywhere.

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
dl3fo3
Posts: 10
Joined: Mon Jan 05, 2009 4:35 pm

alternative to manually inserting vspace everywhere.

Post by dl3fo3 »

I'm creating a document for presentation (beamer) and one of the things required for beauty reason is that there should not be too much empty space at the bottom or at the top of each slide. So I add \vspace manually like this:

Code: Select all

\begin{frame}
\begin{definition}
  \begin{itemize}
   \item blah blah blah blah
   \vspace{0.2in}
   \item blah blah blah
   \vspace{0.2in}
   \item blah blah blah blah
  \end{itemize}
\end{definition}

\vspace{0.3in}

\begin{theorem}
  blah blah blah blah
\end{theorem}

\vspace{0.3in}

\begin{theorem}
  blah blah blah blah
\end{theorem}
\end{frame}
Is there alternative ways somehow less manual?

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: 10348
Joined: Mon Mar 10, 2008 9:44 pm

alternative to manually inserting vspace everywhere.

Post by Stefan Kottwitz »

To remove the space at the top of a slide you could use the t option:

Code: Select all

\begin{frame}[t]
...
For using the full page you could insert \vfill between theorems and other parts of text instead of this \vspace.

Stefan
LaTeX.org admin
Post Reply