是否有可能修改 \documentclass{beamer} 中的脚注具体的框架,以便颜色仍然存在,但里面没有文本?所有其他框架都应在脚注中包含文本!
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage[version=3]{mhchem}
\usepackage{chemfig}
\usepackage{amsmath}
\usepackage{amstext}
\usepackage{amssymb}
\usepackage{chemmacros}
\usepackage{hyperref}
\usepackage{array}
\usepackage[absolute,overlay]{textpos}
\useinnertheme{default}
\useoutertheme{infolines}
\useoutertheme[right]{sidebar}
\usecolortheme[RGB={200,70,5}]{structure}
\usecolortheme{sidebartab}
\usecolortheme{spruce}
\usecolortheme{dolphin}
\setbeamercolor{background canvas}{bg=gray!5}
\setbeamercolor{alerted text}{fg=red}
\beamertemplatenavigationsymbolsempty
\title{Title yeah}
\subtitle{Le Subtitle}
\author{Autor}
\date{\today}
\begin{document}
\setbeamertemplate{sidebar right}{}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{Parts}
\tableofcontents
\end{frame}
\end{document}
谢谢!
答案1
您可以定义一个加载空的脚注模板的新框架环境:
\newenvironment{myframe}
{
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\end{beamercolorbox}}%
\vskip0pt%
}
\begin{frame}
}
{
\end{frame}
}
这是标准信息行模板,清除了所有文本并加载到自定义框架内。您可以在文件中找到原始模板texmf-dist/tex/latex/beamer/themes/outer/beamerouterthemesinfolines.sty
。
你的 MWE 将会变成这样:
\documentclass{beamer}
\useinnertheme{default}
\useoutertheme{infolines}
\useoutertheme[right]{sidebar}
\usecolortheme[RGB={200,70,5}]{structure}
\usecolortheme{sidebartab}
\usecolortheme{spruce}
\usecolortheme{dolphin}
\setbeamercolor{background canvas}{bg=gray!5}
\setbeamercolor{alerted text}{fg=red}
\beamertemplatenavigationsymbolsempty
\title{Title yeah}
\subtitle{Le Subtitle}
\author{Autor}
\date{\today}
\newenvironment{myframe}{
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\end{beamercolorbox}}%
\vskip0pt%
}
\begin{frame}
}
{
\end{frame}
}
\begin{document}
\setbeamertemplate{sidebar right}{}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{Parts}
\tableofcontents
\end{frame}
\begin{myframe}
This frame has an empty footline
\end{myframe}
\end{document}
当然,如果您愿意,您可以保留帧编号,只是不要将其从原始模板中删除。
“空”脚注线将仅在使用您的自定义环境调用的框架中加载。