我正在使用 Beamer 中的 Antibes 主题,它不仅能显示当前章节和子章节,还能显示我想删除的缩短标题,并将此空间留给其余部分。我想保存图中红色显示的空间。
我在 Google 上搜索了很长时间,但仍然没有得到答复......
\documentclass{beamer}
\mode<presentation> {
\usetheme{Antibes}
\setbeamertemplate{footline}[page number] % To replace the footer line in all slides with a simple slide count uncomment this line
\author[My Name]{}
\institute[Lab Name]{ complete lab name }
\title[]{Analyse d’images satellitaires }
\begin{document}
{
\setbeamertemplate{headline}{}
\begin{frame}
\titlepage
\end{frame}
\section{section one}
\begin{frame}
\subsection{subsection one}
\end{frame}
\section{section two}
\begin{frame}
\subsection{subsection two}
\end{frame}
}
}
谢谢
答案1
您可以定义自己的标题并排除带有副标题的框:
\documentclass{beamer}
\usetheme{Antibes}
\setbeamertemplate{footline}[page number] % To replace the footer line in all slides with a simple slide count uncomment this line
\author[My Name]{}
\institute[Lab Name]{ complete lab name }
\title[]{Analyse d’images satellitaires }
\makeatletter
\setbeamertemplate{headline}
{%
\begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
% \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
% leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}
% \usebeamerfont{title in head/foot}\insertshorttitle
% \end{beamercolorbox}
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
\usebeamerfont{section in head/foot}%
\ifbeamer@tree@showhooks
\setbox\beamer@tempbox=\hbox{\insertsectionhead}%
\ifdim\wd\beamer@tempbox>1pt%
\hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
\hskip1pt%
\fi%
\else%
\hskip6pt%
\fi%
\insertsectionhead
\end{beamercolorbox}
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
\usebeamerfont{subsection in head/foot}%
\ifbeamer@tree@showhooks
\setbox\beamer@tempbox=\hbox{\insertsubsectionhead}%
\ifdim\wd\beamer@tempbox>1pt%
\hskip9.4pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}%
\hskip1pt%
\fi%
\else%
\hskip12pt%
\fi%
\insertsubsectionhead
\end{beamercolorbox}
\begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
}
\makeatother
\begin{document}
{
\setbeamertemplate{headline}{}
\begin{frame}
\titlepage
\end{frame}
}
\section{section one}
\subsection{subsection one}
\begin{frame}
\end{frame}
\section{section two}
\subsection{subsection two}
\begin{frame}
\end{frame}
\end{document}