我已将框架分为两列。每列都有图片和逐项文本。我试图在每列顶部添加标题,但不起作用。我希望在每列的顶部中央添加一个标题
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{columns}
\column{0.5\textwidth}
First Column
\begin{tikzpicture}
\draw[red] (0.46,0.56) ellipse (0.9cm and 0.75cm);
\end{tikzpicture}
\begin{itemize}
\item 1
\end{itemize}
\column{0.5\textwidth}
Second Column
\begin{tikzpicture}
\draw[green] (0.46,0.56) ellipse (0.9cm and 0.75cm);
\end{tikzpicture}
\begin{itemize}
\item 1
\end{itemize}
\end{columns}
\end{frame}
\end{document}
答案1
您正在与第一/第二列标题在同一行上绘图(请记住:当您简单地按下键盘LaTeX
时不会添加新行)。在每列的开头添加一个可以轻松解决此问题。Return
\centering
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\begin{columns}
\column{0.5\textwidth}\centering
First Column\\[.2cm]
\begin{tikzpicture}
\draw[red] (0.46,0.56) ellipse (0.9cm and 0.75cm);
\end{tikzpicture}
\begin{itemize}
\item 1
\item 2
\end{itemize}
\column{0.5\textwidth}\centering
Second Column\\[.2cm]
\begin{tikzpicture}
\draw[green] (0.46,0.56) ellipse (0.9cm and 0.75cm);
\end{tikzpicture}
\begin{itemize}
\item 1
\item 2
\end{itemize}
\end{columns}
\end{frame}
\end{document}