我想在投影仪演示文稿中插入一个包含图形的数组。这可能吗?
如果有,有例子吗?
我尝试使用并排图形,但是从此代码中收到一条奇怪的错误消息:
\documentclass[fleqn,15pt]{beamer}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{etoolbox}
\usepackage{multirow}
\usetheme[blue,dark,colorblocks,tocinheader,]{tubs}
\apptocmd{\frame}{}{\justifying}{}
\begin{document}
\section{The Gem5 simulator}
\begin{frame}{The Gem5 simulator}
\begin{array}{ccc}
Fig 1 & Fig 2 & Fig 3 \\
Fig 4 & Fig 5 & Fig 6
\end{array}
\end{frame}
\end{document}
管: 大学模板
答案1
我猜想将图形数组放入框架内的方法可能有很多种。以下三张幻灯片基本上都分享了相同的简单想法。请注意$
开头和结尾的array
。
\documentclass{beamer}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{ragged2e}
\usepackage{etoolbox}
\apptocmd{\frame}{}{\justifying}{}
\begin{document}
\begin{frame}[t]{arrary of figures}
\includegraphics[width=0.33\linewidth]{example-image-a}
\includegraphics[width=0.33\linewidth]{example-image-b}
\includegraphics[width=0.33\linewidth]{example-image-c} \\
\includegraphics[width=0.33\linewidth]{example-image-a}
\includegraphics[width=0.33\linewidth]{example-image-b}
\includegraphics[width=0.33\linewidth]{example-image-c} \\
\includegraphics[width=0.33\linewidth]{example-image-a}
\includegraphics[width=0.33\linewidth]{example-image-b}
\includegraphics[width=0.33\linewidth]{example-image-c} \\
\end{frame}
\begin{frame}[t]{array of figures tabular}
\begin{tabular}{ccc}
\includegraphics[width=0.33\linewidth]{example-image-a} &
\includegraphics[width=0.33\linewidth]{example-image-b} &
\includegraphics[width=0.33\linewidth]{example-image-c} \\
\includegraphics[width=0.33\linewidth]{example-image-a} &
\includegraphics[width=0.33\linewidth]{example-image-b} &
\includegraphics[width=0.33\linewidth]{example-image-c} \\
\includegraphics[width=0.33\linewidth]{example-image-a} &
\includegraphics[width=0.33\linewidth]{example-image-b} &
\includegraphics[width=0.33\linewidth]{example-image-c} \\
\end{tabular}
\end{frame}
\begin{frame}{The Gem5 simulator}
\begin{figure}[h]
\centering
$\begin{array}{ccc}
\includegraphics[width=0.33\linewidth]{example-image-a} &
\includegraphics[width=0.33\linewidth]{example-image-b} &
\includegraphics[width=0.33\linewidth]{example-image-c} \\
\includegraphics[width=0.33\linewidth]{example-image-a} &
\includegraphics[width=0.33\linewidth]{example-image-b} &
\includegraphics[width=0.33\linewidth]{example-image-c} \\
\includegraphics[width=0.33\linewidth]{example-image-a} &
\includegraphics[width=0.33\linewidth]{example-image-b} &
\includegraphics[width=0.33\linewidth]{example-image-c} \\
\end{array}$
\end{figure}
\end{frame}
\end{document}