Debian Codegraph @

texmf-dist/doc/latex/beamertheme-spectrum/beamertheme-spectrum-doc.tex

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %
3 % Documentation for the spectrum beamer/ltx-talk theme
4 % A clean beamer/ltx-talk theme with a big title graphic
5 % Maintained by samcarter
6 %
7 % Project repository and bug tracker:
8 % https://github.com/samcarter/beamertheme-spectrum
9 %
10 % Released under the LaTeX Project Public License v1.3c or later
11 % See https://www.latex-project.org/lppl.txt
12 %
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14 % !TeX program = txs:///arara
15 % arara: latexmk: {
16 % arara: --> engine: pdflatex,
17 % arara: --> options: [
18 % arara: --> '-shell-escape',
19 % arara: --> '-synctex=1',
20 % arara: --> '-interaction=nonstopmode',
21 % arara: --> ]
22 % arara: --> }
23 \documentclass{scrartcl}
24
25 \usepackage[
26 themecolor=samdblue
27 ]{\jobname-settings}
28
29 % packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
30 \usepackage{siunitx}
31 \usepackage{pgf-spectra}
32 \begingroup
33 \selectcolormodel{cmyk}
34 \pgfspectrashade(420,660){titleshade}
35 \endgroup
36
37 % meta %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
38 \title{The spectrum beamer theme}
39 \subtitle{A clean beamer theme with a big title graphic}
40 \author{%
41 \texorpdfstring{
42 \tikz{\fill[shading=titleshade,opacity=.75,shading angle=180] (0,0) rectangle (8cm,1cm);}\\[0.5cm]
43 \texttt{samcarter}\\
44 \url{https://github.com/samcarter/beamertheme-spectrum}\\
45 \url{https://ctan.org/pkg/beamertheme-spectrum}
46 }{samcarter}}
47 \date{Version v0.6 \textendash{} 2026/02/12}
48 \packagename{beamertheme-spectrum}
49
50 \begin{document}
51
52 \maketitle
53
54 \section{Introduction}
55 \label{intro}
56
57 The spectrum beamer theme is a clean beamer theme with a big title graphic.
58 It is based on my personal beamer theme, which I've been using for various talks in the \TeX\ ecosystem over the past few years\footnote{A collection of slides can be found at \url{https://github.com/samcarter\#tex-talks}}.
59
60 The theme is deliberately fairly clean and simple in order to not distract too much from the content.
61 The one vanity are the big graphics on the title, section and standout slides.
62 A catching image on the title slide will give the audience something to look at while setting up one's talk (we probably all know these awkward pauses while clipping on the microphone or figuring out the wireless presenter\ldots).
63 Additionally, a colourful image will also help people find the thumbnail of the slides or of a video recording.
64 By default, the spectrum theme will show the optical spectrum between \qty{420}{nm} and \qty{660}{nm} -- hence the name ``spectrum''.
65 The image was created using the fantastic \saminline|pgf-spectra| package.
66
67 \blurb
68
69 \section{Usage}
70
71 The usage is fairly simple -- just load the theme and, if desired, switch on section pages:
72 \begin{tcblisting}{
73 title={Basic example},
74 compilable listing sam
75 }
76 \documentclass[aspectratio=169]{beamer}
77
78 \usetheme{spectrum}
79
80 \AtBeginSection[]{
81 \begin{frame}
82 \usebeamertemplate{section page}
83 \end{frame}
84 }
85
86 \title{Some Very Interesting Title}
87 \author{Author Name}
88 \institute{Cool Conference}
89
90 \begin{document}
91
92 \maketitle
93
94 \section{Section Title}
95
96 \begin{frame}
97 \frametitle{Frame Title}
98 Normal frame
99 \end{frame}
100
101 \begin{frame}[standout]
102 Standout frame
103 \end{frame}
104
105 \end{document}
106 \end{tcblisting}
107
108 \section{Options}
109
110 The spectrum theme has a couple of options to adjust the design:
111 \begin{description}
112 \item[themecolor] controls the overall theme colour, e.g.\ decoration on title, section and standout slides, frame title, block titles, bullet points etc.
113 \item[titlegraphic] replaces the optical spectrum on title, section and standout slides with an image.
114 If \saminline|titlegraphic=none| is used, a solid coloured area in the theme colour is shown instead.
115 The title graphic can also be set via \saminline|\titlegraphic{...}| after loading the theme.
116 \item[sectiongraphic] replaces the spectrum on section/standout slides.
117 If \saminline|sectiongraphic=none| is used, a solid coloured area in the theme colour is shown instead.
118 The section graphic can also be set via \saminline|\sectiongraphic{...}| after loading the theme.
119 \item[titlecredit] allows the user to add an image credit to the lower right corner of the title page.
120 The title credit can also be set via \saminline|\titlecredit{...}| after loading the theme.
121 \end{description}
122
123 \begin{tcblisting}{
124 title={Theme options},
125 compilable listing sam
126 }
127 \documentclass[
128 aspectratio=169, xcolor=dvipsnames
129 ]{beamer}
130
131 \usetheme[
132 themecolor=Aquamarine,
133 titlegraphic=blueshade,% from tcolorbox pkg
134 sectiongraphic=blueshade,% from tcolorbox pkg
135 titlecredit={Title graphic: tcolorbox package},
136 ]{spectrum}
137
138 \AtBeginSection[]{
139 \begin{frame}
140 \usebeamertemplate{section page}
141 \end{frame}
142 }
143
144 \title{Some Very Interesting Title}
145 \author{Author Name}
146 \institute{Cool Conference}
147
148 \begin{document}
149
150 \maketitle
151
152 \section{Section Title}
153
154 \begin{frame}
155 \frametitle{Frame Title}
156 Normal frame
157 \end{frame}
158
159 \begin{frame}[standout]
160 Standout frame
161 \end{frame}
162
163 \end{document}
164 \end{tcblisting}
165
166 \section{ltx-talk}
167
168 There is also an experimental \saminline|ltx-talk| version of the spectrum theme available.
169 It works similarly, but does not offer a \saminline|standout| frame option.
170 \begin{tcblisting}{
171 title={ltx-talk theme},
172 compilable listing sam
173 }
174 \DocumentMetadata{}
175 \documentclass{ltx-talk}
176
177 \usepackage[
178 % themecolor=teal,
179 % titlegraphic=blueshade,% from tcolorbox pkg
180 % sectiongraphic=blueshade,% from tcolorbox pkg
181 % titlecredit={Title graphic: tcolorbox package},
182 ]{talkthemespectrum}
183
184 \AddToHook{section/begin}{
185 \UseTemplate{sectionpage}{talk}{}
186 }
187
188 \title[Short title]{Some Very Interesting Title}
189 \author[Short author]{Author Name}
190 \institute[Short institute]{Cool Conference}
191
192 \begin{document}
193
194 \maketitle
195
196 \section{Section Title}
197
198 \begin{frame}
199 \frametitle{Frame Title}
200 Normal frame
201 \end{frame}
202
203 \end{document}
204 \end{tcblisting}
205
206 \end{document}