请检查下面的代码块:
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
{
\frametitle{Characteristics of ABCDE}
\begin{minipage}[c]{.5\linewidth}
\begin{itemize}
\item AAAAAAA
\item BBBBBBBBBB
\item CCCCCCCCCC
\item DDDDDDDDDDDD
\item EEEEEEEEE
\end{itemize}
\end{minipage} \hfill
\begin{minipage}[c]{.4\linewidth}
\raggedleft
\begin{tikzpicture}
\includegraphics[width=.4\linewidth]{example-image-a}
\draw<1>[red,ultra thick,rounded corners] (5.7,4.1) rectangle (7.5,4.9);
\end{tikzpicture}
\end{minipage}
\hspace{10mm}
\begin{block}{Salient Points}
{
XyZ xyZ
}
\end{block}
}
\end{frame}
\end{document}
答案1
我对您的代码进行了一些编辑和修改。主要是,\node
在 周围缺少\includepicture
。以下内容是您想要的吗?
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\frametitle{Characteristics of ABCDE}
\begin{minipage}{.5\linewidth}
\begin{itemize}
\item AAAAAAA
\item BBBBBBBBBB
\item CCCCCCCCCC
\item DDDDDDDDDDDD
\item EEEEEEEEE
\end{itemize}
\end{minipage}\hfill
\begin{tikzpicture}[baseline=0cm]
\node (A) {\includegraphics[width=.4\linewidth]{example-image-a}};
\draw<1>[red,ultra thick,rounded corners] (A.south west) rectangle (A.north east);
\end{tikzpicture}
\vspace{10mm}
\begin{block}{Salient Points}
{
Reduction in the number of nanotubes per memory cell.
}
\end{block}
\end{frame}
\end{document}
答案2
也许你应该使用原生的 beamercolumns
而不是minipage
s。这只是为了说明:
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\frametitle{Characteristics of ABCDE}
\begin{columns}
\column{0.5\linewidth}
\begin{itemize}
\item AAAAAAA
\item BBBBBBBBBB
\item CCCCCCCCCC
\item DDDDDDDDDDDD
\item EEEEEEEEE
\end{itemize}
\hfill
\column{0.5\linewidth}
\begin{tikzpicture}
\node[anchor=south west,inner sep=0] (image) at (0,0)
{\includegraphics[width=0.9\textwidth]{example-image-a}};
\begin{scope}[x={(image.south east)},y={(image.north west)}]
%helper grid for locating coordinates, comment these 3 lines in the final vesion
%\draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);
%\foreach \x in {0,1,...,9} { \node [anchor=north,font=\tiny] at (\x/10,0) {0.\x}; }
%\foreach \y in {0,1,...,9} { \node [anchor=east,font=\tiny] at (0,\y/10) {0.\y}; }
\draw[red,ultra thick,rounded corners] (0.35,0.25) rectangle (0.65,0.75);
\end{scope}
\end{tikzpicture}
\end{columns}
\vspace{10mm}
\begin{block}{Salient Points}
XyZ xyZ
\end{block}
\end{frame}
\end{document}