
希望我的問題描述了我的需要。我想在簡報中添加包含描述圖片的文字或方程式的小彩色框,我希望圖片先出現,然後是框,該框可能出現在圖片的一個角落或僅出現在圖片上方。我發現了一些東西這裡,但不是我現在需要的。此外,我在側面使用兩張圖片,因此,我想先顯示左側圖片,然後顯示文字框,然後顯示另一張圖片,然後顯示另一個文字框。我嘗試在圖片上方使用另一個標題,但看起來不太好。這是我的程式碼,我正在嘗試:
\documentclass[10pt]{beamer}
\usepackage{beamerthemeWarsaw}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{epsfig}
\usepackage{epstopdf}
\begin{document}
\begin{frame}{Robot Simulation}
\begin{columns}[c]
\column{2in} % slides are 3in high by 5in wide
\begin{figure}[!h]
\centering
\caption{$\theta = \begin{bmatrix} 0 & 0 & 0 & 0 \end{bmatrix} $}
\includegraphics[scale=0.4]{Picture 1}
\caption{Home position}
\label{Home_Position}
\end{figure}
\column{2in}
\begin{figure}[!h]
\centering
\includegraphics[scale=0.4]{Picture 2}
\caption{Upright position}
\label{Up_right}
\end{figure}
\end{columns}
\end{frame}
\end{document}
答案1
像這樣?
\documentclass[10pt]{beamer}
\usepackage{beamerthemeWarsaw}
\usepackage{amsmath}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{frame}{Robot Simulation}
\begin{columns}[c]
\column{2in} % slides are 3in high by 5in wide
\begin{figure}[!h]
\centering
\onslide<2->{
\begin{tcolorbox}[width=\columnwidth,colback=olive!60,colframe=red,center upper]
$\theta = \begin{bmatrix} 0 & 0 & 0 & 0 \end{bmatrix} $
\end{tcolorbox}}
\onslide<1->{\includegraphics[width=\columnwidth]{example-image}
\caption{Home position}}
\label{Home_Position}
\end{figure}
\column{2in}
\begin{figure}[!h]
\centering
\onslide<4->{
\begin{tcolorbox}[width=\columnwidth,colback=olive!60,colframe=red,center upper]
$\theta = \begin{bmatrix} 0 & 0 & 0 & 0 \end{bmatrix} $
\end{tcolorbox}}
\onslide<3->{\includegraphics[width=\columnwidth]{example-image-a}
\caption{Upright position}}
\label{Up_right}
\end{figure}
\end{columns}
\end{frame}
\end{document}
筆記:
使用width
for\includegraphics
代替scale
.