我想在投影仪的目录中仅删除一个部分圆。但我不知道该怎么做。这是 MWE。
\documentclass[14pt,c]{beamer}
\setbeamertemplate{sections/subsections in toc}[circle]
\begin{document}
\frame[plain,c,noframenumbering]{
\tableofcontents[hideallsubsections]}
\section{section 1}
\frame{ frame 1}
\section{section 2}
\frame{ frame 2}
\section{lastsection} %which I want to remove its prefix circle or number in toc.
\frame{frame 3}
\end{document}
答案1
删除数字很容易:你可以使用以下命令指定目录中的最后一个编号部分lastsection=2
删除圆圈也有点棘手,但你可以section in toc
像这样重新定义模板:
\documentclass[14pt,c]{beamer}
\makeatletter
\setbeamertemplate{section in toc}
{\leavevmode\leftskip=2ex%
\llap{%
\ifnum\beamer@tempcount>\beamer@toclastsection
\else
\usebeamerfont*{section number projected}%
\usebeamercolor{section number projected}%
\begin{pgfpicture}{-1ex}{0ex}{1ex}{2ex}
\color{bg}
\pgfpathcircle{\pgfpoint{0pt}{.75ex}}{1.2ex}
\pgfusepath{fill}
\pgftext[base]{\color{fg}\inserttocsectionnumber}
\end{pgfpicture}\kern1.25ex%
\fi
}%
\inserttocsection\par}
\makeatother
\begin{document}
\frame[plain,c,noframenumbering]{
\tableofcontents[hideallsubsections,lastsection=2]}
\section{section 1}
\frame{ frame 1}
\section{section 2}
\frame{ frame 2}
\section{lastsection} %which I want to remove its prefix circle or number in toc.
\frame{frame 3}
\end{document}