Moved some beamer code in default.latex template.
This change allows beamer themes to change the template and font (as Metropolis does). Closes #4450.
This commit is contained in:
parent
e592904087
commit
748aa920f6
1 changed files with 35 additions and 37 deletions
|
@ -20,6 +20,41 @@ $endif$
|
||||||
$for(beameroption)$
|
$for(beameroption)$
|
||||||
\setbeameroption{$beameroption$}
|
\setbeameroption{$beameroption$}
|
||||||
$endfor$
|
$endfor$
|
||||||
|
% Prevent slide breaks in the middle of a paragraph:
|
||||||
|
\widowpenalties 1 10000
|
||||||
|
\raggedbottom
|
||||||
|
$if(section-titles)$
|
||||||
|
\setbeamertemplate{part page}{
|
||||||
|
\centering
|
||||||
|
\begin{beamercolorbox}[sep=16pt,center]{part title}
|
||||||
|
\usebeamerfont{part title}\insertpart\par
|
||||||
|
\end{beamercolorbox}
|
||||||
|
}
|
||||||
|
\setbeamertemplate{section page}{
|
||||||
|
\centering
|
||||||
|
\begin{beamercolorbox}[sep=12pt,center]{part title}
|
||||||
|
\usebeamerfont{section title}\insertsection\par
|
||||||
|
\end{beamercolorbox}
|
||||||
|
}
|
||||||
|
\setbeamertemplate{subsection page}{
|
||||||
|
\centering
|
||||||
|
\begin{beamercolorbox}[sep=8pt,center]{part title}
|
||||||
|
\usebeamerfont{subsection title}\insertsubsection\par
|
||||||
|
\end{beamercolorbox}
|
||||||
|
}
|
||||||
|
\AtBeginPart{
|
||||||
|
\frame{\partpage}
|
||||||
|
}
|
||||||
|
\AtBeginSection{
|
||||||
|
\ifbibliography
|
||||||
|
\else
|
||||||
|
\frame{\sectionpage}
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
\AtBeginSubsection{
|
||||||
|
\frame{\subsectionpage}
|
||||||
|
}
|
||||||
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
$if(beamerarticle)$
|
$if(beamerarticle)$
|
||||||
\usepackage{beamerarticle} % needs to be loaded first
|
\usepackage{beamerarticle} % needs to be loaded first
|
||||||
|
@ -198,43 +233,6 @@ $if(graphics)$
|
||||||
% using explicit options in \includegraphics[width, height, ...]{}
|
% using explicit options in \includegraphics[width, height, ...]{}
|
||||||
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
|
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
|
||||||
$endif$
|
$endif$
|
||||||
$if(beamer)$
|
|
||||||
% Prevent slide breaks in the middle of a paragraph:
|
|
||||||
\widowpenalties 1 10000
|
|
||||||
\raggedbottom
|
|
||||||
$if(section-titles)$
|
|
||||||
\setbeamertemplate{part page}{
|
|
||||||
\centering
|
|
||||||
\begin{beamercolorbox}[sep=16pt,center]{part title}
|
|
||||||
\usebeamerfont{part title}\insertpart\par
|
|
||||||
\end{beamercolorbox}
|
|
||||||
}
|
|
||||||
\setbeamertemplate{section page}{
|
|
||||||
\centering
|
|
||||||
\begin{beamercolorbox}[sep=12pt,center]{part title}
|
|
||||||
\usebeamerfont{section title}\insertsection\par
|
|
||||||
\end{beamercolorbox}
|
|
||||||
}
|
|
||||||
\setbeamertemplate{subsection page}{
|
|
||||||
\centering
|
|
||||||
\begin{beamercolorbox}[sep=8pt,center]{part title}
|
|
||||||
\usebeamerfont{subsection title}\insertsubsection\par
|
|
||||||
\end{beamercolorbox}
|
|
||||||
}
|
|
||||||
\AtBeginPart{
|
|
||||||
\frame{\partpage}
|
|
||||||
}
|
|
||||||
\AtBeginSection{
|
|
||||||
\ifbibliography
|
|
||||||
\else
|
|
||||||
\frame{\sectionpage}
|
|
||||||
\fi
|
|
||||||
}
|
|
||||||
\AtBeginSubsection{
|
|
||||||
\frame{\subsectionpage}
|
|
||||||
}
|
|
||||||
$endif$
|
|
||||||
$endif$
|
|
||||||
$if(links-as-notes)$
|
$if(links-as-notes)$
|
||||||
% Make links footnotes instead of hotlinks:
|
% Make links footnotes instead of hotlinks:
|
||||||
\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
|
\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue