Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overprint should have an option for vertical alignment #770

Open
quazgar opened this issue May 6, 2022 · 1 comment
Open

overprint should have an option for vertical alignment #770

quazgar opened this issue May 6, 2022 · 1 comment

Comments

@quazgar
Copy link

quazgar commented May 6, 2022

The overprint environment contents do not know about each other's size, which makes e.g. vertical centering extra tricky. It would be great if there was an option for vertical alignment, similar to the [t], [c], [b] options which already exist for the column(s) environments.

@samcarter
Copy link
Collaborator

samcarter commented May 6, 2022

Personally, I would use a minipage of fixed height instead of overprint. This is the most powerful tool to get the alignment you want

\documentclass{beamer}

\usepackage{mwe}
\begin{document}
\begin{frame}
  \hrulefill{}
  \begin{columns}
    \begin{column}{0.4\textwidth}
      Some text.
    \end{column}
    \begin{column}{0.55 \textwidth}
      \begin{minipage}[c][.5\textheight]{\linewidth}
        \centering
        \includegraphics<1>[width=.25\linewidth]{image-a.pdf}
        \includegraphics<2>[width=1\linewidth]{image-b.pdf}
      \end{minipage}
    \end{column}
  \end{columns}
  \hrulefill{}
\end{frame}
\end{document}

document

This requires either guessing or measuring the height, but I think this is worth the effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants