我想创建一个框架,该框架完全填充图像或段落的内容。图像应延伸到其框的整个空间。对于段落,我认为最好在其框的左右边缘添加 3 毫米的边距。原始背景应替换为白色,如下所示(类似于我们为笔记页创建模板时),并且应删除任何其他内容(例如迷你框架超链接或调色板),即使它们上方没有内容。
下面的几行仅用于说明,但最好保留它们(可选),以便以后更轻松地阅读或调试。能够创建 2 x 3 的方格也很棒。
\documentclass{beamer}
\usepackage{eso-pic}
\usepackage{adjustbox}
\begin{document}
\begin{frame}
\AddToShipoutPictureFG*{%
\AtPageCenter{\includegraphics[width=0.5\paperwidth]{example-image-a}}%
}
\end{frame}
\end{document}
答案1
实现此目的的最简单方法是使用 TikZ,但需要进行双重编译:
\documentclass{beamer}
\usetheme{Warsaw}
\usepackage{tikz,calc}
\author{TeX.SE}
\title{How to place absolutely on a plain frame}
\begin{document}
\frame{\titlepage}
\begin{frame}[plain]
\begin{tikzpicture}[remember picture,overlay]
\node[inner sep=0pt,outer sep=0pt,anchor=south east] at (current page.center){\includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{example-image-a}};
\node[inner sep=0pt,outer sep=0pt,anchor=south west] at (current page.center){\includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{example-image-b}};
\node[inner sep=0pt,outer sep=0pt,anchor=north east] at (current page.center){\includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{example-image-c}};
\node[inner sep=0pt,outer sep=0pt,anchor=north west] at (current page.center){\includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{example-image}};
\end{tikzpicture}
\end{frame}
\end{document}