
以下命令
\documentclass[10pt]{beamer}
\usetheme{metropolis}
\begin{document}
\begin{frame}{Test}
\centering
\includegraphics{xxx.pdf}
\end{frame}
\end{document}
產生一個結果
透過使用pdflatex
,這不是我所期望的。
基本上,「xxx.pdf」包含白色背景,並且使用 \documentclass{article} 看起來不錯(正確顯示白色背景)。
是否可以將 xxx.pdf 包含在本文檔中而不對 xxx.pdf 進行任何更改?
非常歡迎任何意見和建議。謝謝。
更新:xxx.pdf可以下載這裡
答案1
“問題”是,您的圖像具有透明背景。原則上,使用 imagemagick 可以輕鬆刪除:
convert xxx.pdf xxxx.pdf
然而,由於metropolis
使用了非常淺的背景顏色,這看起來相當難看,看看圖像和背景之間的輕微邊框:
所以我會使用周圍頁面的背景顏色:
\documentclass[10pt]{beamer}
\usetheme{metropolis}
\definecolor{myback}{RGB}{250, 250, 250}
\begin{document}
\begin{frame}{Test}
\centering
{\color{myback}\includegraphics{xxx.pdf}}
\end{frame}
\end{document}