答案1
这将从导航中删除所有的小框架:
\documentclass{beamer}
\usepackage{tikz} % only for the for loop
\usetheme[compress]{Singapore}
\makeatletter
\def\slideentry#1#2#3#4#5#6{%
%section number, subsection number, slide number, first/last frame, page number, part number
\ifnum#6=\c@part\ifnum#2>0\ifnum#3>0%
\ifbeamer@compress%
\advance\beamer@xpos by1\relax%
\else%
\beamer@xpos=#3\relax%
\beamer@ypos=#2\relax%
\fi%
\fi\fi%
\else%
\fakeslideentry{#1}{#2}{#3}{#4}{#5}{#6}%
\fi\ignorespaces
}
\makeatother
\begin{document}
\section{bla}
\subsection{}
\foreach \i in {1,...,30} {
\frame{}
}
\section{very long long long long long long long long }
\frame{}
\section{very long long long long long long long long }
\frame{}
\section{blub}
\frame{}
\end{document}