我在这个框架中有一张图片,我想显示它而不显示任何其他项目。就像下面这样。
我的 MWE 是
\documentclass[14pt]{beamer}% http://ctan.org/pkg/beamer
\let\Tiny\tiny% http://tex.stackexchange.com/q/58087/5764
\usetheme{Berkeley}
\makeatletter
\beamer@headheight=1.5\baselineskip
\makeatother
\setbeamercolor{normal text}{bg=black!10}
\title[Title]{My title}
\subtitle{Subtitle}
\author{Author}
\institute[Institute]{My institute}
\date[Date]{My date}
\logo{\color{blue!50}\scalebox{2}{\TeX}} % you can % it
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{A section}
\subsection{A subsection}
\begin{frame}
\frametitle{Frame title}
\framesubtitle{frame subtitle}
Some text
\end{frame}
\begin{frame}
Some more text
\end{frame}
\section{Another section}
\subsection{Another subsection}
\begin{frame}
picture
\end{frame}
\end{document}
答案1
使用plain
框架的选项:
\begin{frame}[plain]
picture
\end{frame}
完整示例:
\documentclass[14pt]{beamer}% http://ctan.org/pkg/beamer
\let\Tiny\tiny% http://tex.stackexchange.com/q/58087/5764
\usetheme{Berkeley}
\makeatletter
\beamer@headheight=1.5\baselineskip
\makeatother
\setbeamercolor{normal text}{bg=black!10}
\title[Title]{My title}
\subtitle{Subtitle}
\author{Author}
\institute[Institute]{My institute}
\date[Date]{My date}
\logo{\color{blue!50}\scalebox{2}{\TeX}} % you can % it
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{A section}
\subsection{A subsection}
\begin{frame}
\frametitle{Frame title}
\framesubtitle{frame subtitle}
Some text
\end{frame}
\begin{frame}
Some more text
\end{frame}
\section{Another section}
\subsection{Another subsection}
\begin{frame}[plain]
picture
\end{frame}
\end{document}
从上图可以看出,这样做会消除装饰元素,但侧边栏的宽度仍然保留,因此您需要一个负片\hspace
:
\documentclass[14pt]{beamer}% http://ctan.org/pkg/beamer
\let\Tiny\tiny% http://tex.stackexchange.com/q/58087/5764
\usetheme{Berkeley}
\makeatletter
\beamer@headheight=1.5\baselineskip
\makeatother
\setbeamercolor{normal text}{bg=black!10}
\title[Title]{My title}
\subtitle{Subtitle}
\author{Author}
\institute[Institute]{My institute}
\date[Date]{My date}
\logo{\color{blue!50}\scalebox{2}{\TeX}} % you can % it
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{A section}
\subsection{A subsection}
\begin{frame}
\frametitle{Frame title}
\framesubtitle{frame subtitle}
Some text
\end{frame}
\begin{frame}
Some more text
\end{frame}
\section{Another section}
\subsection{Another subsection}
\setbeamertemplate{sidebar}{}
\begin{frame}[plain]
\hspace*{-2.7cm}\includegraphics[height=\paperheight,width=\paperwidth]{ctanlion}
\end{frame}
\end{document}
CTAN 狮子绘画由 Duane Bibby 绘制。