added subsection page
This commit is contained in:
parent
4f768ab0d8
commit
f65a076208
@ -37,7 +37,7 @@
|
||||
% inner colors:
|
||||
|
||||
\setbeamercolor{normal text}{fg=black, bg=}
|
||||
\setbeamercolor{math text}{parent={normal text}}
|
||||
%\setbeamercolor{math text}{parent={normal text}} % this kill coloring of \url{}
|
||||
|
||||
\setbeamercolor{structure}{fg=blue}
|
||||
\setbeamercolor{alerted text}{fg=red}
|
||||
@ -87,6 +87,10 @@
|
||||
\setbeamercolor{section name separator}{parent={section name}}
|
||||
\setbeamercolor{section title}{parent={titlelike}}
|
||||
|
||||
\setbeamercolor{subsection name}{parent={titlelike}}
|
||||
\setbeamercolor{subsection name separator}{parent={section name}}
|
||||
\setbeamercolor{subsection title}{parent={titlelike}}
|
||||
|
||||
% outer colors:
|
||||
|
||||
\setbeamercolor{background}{bg=}
|
||||
@ -97,7 +101,7 @@
|
||||
|
||||
% hyper ref colors:
|
||||
|
||||
\hypersetup{colorlinks=true, allcolors=black, urlcolor=blue}
|
||||
\hypersetup{colorlinks=true, allcolors=blue}
|
||||
|
||||
\mode
|
||||
<all>
|
||||
|
@ -33,7 +33,7 @@
|
||||
% inner colors:
|
||||
|
||||
\setbeamercolor{normal text}{fg=utblack, bg=}
|
||||
\setbeamercolor{math text}{parent={normal text}}
|
||||
%\setbeamercolor{math text}{parent={normal text}} % this kills coloring of \url{}
|
||||
|
||||
\setbeamercolor{structure}{fg=utblue}
|
||||
\setbeamercolor{alerted text}{fg=utred}
|
||||
@ -79,6 +79,10 @@
|
||||
\setbeamercolor{section name separator}{fg=utgold}
|
||||
\setbeamercolor{section title}{parent={titlelike}}
|
||||
|
||||
\setbeamercolor{subsection name}{parent={titlelike}}
|
||||
\setbeamercolor{subsection name separator}{fg=utgold}
|
||||
\setbeamercolor{subsection title}{parent={titlelike}}
|
||||
|
||||
% outer colors:
|
||||
|
||||
\setbeamercolor{background}{bg=}
|
||||
@ -89,7 +93,7 @@
|
||||
|
||||
% hyper ref colors:
|
||||
|
||||
\hypersetup{colorlinks=true, allcolors=utblack, urlcolor=blue}
|
||||
\hypersetup{colorlinks=true, allcolors=utblue}
|
||||
|
||||
\mode
|
||||
<all>
|
||||
|
@ -116,7 +116,7 @@
|
||||
\usebeamertemplate{footline line}%
|
||||
\begin{beamercolorbox}[wd=1\paperwidth,dp=1.2ex,ht=2.8ex,sep=0pt,colsep=0pt,colsep*=0pt,%
|
||||
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{footline}
|
||||
\hypersetup{allcolors=.}%
|
||||
\hypersetup{linkcolor=}%
|
||||
\newif\if@tempsep%
|
||||
\@tempsepfalse%
|
||||
% author:
|
||||
@ -426,8 +426,9 @@
|
||||
|
||||
%%%%% section page: left
|
||||
|
||||
\defbeamertemplate{section page}{left}%
|
||||
\defbeamertemplate{section page}{left}[1][0.3\textheight]
|
||||
{
|
||||
\vspace{#1}%
|
||||
\begin{columns}[t,onlytextwidth]
|
||||
\begin{column}{0.1\textwidth}
|
||||
\usebeamerfont{section name}%
|
||||
@ -437,21 +438,62 @@
|
||||
\end{column}
|
||||
\begin{column}{0.9\textwidth}
|
||||
\usebeamerfont{section title}%
|
||||
{\usebeamercolor[fg]{section title}\hypersetup{allcolors=.}\insertsection}%
|
||||
{\usebeamercolor[fg]{section title}\hypersetup{linkcolor=}\insertsection}%
|
||||
\end{column}
|
||||
\end{columns}
|
||||
}
|
||||
|
||||
\setbeamertemplate{section page}[left]
|
||||
\setbeamertemplate{section page}[left][0.3\textheight]
|
||||
|
||||
|
||||
%%%%% start each section with a special slide:
|
||||
|
||||
\AtBeginSection{
|
||||
\frame[plain,c]{\sectionpage}
|
||||
\frame[plain]{\sectionpage}
|
||||
}
|
||||
|
||||
|
||||
%%%%% subsection page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
% subsection page separator: space
|
||||
|
||||
\defbeamertemplate{subsection name separator}{space}{}
|
||||
|
||||
% subsection page separator: text
|
||||
|
||||
\defbeamertemplate{subsection name separator}{text}[1][1pt]%
|
||||
{
|
||||
{\usebeamercolor[fg]{subsection name separator}
|
||||
\rule[-0.5ex]{#1}{2.4ex}}
|
||||
}
|
||||
|
||||
\setbeamertemplate{subsection name separator}[text][1pt]
|
||||
|
||||
|
||||
%%%%% subsection page: left
|
||||
|
||||
\defbeamertemplate{subsection page}{left}[1][0.3\textheight]%
|
||||
{
|
||||
\usebeamertemplate{section page}
|
||||
\vspace{2ex}
|
||||
\begin{columns}[t,onlytextwidth]
|
||||
\begin{column}{0.1\textwidth}
|
||||
\raggedleft%
|
||||
\usebeamerfont{subsection name}%
|
||||
{\usebeamercolor[fg]{subsection name}%
|
||||
\makebox[0.5\linewidth][r]{\insertsubsectionnumber}%
|
||||
\makebox[0.5\linewidth][c]{\usebeamertemplate{subsection name separator}}}%
|
||||
\end{column}
|
||||
\begin{column}{0.9\textwidth}
|
||||
\usebeamerfont{subsection title}%
|
||||
{\usebeamercolor[fg]{subsection title}\hypersetup{linkcolor=}\insertsubsection}%
|
||||
\end{column}
|
||||
\end{columns}
|
||||
}
|
||||
|
||||
\setbeamertemplate{subsection page}[left][0.3\textheight]
|
||||
|
||||
|
||||
%%%%% fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\renewcommand{\familydefault}{\sfdefault}
|
||||
@ -466,6 +508,8 @@
|
||||
|
||||
\setbeamerfont*{section title}{size=\huge}
|
||||
\setbeamerfont*{section name}{size=\huge}
|
||||
\setbeamerfont*{subsection title}{size=\Large}
|
||||
\setbeamerfont*{subsection name}{size=\Large}
|
||||
|
||||
\setbeamerfont{footline}{size=\footnotesize}
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
\DeclareOptionBeamer{logo}{\PassOptionsToPackage{logo}{beamerthemelines}}
|
||||
\DeclareOptionBeamer{hidelogo}{\PassOptionsToPackage{hidelogo}{beamerthemelines}}
|
||||
|
||||
\ExecuteOptionsBeamer{author}
|
||||
\ExecuteOptionsBeamer{page}
|
||||
\ExecuteOptionsBeamer{logo}
|
||||
|
||||
@ -52,6 +53,7 @@
|
||||
\setbeamertemplate{title page institute and}[line] % default, space, comma, line
|
||||
|
||||
\setbeamertemplate{section name separator}[text][2pt] % space, text
|
||||
\setbeamertemplate{subsection name separator}[text][2pt] % space, text
|
||||
|
||||
|
||||
\usecolortheme{ut}
|
||||
|
@ -2,7 +2,7 @@
|
||||
\usetheme[author,date,title,page,hidelogo]{lines}
|
||||
\usecolortheme{aptero}
|
||||
|
||||
\title[Beamer lines]{Lines}
|
||||
\title[Lines beamer theme]{Lines}
|
||||
\subtitle{a line-based theme for beamer}
|
||||
\author[Benda]{Jan Benda}
|
||||
\institute[T\"ubingen]{Neuroethology, University of T\"ubingen}
|
||||
@ -360,18 +360,22 @@
|
||||
\end{frame}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\section{Section pages}
|
||||
\section{Sectioning pages}
|
||||
|
||||
\subsection{Section page}
|
||||
|
||||
\frame[plain]{\subsectionpage}
|
||||
|
||||
\begin{frame}[fragile]{Section page}
|
||||
Sectioning commands between the frames, like\\
|
||||
Section commands between the frames, like\\
|
||||
\verb!\section{A new section}!\\
|
||||
automaticallly create a special frame with the section number and title.
|
||||
automaticallly create a special frame with section number and title.
|
||||
|
||||
\begin{block}{No automatic section pages}
|
||||
\verb!\AtBeginSection{}!
|
||||
\end{block}
|
||||
\begin{block}{Manual insertion of section page}
|
||||
\verb!\frame[plain,c]{\sectionpage}!
|
||||
\begin{block}{Manual insertion of a section page}
|
||||
\verb!\frame[plain]{\sectionpage}!
|
||||
\end{block}
|
||||
\begin{block}{Colors/Fonts}
|
||||
\verb!\setbeamercolor{section name}{parent={titlelike}}!
|
||||
@ -380,10 +384,23 @@
|
||||
\end{block}
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}[fragile,c]{Subsection pages}
|
||||
\begin{alertblock}{Not supported yet!}
|
||||
Coming soon ...
|
||||
\end{alertblock}
|
||||
\subsection{Subsection page}
|
||||
|
||||
\frame[plain]{\subsectionpage}
|
||||
|
||||
\begin{frame}[fragile]{Subsection pages}
|
||||
After a subsection command\\
|
||||
\verb!\subsection{A new subsection}!\\
|
||||
you may want to insert a subsection page displaying the current
|
||||
section and subsection numbers and titles:
|
||||
\begin{block}{Subsection page}
|
||||
\verb!\frame[plain]{\subsectionpage}!
|
||||
\end{block}
|
||||
\begin{block}{Colors/Fonts}
|
||||
\verb!\setbeamercolor{subsection name}{parent={titlelike}}!
|
||||
\verb!\setbeamercolor{subsection name separator}{parent={section name}}!
|
||||
\verb!\setbeamercolor{subsection title}{parent={titlelike}}!
|
||||
\end{block}
|
||||
\end{frame}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
@ -1,7 +1,7 @@
|
||||
\documentclass[aspectratio=169,t]{beamer}
|
||||
\usetheme[author,date,title]{ut}
|
||||
|
||||
\title{Beamer theme for the University of T\"ubingen}
|
||||
\title{A beamer theme for the University of T\"ubingen}
|
||||
\author[Benda]{Jan Benda}
|
||||
\institute[T\"ubingen]{Neuroethology, University of T\"ubingen}
|
||||
\date[2021]{March 2021}
|
||||
@ -22,7 +22,7 @@
|
||||
\verb!\documentclass[aspectratio=169,t]{beamer}!\\
|
||||
\verb!\usetheme[author,date,title,page]{ut}!
|
||||
\end{block}
|
||||
Options select content of footline (defaults to \verb![author,page]!):
|
||||
Options select content of footline (defaults to \verb![author,page,logo]!):
|
||||
\begin{itemize}
|
||||
\item \verb!author! / \verb!hideauthor!
|
||||
\item \verb!institute! / \verb!hideinstitute!
|
||||
@ -177,18 +177,47 @@
|
||||
\end{frame}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\section{Section pages}
|
||||
\section{Sectioning pages}
|
||||
|
||||
\begin{frame}[fragile,c]{Section pages}
|
||||
\begin{block}{Section page}
|
||||
Sectioning commands between the frames, like\\
|
||||
\verb!\section{A new section}!\\
|
||||
automaticallly create a special frame with the section number and title.
|
||||
\subsection{Section page}
|
||||
|
||||
\frame[plain]{\subsectionpage}
|
||||
|
||||
\begin{frame}[fragile]{Section page}
|
||||
Section commands between the frames, like\\
|
||||
\verb!\section{A new section}!\\
|
||||
automaticallly create a special frame with section number and title.
|
||||
|
||||
\begin{block}{No automatic section pages}
|
||||
\verb!\AtBeginSection{}!
|
||||
\end{block}
|
||||
\begin{block}{Manual insertion of a section page}
|
||||
\verb!\frame[plain]{\sectionpage}!
|
||||
\end{block}
|
||||
\begin{block}{Colors/Fonts}
|
||||
\verb!\setbeamercolor{section name}{parent={titlelike}}!
|
||||
\verb!\setbeamercolor{section name separator}{parent={section name}}!
|
||||
\verb!\setbeamercolor{section title}{parent={titlelike}}!
|
||||
\end{block}
|
||||
\end{frame}
|
||||
|
||||
\subsection{Subsection page}
|
||||
|
||||
\frame[plain]{\subsectionpage}
|
||||
|
||||
\begin{frame}[fragile]{Subsection pages}
|
||||
After a subsection command\\
|
||||
\verb!\subsection{A new subsection}!\\
|
||||
you may want to insert a subsection page displaying the current
|
||||
section and subsection numbers and titles:
|
||||
\begin{block}{Subsection page}
|
||||
\verb!\frame[plain]{\subsectionpage}!
|
||||
\end{block}
|
||||
\begin{block}{Colors/Fonts}
|
||||
\verb!\setbeamercolor{subsection name}{parent={titlelike}}!
|
||||
\verb!\setbeamercolor{subsection name separator}{parent={section name}}!
|
||||
\verb!\setbeamercolor{subsection title}{parent={titlelike}}!
|
||||
\end{block}
|
||||
\vfill
|
||||
\begin{alertblock}{Subsection pages}
|
||||
Not supported yet! Coming soon ...
|
||||
\end{alertblock}
|
||||
\end{frame}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
Loading…
Reference in New Issue
Block a user