答案1
在后面添加以下几行\useoutertheme[subsection=false]{miniframes}
:
\usepackage{xpatch}
\makeatletter
\xpatchcmd\beamer@@tmpl@headline{%
\vskip2pt\insertnavigation{\paperwidth}\vskip2pt%
}{%
\vskip2pt\insertnavigation{\paperwidth}\vskip5pt% modify 5pt to change the distance
}{}{}
\makeatother
这修补了在 中定义的代码texmf-dist/tex/latex/beamer/beamerouterthememiniframes.sty
。
\documentclass[compress]{beamer}
\usetheme{Warsaw}
\useoutertheme{infolines}
\useoutertheme[subsection=false]{miniframes}
\usepackage{xpatch}
\makeatletter
\xpatchcmd\beamer@@tmpl@headline{%
\vskip2pt\insertnavigation{\paperwidth}\vskip2pt%
}{%
\vskip2pt\insertnavigation{\paperwidth}\vskip5pt% modify 5pt to change the distance
}{}{}
\makeatother
\begin{document}
\section{A}
\begin{frame}{a}
\end{frame}
\begin{frame}{b}
\end{frame}
\section{B}
\begin{frame}{a}
\end{frame}
\begin{frame}{b}
\end{frame}
\end{document}