나는 Beamer 프레임에서 두 개의 열과 두 개의 이미지를 나란히 사용하는 경우가 많습니다. 그러나 하나의 큰 이미지 3개와 두 번째 열에는 단일 Beamer 프레임에 캡션이 있는 4개의 이미지 또는 2개의 작은 이미지가 포함되어 있습니다. 누군가 도와줄 수 있나요?
\documentclass[slidestop,compress,11pt,xcolor=dvipsnames]{beamer}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{multicol}
\usepackage{lmodern}
\usepackage{marvosym}
\begin{document}
\begin{frame}
\begin{columns}[t]
\column{.5\textwidth}
\centering
\includegraphics[width=5cm,height=3.5cm]{example-image-golden}\\
\includegraphics[width=5cm,height=4cm]{example-image-golden}
\column{.5\textwidth}
\centering
\includegraphics[width=5cm,height=4cm]{example-image-golden}\\
\includegraphics[width=5cm,height=4cm]{example-image-golden}
\end{columns}
\end{frame}
\end{document}
답변1
패키지 사용 width=\columnwidth
및 로드 caption
:
\begin{frame}
\begin{columns}[t]
\column{.5\textwidth}
\includegraphics[width=\columnwidth,height=3cm]{example-image-golden}
\captionof{figure}{foo}
\includegraphics[width=\columnwidth,height=3cm]{example-image-golden}
\captionof{figure}{bar}
\column{.5\textwidth}
\includegraphics[width=\columnwidth,height=3cm]{example-image-golden}
\captionof{figure}{foo}
\includegraphics[width=\columnwidth,height=3cm]{example-image-golden}
\captionof{figure}{bar}
\end{columns}
\end{frame}