Beamer Metropolis 部分页面上没有框架编号

Beamer Metropolis 部分页面上没有框架编号

下列的Beamer 脚注与幻灯片编号处于同一级别

我试图将脚注与幻灯片编号放在同一行。

但是,解决方案为章节页面添加了编号。我该如何去掉它,但又将其保留在标题和章节框架以外的框架上?

答案1

您可以使用与以下相同的方法https://topanswers.xyz/tex?q=2042#a2294

\documentclass{beamer}

\usetheme{moloch}% modern fork of the metropolis theme

\setbeamertemplate{footline}{%
  \hfill\smash{\usebeamerfont{page number in head/foot}\usebeamercolor[fg]{page number in head/foot}\raisebox{0.1cm}{\usebeamertemplate{page number in head/foot}}~}
}

\setbeamercolor{page number in head/foot}{fg=gray}
\setbeamertemplate{page number in head/foot}[framenumber]

\begin{document}

\section{title}

\begin{frame}
\frametitle{blub}
    abc\footnote{Footnote text.}
\end{frame} 

\begin{frame}
content...
\end{frame}

\end{document}

答案2

通过删除帧号来修改该答案:

\documentclass[]{beamer}
\usetheme[progressbar=frametitle]{metropolis}
\setbeamertemplate{footline}{}

\setbeamertemplate{navigation symbols}{%
    \ifnum\insertframenumber>0
        \relax%
    \fi%
}

\begin{document}

\begin{frame}[plain,noframenumbering]
\titlepage
\end{frame}

\begin{frame}
Some text\footnotemark
\footnotetext[1]{some footnote text here, which is not at the same level as slide number}
\end{frame}

\section{New Section}
\begin{frame}[noframenumbering]
\begin{itemize}
\item this is item zero 
\item and item one ...
\item finally number three ..
\end{itemize}
\end{frame}

\end{document}

答案3

对于简单的用法,只需\vspace{}在脚注中添加否定词即可:

\documentclass[]{beamer}
\usetheme[progressbar=frametitle]{metropolis}
% \setbeamertemplate{footline}{}


\setbeamertemplate{footnote}{%
  \parindent 0em\noindent%
  \raggedright
  \usebeamercolor{footnote}\hbox to 0.8em{\hfil\insertfootnotemark}\insertfootnotetext\par%
  \vspace{-.73cm}
}

\begin{document}

\begin{frame}[plain,noframenumbering]
\titlepage
\end{frame}

\begin{frame}
Some text\footnotemark
\footnotetext[1]{some footnote text here, which is not at the same level as slide number}
\end{frame}

\section{New Section}
\begin{frame}
\begin{itemize}
\item this is item zero
\item and item one ...
\item finally number three ..
\end{itemize}
\end{frame}

\end{document}

小心此解决方案:

  • 需要vspace{}根据所用模板的属性进行调整
  • 如果脚注太长,可能会产生重叠

答案4

代码不是很好,但可以工作。它在每个部分页面之前隐藏帧编号,然后在其后再次插入。

\documentclass[]{beamer}
\usetheme[progressbar=frametitle, numbering=counter]{metropolis}
\setbeamertemplate{footline}{}

\setbeamertemplate{navigation symbols}{%
    \ifnum\insertframenumber>0
         \Tiny\insertframenumber%
    \fi%
}

\AtBeginSection[]
{
    \setbeamertemplate{navigation symbols}{}
    \frame[plain,c,noframenumbering]{\sectionpage}
    \setbeamertemplate{navigation symbols}{\Tiny\insertframenumber}
}

\begin{document}

\begin{frame}[noframenumbering]
\titlepage
\end{frame}

\begin{frame}
Some text\footnotemark
\footnotetext[1]{some footnote text here, which is not at the same level as slide number}
\end{frame}

\section{New Section}
\begin{frame}
\begin{itemize}
\item this is item zero 
\item and item one ...
\item finally number three ..
\end{itemize}
\end{frame}

\end{document}

相关内容