Beamer:頁面部分有 2 列

Beamer:頁面部分有 2 列

我想製作一張在分塊方面有更多彈性的幻燈片。

+-----------------------------------------------+
+ Block A                                       +
+ Item                                          + 
+ item                                          +
+-----------------------------------------------+
+--------------+ +------------------------------+
+ Block B      + + Figure using includegraphics +
+              + +                              +  
+--------------+ +------------------------------+

我嘗試了列和區塊的各種組合,但無法獲得所需的結果。

答案1

您只需結合使用columns和一些調整來定義圖片尺寸:

\documentclass{beamer}
\usepackage{lmodern}
\usepackage{mwe} % for dummy image
\usetheme{CambridgeUS}

\begin{document}

\begin{frame}{Title}
\begin{block}{The block title}
\begin{itemize}
\item a
\item b
\end{itemize}
\end{block}
\begin{columns}
\begin{column}{0.345\textwidth}
\begin{exampleblock}{Another block title}
\begin{itemize}
\item a
\item b
\end{itemize}
\end{exampleblock}
\end{column}%
\begin{column}{0.645\textwidth}
\includegraphics[width=\textwidth,height=0.6\textheight]{example-image}
\end{column}
\end{columns}
\end{frame}
\end{document}

結果:

在此輸入影像描述

筆記:

  • 定義兩列的寬度,使兩列的總和不超過\textwidth(在我的範例中,它比該值小一點,不會出現警告);
  • 以正確的方式設定圖像大小:您可以再次使用\textwidth寬度,因為該值實際上對應於列的寬度,但請小心高度。

相關內容