![消除投影仪中两幅图像之间的间隙](https://linux22.com/image/343037/%E6%B6%88%E9%99%A4%E6%8A%95%E5%BD%B1%E4%BB%AA%E4%B8%AD%E4%B8%A4%E5%B9%85%E5%9B%BE%E5%83%8F%E4%B9%8B%E9%97%B4%E7%9A%84%E9%97%B4%E9%9A%99.png)
我正在用 Beamer 制作多张海报。我遇到的问题是,其中一张海报(带框)上需要有 9 张图片(3 x 3)占据整个页面。这些图片被插入到我制作的 9 列之一中。问题是所有图片之间都有一条细细的灰线,我不知道如何去掉它:
这条线位于所有相邻图像之间。我不知道如何去掉它。
\begin{frame}
\begin{columns}
\begin{column}{0.333333\linewidth}
\includegraphics[width=1\columnwidth]{PNG's/1}
\end{column}
\begin{column}{0.333333\linewidth}
\includegraphics[width=1\columnwidth]{PNG's/2}
\end{column}
\begin{column}{0.333333\linewidth}
\includegraphics[width=1\columnwidth]{PNG's/3}
\end{column}
\end{columns}
\vspace{0cm}
\begin{columns}
\begin{column}{0.333333\linewidth}
\includegraphics[width=1\columnwidth]{PNG's/4}
\end{column}
\begin{column}{0.333333\linewidth}
\includegraphics[width=1\columnwidth]{PNG's/5}
\end{column}
\begin{column}{0.333333\linewidth}
\includegraphics[width=1\columnwidth]{PNG's/6}
\end{column}
\end{columns}
\vspace{0cm}
\begin{columns}
\begin{column}{0.333333\linewidth}
\includegraphics[width=1\columnwidth]{PNG's/7}
\end{column}
\begin{column}{0.333333\linewidth}
\includegraphics[width=1\columnwidth]{PNG's/8}
\end{column}
\begin{column}{0.333333\linewidth}
\includegraphics[width=1\columnwidth]{PNG's/9}
\end{column}
\end{columns}
\end{frame}
\end{document}
任何帮助,将不胜感激。
答案1
简单的方法是将每三张图片水平堆叠成一行,每张图片的宽度为0.333333\linewidth
。然后,\addvspace{-1pt}
在任意两行之间添加一个命令,以一致的方式完全删除任何多余的垂直空间。
请注意,这比无论前后环境如何都应保持垂直空间相同的情况\addvspace
要好。\vspace
\documentclass{beamer}
\usepackage{lmodern}
\begin{document}
\begin{frame}
\includegraphics[width=0.333333\linewidth]{example-image-a}
\includegraphics[width=0.333333\linewidth]{example-image-b}
\includegraphics[width=0.333333\linewidth]{example-image-c}
\addvspace{-1pt}
\includegraphics[width=0.333333\linewidth]{example-image-a}
\includegraphics[width=0.333333\linewidth]{example-image-b}
\includegraphics[width=0.333333\linewidth]{example-image-c}
\addvspace{-1pt}
\includegraphics[width=0.333333\linewidth]{example-image-a}
\includegraphics[width=0.333333\linewidth]{example-image-b}
\includegraphics[width=0.333333\linewidth]{example-image-c}
\end{frame}
\end{document}
答案2
我无法重现您的问题。但是,考虑到 cfr 注释,您可以按如下方式显示图片:
\documentclass[xcolor={dvipsnames,table},11pt]{beamer}
\setbeamertemplate{bibliography item}[text]
\begin{document}
\begin{frame}
\centering
\includegraphics[width=0.32\textwidth]{example-image-a}
\hfil
\includegraphics[width=0.32\columnwidth]{example-image-b}
\hfil
\includegraphics[width=0.32\columnwidth]{example-image-c}
\smallskip
\includegraphics[width=0.32\textwidth]{example-image-a}
\hfil
\includegraphics[width=0.32\columnwidth]{example-image-b}
\hfil
\includegraphics[width=0.32\columnwidth]{example-image-c}
\smallskip
\includegraphics[width=0.32\textwidth]{example-image-a}
\hfil
\includegraphics[width=0.32\columnwidth]{example-image-b}
\hfil
\includegraphics[width=0.32\columnwidth]{example-image-c}
\end{frame}
\end{document}