我正在尝试基于 beamer 默认主题制作一个简单的模板。我对标题有以下目标:
- 只对部分内容使用进度项目符号
- 文本:章节、框架标题
- 优化空间(例如删除任何多余的行跳过)
我无法定义\setbeamertemplate{headline}
符合这些条件的标题模板。我使用的是 emacs+auctex+texlive2019。这是我的代码:
\documentclass{beamer}
\usepackage[french,english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\usepackage{graphicx}
\graphicspath{
{"../template_gipsa/images/"}
{"../template_gipsa/images/}
{"./images/"}
{"./images/}
}
\usepackage[backend=biber,style=numeric-comp,sorting=none]{biblatex}
\addbibresource{biblio.bib}
\AtEveryCitekey{\clearfield{url} \clearfield{note}}
\setbeamerfont{footnote}{size=\tiny}
%%% template
\usetheme{default}
\usecolortheme{default}
\usefonttheme{default}
\beamertemplatenavigationsymbolsempty
\setbeamerfont{frametitle}{family=\rm}
\setbeamerfont{title}{family=\rm}
\useoutertheme{miniframes}
\AtBeginSection[]{\section{}}
\setbeamertemplate{frametitle}{
\hbox{
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=0pt]{}
\hspace*{0.em}\vspace{12pt}
\insertframetitle
\end{beamercolorbox}
}
}
\defbeamertemplate{title page}{customized}[1][]
{
\usebeamerfont{title}\inserttitle\par
\bigskip
\usebeamerfont{author}\insertauthor\par
\usebeamerfont{date}\insertdate\par
\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic
}
\AtBeginSection{
\begin{frame}
\frametitle{Sommaire}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}
}
\AtBeginSubsection[]{
\begin{frame}{Sommaire}
\small \tableofcontents[currentsubsection]
\end{frame}
}
\setbeamertemplate{footline}
{
\leavevmode
\hbox{
\begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}
\end{beamercolorbox}
\begin{beamercolorbox}[wd=.43\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}
\end{beamercolorbox}
\begin{beamercolorbox}[wd=.15\paperwidth,ht=2.25ex,dp=1ex,right]{title in head/foot}
\insertframenumber{} / \inserttotalframenumber\hspace*{1ex}
\end{beamercolorbox}}
\vskip0pt
}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Section}
\subsection{subsection}
\begin{frame}
\frametitle{Title}
blaa
\end{frame}