![Beamer 部分标题幻灯片](https://linux22.com/image/460581/Beamer%20%E9%83%A8%E5%88%86%E6%A0%87%E9%A2%98%E5%B9%BB%E7%81%AF%E7%89%87.png)
我希望每个部分之前都有一个部分标题幻灯片(但不是完整的目录),但我不希望幻灯片在标题上方显示默认的“第 1 部分”,就像以下 MWE 一样:
\documentclass[slidestop,compress,mathserif,12pt,xcolor=dvipsnames,xcolor=table{beamer}
\setbeamertemplate{caption}{\insertcaption}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{kerkis}
\usepackage{geometry}
\usepackage{adjustbox}
\usepackage{multimedia}
\usepackage{tikz}
\usepackage{subfigure}
\usepackage{ latexsym }
\usepackage{graphics}
\mode<presentation>
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
\oldmacro\hfill%
\insertframenumber\,}%/\,\inserttotalframenumber
\setbeamertemplate{footline}[frame number]
\usetheme{Ilmenau}
\useoutertheme[subsection=true]{smoothbars}
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}
\setbeamercolor{navigation symbols dimmed}{fg=red!80!black}
\setbeamercolor{navigation symbols}{fg=red!80!black}
\title{Title}
\author[Author\hspace{2.5cm}]{Author}
\institute{Institute}
\AtBeginSection[]
{
\begin{frame}
\sectionpage
\end{frame}
}
\usepackage{textpos}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{First Section}
\end{document}
答案1
您可以重新定义章节页面以删除Section xxx
章节标题上方的行。
关于您的代码的其他一些评论:
]
第一行缺失你可以
xcolor=dvipsnames,xcolor=table
将它们组合成xcolor={dvipsnames,table}
该
slidestop
选项已过时,请使用该t
选项该
mathserif
选项已过时,请\usefonttheme[onlymath]{serif}
改用您不需要加载
graphics
包,beamer 已经加载graphicx
\documentclass[
%slidestop,
t,
compress,
%mathserif,
12pt,xcolor={dvipsnames,table}]{beamer}
\usefonttheme[onlymath]{serif}
\setbeamertemplate{caption}{\insertcaption}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usetheme[bars]{tree} % Beamer theme v 2.2
\usepackage{kerkis}
%\usepackage{geometry}
\usepackage{adjustbox}
\usepackage{multimedia}
\usepackage{tikz}
\usepackage{subfigure}
\usepackage{ latexsym }
%\usepackage{graphics}
\mode<presentation>
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
\oldmacro\hfill%
\insertframenumber\,}%/\,\inserttotalframenumber
\setbeamertemplate{footline}[frame number]
\usetheme{Ilmenau}
\useoutertheme[subsection=true]{smoothbars}
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}
\setbeamercolor{navigation symbols dimmed}{fg=red!80!black}
\setbeamercolor{navigation symbols}{fg=red!80!black}
\title{Title}
\author[Author\hspace{2.5cm}]{Author}
\institute{Institute}
\makeatletter
\setbeamertemplate{section page}
{
\begingroup
\centering
% {\usebeamerfont{section name}\usebeamercolor[fg]{section name}\sectionname~\insertsectionnumber}
\vskip1em\par
\begin{beamercolorbox}[sep=12pt,center,rounded=true]{section title}
\usebeamerfont{section title}\insertsection\par
\end{beamercolorbox}
\endgroup
}
\makeatother
\AtBeginSection[]
{
\begin{frame}
\sectionpage
\end{frame}
}
\usepackage{textpos}
\begin{document}
\section{First Section}
\begin{frame}
content...
\end{frame}
\end{document}