[texhax] Problem with vertical alignment in beamer with itemize and columns
Uwe Lück
uwe.lueck at web.de
Sun Apr 4 13:05:31 CEST 2010
I am not sure about my (?) code! (see below)
At 16:07 31.03.10, Susan Dittmar wrote:
>Dear Thomas,
>
>Uwe Lück put together what you need for another version of the list
>enviroment (see Mail concerning \blockquote on March 25th). Problem is
>\topsep which is not zero in itemize environments. I adjusted your example
>to use his code (see below). If you use nesting lists, you will have to
>check whether you need to redefine their internals aswell.
>
>Hope that helps,
>
> Susan
>
>\documentclass{beamer}
>\makeatletter % use @ as another normal letter (as in style files)
>% Environment MYitemize behaves like itemize but with \topsep 0pt and
>% \partopsep 0pt. From an e-mail to texhax at tug.org by Uwe Lück
>% (uwe.lueck at web.de).
>\newenvironment{MYitemize}{%
> \topsep=\z@
> \partopsep=\z@
The previous two lines should suffice, I have looked at the LaTeX
definitions again.
If they didn't with Jesus Guillermo Andrade, it is still a mystery to me,
needing more analysis.
The following two lines are useful as a general redefinition of \@listi and
\@listI in the document preamble only, I think, not as part of an
environment definition. This addressed Jesus Guillermo Andrade's desire not
to have any extra vertical spaces.
> \def\@listi{\leftmargin\leftmargini \parsep\z@ \topsep\z@ \itemsep\z@}
> \let\@listI\@listi
> \itemize
>}{%
> \enditemize
>}
>\makeatother % back to normal usage of @
>\begin{document}
> \begin{frame}[t] % note the alignment on this slide is all top aligned
> \begin{columns}[t]
> \begin{column}{0.5\textwidth}
> item baasdfasf \\
> item baasdfasf \\
> item baasdfasf \\
> item baasdfasf
> \end{column}
> \begin{column}{0.5\textwidth}
> item baasdfasf \\
> item baasdfasf \\
> item baasdfasf \\
> item baasdfasf
> \end{column}
> \end{columns}
> \end{frame}
>
> \begin{frame}[t] % note on this slide the second column come out below
> the first
> \begin{columns}[t]
> \begin{column}{0.5\textwidth}
> \begin{MYitemize}
> \item baasdfasf
> \item baasdfasf
> \item baasdfasf
> \item baasdfasf
> \end{MYitemize}
> \end{column}
> \begin{column}{0.5\textwidth}
> \begin{MYitemize}
> \item baasdfasf
> \item baasdfasf
> \item baasdfasf
> \item baasdfasf
> \end{MYitemize}
> \end{column}
> \end{columns}
> \end{frame}
>\end{document}
>
>
>_______________________________________________
>TeX FAQ: http://www.tex.ac.uk/faq
>Mailing list archives: http://tug.org/pipermail/texhax/
>More links: http://tug.org/begin.html
>
>Automated subscription management: http://tug.org/mailman/listinfo/texhax
>Human mailing list managers: postmaster at tug.org
More information about the texhax
mailing list