在 Beamer 中创建两个小页面后的垂直空间

在 Beamer 中创建两个小页面后的垂直空间

例子

想要使底部标题之间的间距与顶部标题之间的间距相同。问题最初源于无法扭曲图像。

答案1

如果您在命令前添加一个空行,您的解决方案可能会有效\vspace。由于您没有提供代码,我无法验证。下面是我的做法。

在此处输入图片描述

\documentclass{beamer}
\setbeamertemplate{navigation symbols}{} % I've never seen anyone using it
\begin{document}
\begin{frame}{Curve Offsetting}
  \begin{minipage}{0.65\textwidth}
      \emph{What is it?}
      \begin{itemize}
      \item A Computer Numerical Control (CNC) machine is a tool that
        bla bla bla bla bla bla bla bla bla
        bla bla bla bla bla bla bla bla bla
        bla bla bla bla bla bla bla bla bla
      \item A CNC evaluates all mathematics in a coordinate system.
      \end{itemize}
  \end{minipage}
  \hfill
  \raisebox{-0.5\height}{\includegraphics[width=0.3\textwidth]{example-image}}

  \bigskip  
  \emph{Why is it necessary?}
\end{frame}
\end{document}

答案2

我认为您应该简单地继续左栏中的文字。

\documentclass{beamer}

\begin{document}

\begin{frame}{Curve Offsetting}

\begin{columns}[T]
\begin{column}{0.7\textwidth}
  \emph{What is it?}

  \begin{itemize}
  \item A Computer Numerical Control (CNC) machine is a tool that
        uses programmed controls to perform tasks such as milling,
        pressing, grinding and many other tasks.
  \item A CNC evaluates all mathematics in a coordinate system.
  \end{itemize}\xdef\tpd{\the\prevdepth}

\emph{Why is it necessary?}
\end{column}
\begin{column}{0.3\textwidth}
\includegraphics[width=\linewidth]{example-image}
\end{column}
\end{columns}

\end{frame}

\end{document}

itemize或者,在:后恢复正确的间距

\documentclass{beamer}

\begin{document}

\begin{frame}{Curve Offsetting}

\begin{columns}[T]
\begin{column}{0.7\textwidth}
  \emph{What is it?}

  \begin{itemize}
  \item A Computer Numerical Control (CNC) machine is a tool that
        uses programmed controls to perform tasks such as milling,
        pressing, grinding and many other tasks.
  \item A CNC evaluates all mathematics in a coordinate system.
  \end{itemize}\xdef\tpd{\the\prevdepth}

\end{column}
\begin{column}{0.3\textwidth}
\includegraphics[width=\linewidth]{example-image}
\end{column}
\end{columns}

\prevdepth=\tpd
\vspace{\topsep}
\emph{Why is it necessary?}

\end{frame}
\end{document}

在此处输入图片描述

\tpd由于环境T中的操作对齐,此技巧是必要的columns

错位是由于columns环境造成的,这就是我建议继续该专栏的原因。

相关内容