diff options
Diffstat (limited to 'default.latex')
-rw-r--r-- | default.latex | 72 |
1 files changed, 35 insertions, 37 deletions
diff --git a/default.latex b/default.latex index 3109337..4d1eeb5 100644 --- a/default.latex +++ b/default.latex | |||
@@ -20,6 +20,41 @@ $endif$ | |||
20 | $for(beameroption)$ | 20 | $for(beameroption)$ |
21 | \setbeameroption{$beameroption$} | 21 | \setbeameroption{$beameroption$} |
22 | $endfor$ | 22 | $endfor$ |
23 | % Prevent slide breaks in the middle of a paragraph: | ||
24 | \widowpenalties 1 10000 | ||
25 | \raggedbottom | ||
26 | $if(section-titles)$ | ||
27 | \setbeamertemplate{part page}{ | ||
28 | \centering | ||
29 | \begin{beamercolorbox}[sep=16pt,center]{part title} | ||
30 | \usebeamerfont{part title}\insertpart\par | ||
31 | \end{beamercolorbox} | ||
32 | } | ||
33 | \setbeamertemplate{section page}{ | ||
34 | \centering | ||
35 | \begin{beamercolorbox}[sep=12pt,center]{part title} | ||
36 | \usebeamerfont{section title}\insertsection\par | ||
37 | \end{beamercolorbox} | ||
38 | } | ||
39 | \setbeamertemplate{subsection page}{ | ||
40 | \centering | ||
41 | \begin{beamercolorbox}[sep=8pt,center]{part title} | ||
42 | \usebeamerfont{subsection title}\insertsubsection\par | ||
43 | \end{beamercolorbox} | ||
44 | } | ||
45 | \AtBeginPart{ | ||
46 | \frame{\partpage} | ||
47 | } | ||
48 | \AtBeginSection{ | ||
49 | \ifbibliography | ||
50 | \else | ||
51 | \frame{\sectionpage} | ||
52 | \fi | ||
53 | } | ||
54 | \AtBeginSubsection{ | ||
55 | \frame{\subsectionpage} | ||
56 | } | ||
57 | $endif$ | ||
23 | $endif$ | 58 | $endif$ |
24 | $if(beamerarticle)$ | 59 | $if(beamerarticle)$ |
25 | \usepackage{beamerarticle} % needs to be loaded first | 60 | \usepackage{beamerarticle} % needs to be loaded first |
@@ -198,43 +233,6 @@ $if(graphics)$ | |||
198 | % using explicit options in \includegraphics[width, height, ...]{} | 233 | % using explicit options in \includegraphics[width, height, ...]{} |
199 | \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} | 234 | \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} |
200 | $endif$ | 235 | $endif$ |
201 | $if(beamer)$ | ||
202 | % Prevent slide breaks in the middle of a paragraph: | ||
203 | \widowpenalties 1 10000 | ||
204 | \raggedbottom | ||
205 | $if(section-titles)$ | ||
206 | \setbeamertemplate{part page}{ | ||
207 | \centering | ||
208 | \begin{beamercolorbox}[sep=16pt,center]{part title} | ||
209 | \usebeamerfont{part title}\insertpart\par | ||
210 | \end{beamercolorbox} | ||
211 | } | ||
212 | \setbeamertemplate{section page}{ | ||
213 | \centering | ||
214 | \begin{beamercolorbox}[sep=12pt,center]{part title} | ||
215 | \usebeamerfont{section title}\insertsection\par | ||
216 | \end{beamercolorbox} | ||
217 | } | ||
218 | \setbeamertemplate{subsection page}{ | ||
219 | \centering | ||
220 | \begin{beamercolorbox}[sep=8pt,center]{part title} | ||
221 | \usebeamerfont{subsection title}\insertsubsection\par | ||
222 | \end{beamercolorbox} | ||
223 | } | ||
224 | \AtBeginPart{ | ||
225 | \frame{\partpage} | ||
226 | } | ||
227 | \AtBeginSection{ | ||
228 | \ifbibliography | ||
229 | \else | ||
230 | \frame{\sectionpage} | ||
231 | \fi | ||
232 | } | ||
233 | \AtBeginSubsection{ | ||
234 | \frame{\subsectionpage} | ||
235 | } | ||
236 | $endif$ | ||
237 | $endif$ | ||
238 | $if(links-as-notes)$ | 236 | $if(links-as-notes)$ |
239 | % Make links footnotes instead of hotlinks: | 237 | % Make links footnotes instead of hotlinks: |
240 | \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} | 238 | \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} |