我尝试使用以下代码删除侧边栏:
\documentclass[18pt]{beamer}
\mode<presentation> {
\usetheme{Hannover}
\usecolortheme{dolphin}
\usepackage{lipsum}
\useinnertheme{rounded}
}
\begin{document}
\begin{frame}[plain]
\frametitle{Test}
I wrote some text, which should appear on the left.
\end{frame}
\end{document}
我发现这\begin{frame}[plain]
已经足够了。但是,我得到了:
侧边栏不存在,但该位置未被使用。我该如何使用它,即,将其移动,block
就像没有侧边栏一样?
答案1
如果你不需要整个演示文稿中的侧边栏,也许值得使用
\setbeamersize{sidebar width left=0pt}
在序言中。
例子:
\documentclass[18pt]{beamer}
\mode<presentation> {
\usetheme{Hannover}
\usecolortheme{dolphin}
\usepackage{lipsum}
\useinnertheme{rounded}
}
\setbeamersize{sidebar width left=0pt}
\begin{document}
\begin{frame}
\frametitle{Test}
I wrote some text, which should appear on the left.
\end{frame}
\end{document}
结果:
如果只有一个框架而没有侧边栏,以前的解决方案就行不通了。因此,您可能需要做一些手动工作:
\documentclass[18pt]{beamer}
\usepackage{lmodern}
\mode<presentation> {
\usetheme{Hannover}
\usecolortheme{dolphin}
\usepackage{lipsum}
\useinnertheme{rounded}
}
%\setbeamersize{sidebar width left=0pt}
\begin{document}
\begin{frame}{First test}
I wrote some very long text, which should appear on the left.
\end{frame}
\begin{frame}[plain]{Test}
\hspace*{-1.5cm}\parbox[t]{\textwidth}{
This is some text.
\begin{itemize}[<+->]
\item one
\item two
\end{itemize}
I wrote some very long text, which should appear on the left.
}
\end{frame}
\begin{frame}{Another test}
I wrote some very long text, which should appear on the left.
\end{frame}
\end{document}
根据需要调整空间,但请记住,这样右边距就会向左移动。