ua-theme
我正在使用Nico Schlomer的修改版本。
https://github.com/nschloe/ua-beamer/blob/master/theme/beamerouterthemeUniversiteitAntwerpen.sty
使用该帖子:
我能够获得换行到多行的章节标题。
我想在章节标题下获得点:
这是一个简单的例子:
我有以下名为“beamerouterthemeUniversityCustom.sty”的文件
% Original by Nico Schlomer, Copyright 2009--2011
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
% Custom Navigation
\def\insertsectionnavigationhorizontal#1#2#3{%
\hbox to #1{{%
\def\slideentry##1##2##3##4##5##6{}%
#2\hskip.3cm%
\newdimen\tmp@parbox%
\setlength\tmp@parbox{#1}%
\addtolength\tmp@parbox{-.6cm}%
\parbox{\tmp@parbox}{\raggedleft%
\usebeamerfont{section in head/foot}\usebeamercolor[fg]{section in head/foot}%
\setbox\beamer@sectionbox=\hbox{}%
\ht\beamer@sectionbox=1.875ex%
\dp\beamer@sectionbox=0.75ex%
\hskip-1.875ex plus-1fill\dohead%
\box\beamer@sectionbox}\hfil\hskip.3cm%
#3}}}
\RequirePackage{ifthen}
% ----------------------------------------------------------------------------
% *** DEFINE LENGTHS <<<
% ----------------------------------------------------------------------------
\newlength{\margin}
\setlength{\margin}{0.8832cm}%
\newlength{\ulogoheight}
\setlength{\ulogoheight}{0.90066895151709692cm}%
\ifbeamer@dark\else%
\fi
\ifthenelse{ \boolean{beamer@dark} \OR \(\boolean{beamer@darktitle}\AND\c@framenumber=1\) }{%
\defbeamertemplate*{headline}{univ theme}%
{
% page number
\ifbeamer@framenumber%
\ifnum\c@framenumber=1\else
\pgftext[right,top,at=\pgfpoint{\paperwidth-\margin}{-0.04\paperheight}]{%
\usebeamerfont{frame number in head}%
\usebeamercolor[fg]{frame number in head}%
\insertframenumber{}%
\ifbeamer@totalframenumber%
/\inserttotalframenumber%
\fi
}%
\fi
\fi%
}%
}{
\newlength{\logotopmargin}%
\setlength{\logotopmargin}{0.300cm}%
\defbeamertemplate*{headline}{univ theme}%
{%
\vskip\logotopmargin%
\hskip\margin%
\ifthenelse{ \boolean{beamer@dark} \OR \(\boolean{beamer@darktitle}\AND\c@framenumber=1\) }
{%
\vskip5cm
}
{
\hspace*{-2.0cm}
\begin{minipage}[t][][b]{0.35\textwidth}
\centering
\text{Logo here later}
\end{minipage}% <---------------- Note the use of "%"
\begin{minipage}[t][][b]{0.5\textwidth}
\raggedright
\hbox{
\begin{beamercolorbox}[wd=\paperwidth,ht=8ex,dp=1.125ex]{structure.fg}%
\insertsectionnavigationhorizontal{0.7\paperwidth}{}{}
\vspace*{0mm}
\end{beamercolorbox}%
}
\end{minipage}
}
}
}
我还有一个名为的文件beamerthemeUniversityCustom.sty
:
% Original from 2009--2011 by Nico Schlomer
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\newif\ifbeamer@dark
\beamer@darkfalse
\DeclareOptionBeamer{dark}{\beamer@darktrue}
\newif\ifbeamer@darktitle
\beamer@darktitlefalse
\DeclareOptionBeamer{darktitle}{\beamer@darktitletrue}
\mode<presentation>
\useoutertheme{UniversityCustom}
我的主要文件是presentation.tex
:
\documentclass{beamer}
\mode<presentation>
\setbeamertemplate{navigation symbols}{}
\usefonttheme{serif}
\usetheme{UniversityCustom}
\useinnertheme{rectangles}
\setbeamertemplate{items}[circle]
\setbeamertemplate{blocks}[rounded=false, shadow=false]
\renewcommand{\contentsname}{Outline}
\AtBeginSection[]
{
\begin{frame}<beamer>{Outline}
\normalsize{\tableofcontents[currentsection,currentsubsection]}
\end{frame}
}
\makeatletter
\beamer@compressfalse
\makeatother
\title{Title}
\subtitle{Subtitle}
\author{My Name}
\institute{My University}
\date{Date}
\begin{document}
\begin{frame}[t]
\maketitle
\end{frame}
\begin{frame}[t]
\frametitle{Outline}
\tableofcontents
\end{frame}
\section{Section 1}
\begin{frame}[t]
\frametitle{Section 1}
Text goes here
\end{frame}
\section{Section 2}
\begin{frame}[t]
\frametitle{Section 2}
Text goes here
\end{frame}
\section{Section 3}
\begin{frame}[t]
\frametitle{Section 3}
Text goes here
\end{frame}
\section{Section 4}
\begin{frame}[t]
\frametitle{Section 4}
Text goes here
\end{frame}
\section{Section 5}
\begin{frame}[t]
\frametitle{Section 5}
Text goes here
\end{frame}
\section{Section 6}
\begin{frame}[t]
\frametitle{Section 6}
Text goes here
\end{frame}
\section{Section 7}
\begin{frame}[t]
\frametitle{Section 7}
Text goes here
\end{frame}
\section{Section 8}
\begin{frame}[t]
\frametitle{Section 8}
Text goes here
\end{frame}
\section{Section 9}
\begin{frame}[t]
\frametitle{Section 9}
Text goes here
\end{frame}
\end{document}
我认为我需要进行更改,\insertsectionnavigationhorizontal
以便让点出现在章节标题下,但我无法弄清楚。有人可以帮忙吗?
感谢您看我的帖子。