Skip to content

Commit 6b19a7e

Browse files
authored
Merge pull request #2 from Gegell/master
Fixed wrong navbar entries, document sectioning for readers and "thank you" big image clipping.
2 parents d0c6f9d + de61ae2 commit 6b19a7e

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

tex/beamerthemeStuttgart.sty

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -242,21 +242,39 @@
242242
}
243243
\end{textblock}
244244
}
245+
246+
% ------------------------------------------------------------------------------
247+
% Fix for hiding pages from the nav bar
248+
% (from LaTeX Stack Exchange: https://tex.stackexchange.com/a/45038,
249+
% by diabonas: https://tex.stackexchange.com/users/3323/diabonas,
250+
% licensed under CC BY-SA: https://creativecommons.org/licenses/by-sa/3.0/)
251+
\let\beamer@writeslidentry@miniframeson=\beamer@writeslidentry
252+
\def\beamer@writeslidentry@miniframesoff{%
253+
\expandafter\beamer@ifempty\expandafter{\beamer@framestartpage}{}% does not happen normally
254+
{%else
255+
% removed \addtocontents commands
256+
\clearpage\beamer@notesactions%
257+
}
258+
}
259+
\newcommand*{\miniframeson}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframeson}
260+
\newcommand*{\miniframesoff}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframesoff}
261+
245262
\newcommand*{\titleframe}{%
246-
\section*{}
263+
\miniframesoff
247264
{%
248265
\setbeamertemplate{headline}{}
249266
\setbeamertemplate{footline}{}
250267
\begin{frame}[noframenumbering]
251268
\titlepage
252269
\end{frame}
253270
}%
271+
\miniframeson
254272
}
255273

256274
% ------------------------------------------------------------------------------
257275
% section page
258276
\newcommand*{\sectionframe}[1]{
259-
\section*{}
277+
\miniframesoff
260278
{%
261279
\setbeamertemplate{headline}{}
262280
\setbeamertemplate{footline}{}
@@ -274,6 +292,7 @@
274292
\end{textblock}
275293
\end{frame}
276294
}%
295+
\miniframeson
277296
}
278297

279298
% ------------------------------------------------------------------------------
@@ -499,7 +518,11 @@
499518
Thank you for your attention!\usebeamercolor[fg]{normal text}
500519
\end{textblock}
501520
\begin{textblock}{128}(45,15)
502-
\tikz\draw[white,fill=white] (0,0) circle (38mm);
521+
\begin{tikzpicture}
522+
\draw[white,fill=white] (0,0) circle (38mm);
523+
\clip (0,0) circle (37.5mm);
524+
\node[inner sep=0pt, outer sep=0pt] at (0,0) {\includegraphics[scale=\stuttgart@thanksPageBigGraphicsScale]{\stuttgart@thanksPageBigGraphics}};
525+
\end{tikzpicture}
503526
\end{textblock}
504527
\begin{textblock}{128}(5,25)
505528
\tikz\draw[white,fill=white] (0,0) circle (16mm);
@@ -510,12 +533,6 @@
510533
\begin{textblock}{128}(15,50)
511534
\tikz\draw[white,fill=white] (0,0) circle (20mm);
512535
\end{textblock}
513-
\begin{textblock}{76}(45,15)
514-
\parbox[c][76mm]{76mm}{%
515-
\centering\includegraphics[scale=\stuttgart@thanksPageBigGraphicsScale]{%
516-
\stuttgart@thanksPageBigGraphics}%
517-
}
518-
\end{textblock}
519536
\begin{textblock}{32}(5,25)
520537
\parbox[c][32mm]{32mm}{%
521538
\centering\includegraphics[width=14mm]{\stuttgart@thanksPageInstituteLogo}%
@@ -533,14 +550,15 @@
533550
\end{textblock}
534551
}
535552
\newcommand*{\thanksframe}{%
536-
\section*{}%
553+
\miniframesoff
537554
{%
538555
\setbeamertemplate{headline}{}
539556
\setbeamertemplate{footline}{}
540557
\begin{frame}[noframenumbering]
541558
\usebeamertemplate*{thanks page}
542559
\end{frame}
543560
}%
561+
\miniframeson
544562
}
545563

546564
% ------------------------------------------------------------------------------

tex/slides.tex

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44

5-
\section*{}
65

76
\begin{frame}{Overview}
87
\tableofcontents
@@ -14,7 +13,6 @@ \section*{}
1413
\sectionframe{Here Comes Section 1}
1514

1615
\section{Section 1}
17-
\subsection*{}
1816

1917
\begin{frame}{First Frame}
2018
This is the first frame.
@@ -46,7 +44,6 @@ \subsection*{}
4644
\sectionframe{This Is Section 2}
4745

4846
\section{Section 2}
49-
\subsection*{}
5047

5148
% text along an arrow
5249
% (from LaTeX Stack Exchange: https://tex.stackexchange.com/a/154769,
@@ -95,8 +92,6 @@ \subsection*{}
9592
\begin{frame}{Another Frame}
9693
At the top, you can see the progress throughout the presentation.
9794
Each circle (round shapes -- yay!) stands for one frame.
98-
For this to work, you have to add \texttt{subsection}s in your presentation
99-
(if only with an empty text).
10095

10196
Also, there is a progress bar beneath.
10297
\end{frame}
@@ -106,7 +101,6 @@ \subsection*{}
106101
\sectionframe{Now the Last Section}
107102

108103
\section{Section 3}
109-
\subsection*{}
110104

111105
\begin{frame}{Second to Last Frame}
112106
Now we're in Section 3.

0 commit comments

Comments
 (0)