Discussion:
vfill in columns with beamer class?
(too old to reply)
teXer03
2006-11-21 10:58:42 UTC
Permalink
Hello,

I am currently building a presentation using the beamer class.
I have a problem with using two columns. I want to insert
a stretchable vertical space (\vfill) to put some text at the bottom
of the slide in the second column. Here's my code:

\begin{frame}
\frametitle{Test}

\begin{columns}[T]

\column{0.7\textwidth}
\includegraphics[width=8cm]{Image}

\column{0.3\textwidth}
Text\\
\vspace{0.35cm}
Some more text\\

\vfill%Does not have any effect, help!

Text which should be at the bottom of the right
column.

\end{columns}

\end{frame}

I also tried \vspace*{\stretch{1}} instead of the \vfill to force the
space but it didn't have any effect.

Has anyone an idea how to solve this problem?

Many thanks in advance and

best regards,

Peter.
Henning Bredel
2006-11-21 12:21:01 UTC
Permalink
Post by teXer03
Hello,
I am currently building a presentation using the beamer class.
I have a problem with using two columns. I want to insert
a stretchable vertical space (\vfill) to put some text at the bottom
\begin{frame}
\frametitle{Test}
\begin{columns}[T]
\column{0.7\textwidth}
\includegraphics[width=8cm]{Image}
\column{0.3\textwidth}
Text\\
\vspace{0.35cm}
Some more text\\
\vfill%Does not have any effect, help!
Text which should be at the bottom of the right
column.
\end{columns}
\end{frame}
I also tried \vspace*{\stretch{1}} instead of the \vfill to force the
space but it didn't have any effect.
Has anyone an idea how to solve this problem?
Many thanks in advance and
best regards,
Peter.
try \vskip.5\textheight or something . . . But I am sorry, because I
don´t know a dynamic way to get on the bottom -- maybe a strut will
help ... ?!

Henning
teXer03
2006-11-21 14:26:19 UTC
Permalink
Hello,

thanks for the help, \vspace{5.3cm} did the job, also your
solution with \vskip.56\textheight worked.

Best regards,

Peter.
Steve Hicks
2006-11-21 21:50:20 UTC
Permalink
Post by teXer03
I am currently building a presentation using the beamer class.
I have a problem with using two columns. I want to insert
a stretchable vertical space (\vfill) to put some text at the bottom
thanks for the help, \vspace{5.3cm} did the job, also your
solution with \vskip.56\textheight worked.
I would be interested in hearing an explanation of why the \vfill
didn't work as one might naively expect, and what the best way is to
accomplish this -- it seems like there should be some way to do this
without explicitly specifying a length, since this breaks if the text
on either side of it grows or shrinks.

--
Steve Hicks
Ulrike Fischer
2006-11-22 09:15:52 UTC
Permalink
Post by Steve Hicks
Post by teXer03
thanks for the help, \vspace{5.3cm} did the job, also your
solution with \vskip.56\textheight worked.
I would be interested in hearing an explanation of why the \vfill
didn't work as one might naively expect, and what the best way is to
accomplish this -- it seems like there should be some way to do this
without explicitly specifying a length, since this breaks if the text
on either side of it grows or shrinks.
I didn't look into the code as the OP didn't provide a complete
(running) example, but you can use \vfill only in place where a height
to fill is given. E.g. \vfill doesn't work in tabular or minipage or
parbox (if you don't use the optional height argument in the two last).
It works in a normal text because the text is put in a box of height
\textheight.
--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.
Loading...