Skip to content

Commit 305304b

Browse files
committed
[Advanced] Add a marker on advanced slides.
It can be difficult to tell the difference between the advanced and essentials slides based on the colour. Here, we add a little "Adv" in the top right corner.
1 parent 2b52aae commit 305304b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

talk/C++Course.tex

+2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
% advanced slides have a different structure color
2929
\specialcomment{advanced}{
3030
\setbeamercolor{structure}{fg=beamer@blendedblue!40!violet}
31+
\isAdvancedSlidetrue
3132
}{
3233
\setbeamercolor{structure}{fg=beamer@blendedblue}
34+
\isAdvancedSlidefalse
3335
}
3436
\fi
3537

talk/setup.tex

+7-1
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,15 @@
188188
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
189189
% frametitle with C++ version %
190190
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
191+
% Switch designs for advanced and essentials course:
192+
\newif\ifisAdvancedSlide\isAdvancedSlidefalse
191193
% Use as \frametitlecpp[14]{Title}
192194
\newcommand\frametitlecpp[2][98]{
193-
\frametitle{#2 \hfill \cpp#1}
195+
\ifisAdvancedSlide
196+
\frametitle{#2 \hfill \cpp#1 \small Adv}
197+
\else
198+
\frametitle{#2 \hfill \cpp#1}
199+
\fi
194200
}
195201

196202
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0 commit comments

Comments
 (0)