删除子部分幻灯片上的编号

发布于 2025-02-10 02:58:13 字数 1225 浏览 1 评论 0原文

我正在准备论文防御幻灯片,无法从幻灯片中删除显示小节名称的幻灯片(幻灯片5和7)。 我试图修改我正在使用的大都市模板,但没有成功。 有没有人知道该怎么做?

非常感谢您的帮助!

 \documentclass{beamer}
\usetheme[progressbar=frametitle, sectionpage=progressbar, subsectionpage=progressbar, block=fill]{metropolis}
\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{%
    \ifnum\insertframenumber>0
         \normalsize\insertframenumber%
    \fi%
}
 
\title{Title}
\subtitle{Sub-title}
\date{\today}
\author{author}
\institute{institute}
 
 
\AtBeginSection[]
{
    \setbeamertemplate{navigation symbols}{}
    \frame[plain,c,noframenumbering]{
        \sectionpage
        \tableofcontents[currentsection,subsectionstyle=hide]}
    \setbeamertemplate{navigation symbols}{\normalsize\insertframenumber}
}
 
\makeatletter
 
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
 
\makeatother
 
\begin{document}
  \maketitle
 
\section{First section}
 
\begin{frame}
Content 
\end{frame}
 
\section{Second section}
\subsection{First sub section}
\begin{frame}
Content 
\end{frame}   
 
\subsection{Second sub section}
\begin{frame}
Content 
\end{frame} 
 
 
\section{Third section}
\end{document}

I am preparing my thesis defense slides and I can't remove the numbering from the slide that displays the name of the sub-section (slide 5 and 7).
I have tried to modify the metropolis template I am using, but without success.
Is there anyone who knows how to do this?

Thank you very much for your help!

 \documentclass{beamer}
\usetheme[progressbar=frametitle, sectionpage=progressbar, subsectionpage=progressbar, block=fill]{metropolis}
\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{%
    \ifnum\insertframenumber>0
         \normalsize\insertframenumber%
    \fi%
}
 
\title{Title}
\subtitle{Sub-title}
\date{\today}
\author{author}
\institute{institute}
 
 
\AtBeginSection[]
{
    \setbeamertemplate{navigation symbols}{}
    \frame[plain,c,noframenumbering]{
        \sectionpage
        \tableofcontents[currentsection,subsectionstyle=hide]}
    \setbeamertemplate{navigation symbols}{\normalsize\insertframenumber}
}
 
\makeatletter
 
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
 
\makeatother
 
\begin{document}
  \maketitle
 
\section{First section}
 
\begin{frame}
Content 
\end{frame}
 
\section{Second section}
\subsection{First sub section}
\begin{frame}
Content 
\end{frame}   
 
\subsection{Second sub section}
\begin{frame}
Content 
\end{frame} 
 
 
\section{Third section}
\end{document}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

始终不够 2025-02-17 02:58:13

有趣的巧合,我几个小时前在 htttps:htttps:htttps:htttps:// topanswers。 xyz/tex?q = 2047#A2293

 \documentclass{beamer}
\usetheme[progressbar=frametitle, sectionpage=progressbar, subsectionpage=progressbar, block=fill]{moloch}% modern fork of the metropolis theme
\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{\normalsize\insertframenumber}
 
\title{Title}
\subtitle{Sub-title}
\date{\today}
\author{author}
\institute{institute}
 
\AtBeginSection[]
{
    \setbeamertemplate{navigation symbols}{}
    \frame[plain,c,noframenumbering]{
        \sectionpage
        \tableofcontents[currentsection,subsectionstyle=hide]}
    \setbeamertemplate{navigation symbols}{\normalsize\insertframenumber}
}
 
\makeatletter
 
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
 
\patchcmd{\ps@empty}{\usebeamertemplate***{navigation symbols}}{}{}{} 
 
\makeatother
 
\begin{document}
  \maketitle
 
\section{First section}
 
\begin{frame}
Content 
\end{frame}
 
\section{Second section}
\subsection{First sub section}
\begin{frame}
Content 
\end{frame}   
 
\subsection{Second sub section}
\begin{frame}
Content 
\end{frame} 
 
\section{Third section}
\end{document}

Funny coincidence, I just answered basically the same problem a couple of hours ago at https://topanswers.xyz/tex?q=2047#a2293

 \documentclass{beamer}
\usetheme[progressbar=frametitle, sectionpage=progressbar, subsectionpage=progressbar, block=fill]{moloch}% modern fork of the metropolis theme
\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{\normalsize\insertframenumber}
 
\title{Title}
\subtitle{Sub-title}
\date{\today}
\author{author}
\institute{institute}
 
\AtBeginSection[]
{
    \setbeamertemplate{navigation symbols}{}
    \frame[plain,c,noframenumbering]{
        \sectionpage
        \tableofcontents[currentsection,subsectionstyle=hide]}
    \setbeamertemplate{navigation symbols}{\normalsize\insertframenumber}
}
 
\makeatletter
 
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
 
\patchcmd{\ps@empty}{\usebeamertemplate***{navigation symbols}}{}{}{} 
 
\makeatother
 
\begin{document}
  \maketitle
 
\section{First section}
 
\begin{frame}
Content 
\end{frame}
 
\section{Second section}
\subsection{First sub section}
\begin{frame}
Content 
\end{frame}   
 
\subsection{Second sub section}
\begin{frame}
Content 
\end{frame} 
 
\section{Third section}
\end{document}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文