和minipage

和minipage

我对 Beamer 和 LaTeX 本身还很陌生。

现在,我想创建一个简单的幻灯片,右侧是图片,左侧是文本和侧边栏(使用汉诺威主题)。我不知道该怎么做。

有什么建议么?

答案1

使用columns环境将幻灯片分成两列。然后使用\includegraphics插入图像:

\documentclass{beamer}
\usetheme{Hannover}
\begin{document}
\begin{frame}
\frametitle{A frame}
  \begin{columns}[T]
    \begin{column}{.5\textwidth}
     \begin{block}{Your textblock}
% Your text here
    \end{block}
    \end{column}
    \begin{column}{.5\textwidth}
    \begin{block}{Your image}
% Your image included here
    \includegraphics[<options, e.g. width=\textwidth>]{<your image file>}
    \end{block}
    \end{column}
  \end{columns}
\end{frame}
\end{document} 

答案2

minipage

您还可以使用以下方式执行此操作minipage

项目和图像出现的动画

这是相应的 LaTeX 代码,其中图像与第三个文本项同时出现:

\documentclass{beamer}

% No "Figure:" prefix for image captions
\usepackage{caption}
\captionsetup[figure]{labelformat=empty}

% Define appearance of the slides
\usetheme{Rochester}
\usecolortheme{spruce}

\definecolor{ming}{HTML}{417E8C}

% Some themes don't include the slide number
\setbeamerfont{page number in head/foot}{size=\small}
\setbeamercolor{page number in head/foot}{fg=ming}
\setbeamertemplate{footline}[frame number]

\setbeamercolor{itemize item}{fg=ming}
\setbeamertemplate{itemize item}[circle]

% No navigation symbols at the slides' bottom
\beamertemplatenavigationsymbolsempty

% Insert a pause after every item.
% Show an item immediately by adding <.->
\beamerdefaultoverlayspecification{<+->}

\begin{document}
\frame{
  \frametitle{A test with images}
  \framesubtitle{The image appears with the third item}
  \begin{minipage}{0.5\textwidth}
    \begin{itemize}
      \item don't show the image yet
      \item wait for it...
      \item show the image now
      \item keep showing the image
      \item keep showing the image still
    \end{itemize}
  \end{minipage} \hfill
  \begin{minipage}{0.45\textwidth}
    % Show the image at item three and afterwards
    \uncover<3->{
      \begin{figure}
        % From https://i.imgur.com/AyzVOIO.jpg
        \includegraphics[height=0.9\textwidth]{asimo}
        \caption{here's the image!}
      \end{figure}
    }
  \end{minipage}
}
\end{document}

\uncover当我们在演示文稿中到达某个项目时,它可以显示元素。


¹我无法弄清楚如何使用来将图像的外观与物品同步columns

相关内容