Debian Codegraph @

texmf-dist/doc/latex/beamerdarkthemes/beamerdarkthemesuserguide.tex

raw
1 % Copyright 2014-2018 by Damien Thiriet
2 %
3 % This work may be distributed and/or modified under the
4 % conditions of the LaTeX Project Public License, either version 1.3
5 % of this license or (at your option) any later version.
6 % The latest version of this license is in
7 % http://www.latex-project.org/lppl.txt
8 % and version 1.3 or later is part of all distributions of LaTeX
9 % version 2005/12/01 or later.
10 %
11 % This work has the LPPL maintenance status `maintained'.
12 %
13 % The Current Maintainer of this work is Damien Thiriet
14 %
15 % This work consists of the files beamerdarkthemesuserguide.tex,
16 % beamerdarkthemesuserguide.pdf, beamercolorthemecormorant.sty,
17 % beamercolorthemefrigatebird.sty, beamercolorthememagpie.sty,
18 % dahut.jpg, img_5630.jpg, example.tex, frigatebirdexampletree.pdf,
19 % frigatebirdexampledefault.pdf, frigatebirdexamplesidebar.pdf,
20 % frigatebirdexampleinfolines.pdf, cormorantexampledefault.pdf,
21 % cormorantexamplesidebar.pdf, cormorantexampleinfolines.pdf,
22 % cormorantexampletree.pdf, magpieexampledefault.pdf,
23 % magpieexamplesidebar.pdf, magpieexampleinfolines.pdf,
24 % magpieexampletree.pdf, makeexamples.sh
25 %
26 % img_5630.jpg was taken by Damien Thiriet in the nice Dolina Pięciu
27 % Stawów near Zakopane, Poland. img_5630.jpg, dahut.jpg and
28 % example.tex are licenced CC-BY version 4.0 or later.
29 % You will find a copy of this licence in
30 % http://creativecommons.org/licenses/by/4.0/legalcode
31 %
32 % makeexamples.sh is based upon beamerthemesmakeexample.sh, a file that
33 % could be found in beamer official doc in 2013 (scripts are nowadays
34 % part of beamer Makefile).
35 %
36 % beamercolorthemeseahorse.sty was used as a canvas
37 % when coding beamercolorthememagpie.sty first version.
38 %
39 % Package version 0.5.1
40
41
42 \documentclass[12pt]{article}
43 \usepackage[a4paper,vmargin={1cm,1.5cm},inner=2cm,outer=2cm]{geometry}
44 \usepackage{polyglossia}
45 \usepackage{pgf}
46 \usepackage{hyperref}
47
48 \setdefaultlanguage{english}
49
50 \setmainfont{Latin Modern Roman}
51 \setsansfont{Latin Modern Sans}
52 \setmonofont{Latin Modern Mono}
53 %\setmainfont{Linux Libertine O}
54 %\setsansfont{Linux Biolinum O}
55 %\setmonofont{Linux Libertine Mono O}
56
57 \title{Beamer dark Themes}
58 \author{Damien Thiriet \\ \url{[email protected]}}
59
60 %\date{}
61
62 \begin{document}
63 \maketitle
64 \tableofcontents
65
66 \section{Installation}
67
68 \subsection{TeX{} distribution package manager}
69
70 Just download the package \ttfamily darkbeamerthemes \rmfamily with your \TeX{} distribution (\TeX{} Live, MiK\TeX{}, Mac\TeX{}, pro\TeX{}t…).
71 \TeX{} Live users may use the graphical interface or write in a console
72 \begin{verbatim}
73 tlmgr install darkbeamerthemes
74 \end{verbatim}
75 An introduction to Mac\TeX{} package manager can be found at \url{http://code.google.com/p/mactlmgr/wiki/GettingStarted}, a more complete documentation should be found in Mac\TeX{} help menu.
76 MiK\TeX{} manual is available online: \url{http://www.miktex.org/help}.
77 As far as I understand, pro\TeX{}t uses MiK\TeX{} package manager.
78
79 \subsection{Manual download}
80
81 Sometime you cannot use your \TeX{} distribution packaging tools. You may just
82 do not know what a \TeX{} distribution is; maybe you don't have rights to use its admin tools; some GNU/linux (and *BSD?) distributions package \TeX{} Live without its administration tools; etc.
83
84 Download \ttfamily beamercolorthemecormorant.sty, beamercolorthemefrigatebird.sty \rmfamily{} and \rmfamily{} beamercolorthememagpie.sty. \rmfamily Under GNU/Linux, you'd better put them in a subdirectory of \TeX{} Live personal directory, \verb+$HOME/texmf+ by defaults (\verb+%USERPROFILE%\texmf+ under Windows).
85 Create the subdirectory \verb+$HOME/texmf/tex/latex/+ and move those three files there. They will now be found during compilation, whatever directory you are writing from.
86
87 An alternative is to download the file you need directly in your presentation file. This is much less convenient if you intend to use these themes in some other presentation, located in another directory. Do not forget then to copy/symlink those files or to point them using the \verb+../+ notation.
88
89 Then insert the following line in your preamble:
90 \begin{verbatim}
91 \usecolortheme{cormorant}
92 \end{verbatim}
93
94 Cormorant should be of course replaced by \ttfamily frigatebird \rmfamily or \ttfamily{}magpie\rmfamily{}, depending on your choice.
95 If you chose any global theme, you should mention the theme first, then your color theme.
96
97 \begin{verbatim}
98 \usetheme{Bergen}
99 \usecolortheme{cormorant}
100 \end{verbatim}
101
102 \section{Dark themes: what for?}
103
104 Before choosing any dark theme, you should be aware of its side effects.
105
106 \begin{quotation}
107 Inverse video (bright text on dark background) can be a problem during presentations in bright environments since only a small percentage of the presentation area is light up by the beamer. Inverse video is harder to reproduce on printouts and on transparencies.
108 \end{quotation}
109
110 \begin{flushright}
111 \emph{Beamer Class User Guide} 3.3, p.~38.
112 \end{flushright}
113
114 On the other hand, several years of hard experience with light backgrounds used in bright classroom convinced me that a really dark theme might be useful:
115 \begin{itemize}
116 \item when there is no screen but a not-so-white wall
117 \item when there is a screen, but your classroom is quite sunny (on the other hand, students would be more likely to fall asleep in a dark classroom…)
118 \item when your presentation includes lots of photos, images, paintings… Art Historians often use dark background to emphasize the paintings they are about to comment. Paintings and photos are more visible on a black background than on a white one.
119 \end{itemize}
120
121 These themes were tested with all beamer themes. In my opinion, mixing them with shadowed themes, such as the very popular Warsaw, should be avoided. White shadows do not look too fancy on black background IMHO. \emph{De gustibus}…
122
123
124 \section{Names}
125
126 As requested by Till Tantau in \ttfamily{}beamer\rmfamily{} documentation, my color themes are named after birds.
127
128 \begin{description}
129 \item[cormorant]
130 A black and green theme, the first one I worked with. First named magpie, since the first black and green bird I could find on the web was an American magpie.
131 Tested during one year, sadly without asking students for callback. Its items were hardly readable when projector darkened the output. I decided finally to mix green with white rather than black.
132
133 \item[magpie]
134 A black/blue theme. Named after European magpies.
135
136 \item[frigatebird]
137 A black/red theme. Inspired by frigate bird's male. Rather for those who do not associate to closely red with beamer's alert boxes.
138 \end{description}
139
140 \section{Caveats}
141
142 \verb+\alert{}+ is not easy to combine with dark backgrounds. Red is not that readable on a dark background. Orange is more readable, but the hierarchy between \verb+\alert{}+ and \verb+\structure{}+ is not obvious at all.
143
144 Version 0.5 reassigned therefore basic colors: yellow to \ttfamily{}alert\rmfamily{} foregrounds and orange to \ttfamily{}structure\rmfamily{} foregrounds. I bet people might find yellow/black contrast more important than the orange/black one. Dark red backgrounds are still used for alertblocks however.
145
146 \section{Examples}
147
148 Surprisingly, Euclid's presentation does not include any photography. I designed those themes to end up with describing photos students could hardly see. So let's take an example of my own, with a picture, last but not least in French: this is the part of the doc that will surely be properly written.
149 Some sentences are too long, though.
150
151 Examples are basically issued from an \ttfamily{}example.tex\rmfamily{} file with 4 slides designed with as many environments or macros as possible:
152 \begin{itemize}
153 \item slide 2: \verb+frametitle+, \verb+block+, \verb+exampleblock+, \verb+description+
154 \item slide 3: \verb+framesubtitle+, \verb+includegraphics+
155 \item slide 4: \verb+structure+, \verb+alert+
156 \end{itemize}
157 You can browse the whole file \ttfamily{}example.tex\rmfamily{} in the package sources.
158
159 Examples are displayed on pages \pageref{fig:cormorant-default}–\pageref{fig:frigatebird-tree}. Figure~\ref{fig:cormorant-default} to \ref{fig:frigatebird-default} display the whole document without any outer nor inner theme. Figure~\ref{fig:cormorant-sidebar} to \ref{fig:frigatebird-tree} display slide 2 and 3 with outer themes variations.
160
161 \begin{figure}[p]
162 \pgfimage[width=.45\linewidth,page=1]{cormorantexampledefault.pdf}
163 \pgfimage[width=.45\linewidth,page=2]{cormorantexampledefault.pdf}
164
165 \pgfimage[width=.45\linewidth,page=3]{cormorantexampledefault.pdf}
166 \pgfimage[width=.45\linewidth,page=4]{cormorantexampledefault.pdf}
167 \caption{cormorant color theme}
168 \label{fig:cormorant-default}
169 \end{figure}
170
171 \begin{figure}[p]
172 \pgfimage[width=.45\linewidth,page=1]{magpieexampledefault.pdf}
173 \pgfimage[width=.45\linewidth,page=2]{magpieexampledefault.pdf}
174
175 \pgfimage[width=.45\linewidth,page=3]{magpieexampledefault.pdf}
176 \pgfimage[width=.45\linewidth,page=4]{magpieexampledefault.pdf}
177 \caption{magpie color theme}
178 \label{fig:magpie-default}
179 \end{figure}
180
181 \begin{figure}[p]
182 \pgfimage[width=.45\linewidth,page=1]{frigatebirdexampledefault.pdf}
183 \pgfimage[width=.45\linewidth,page=2]{frigatebirdexampledefault.pdf}
184
185 \pgfimage[width=.45\linewidth,page=3]{frigatebirdexampledefault.pdf}
186 \pgfimage[width=.45\linewidth,page=4]{frigatebirdexampledefault.pdf}
187 \caption{frigatebird color theme}
188 \label{fig:frigatebird-default}
189 \end{figure}
190
191 \begin{figure}[p]
192 \pgfimage[width=.45\linewidth,page=2]{cormorantexamplesidebar.pdf}
193 \pgfimage[width=.45\linewidth,page=3]{cormorantexamplesidebar.pdf}
194 \caption{cormorant color theme, sidebar outer theme}
195 \label{fig:cormorant-sidebar}
196 \end{figure}
197
198 \begin{figure}[p]
199 \pgfimage[width=.45\linewidth,page=2]{cormorantexampleinfolines.pdf}
200 \pgfimage[width=.45\linewidth,page=3]{cormorantexampleinfolines.pdf}
201 \caption{cormorant color theme, infolines outer theme}
202 \end{figure}
203
204 \begin{figure}[p]
205 \pgfimage[width=.45\linewidth,page=2]{cormorantexampletree.pdf}
206 \pgfimage[width=.45\linewidth,page=3]{cormorantexampletree.pdf}
207 \caption{cormorant color theme, tree outer theme}
208 \end{figure}
209
210 \begin{figure}[p]
211 \pgfimage[width=.45\linewidth,page=2]{magpieexamplesidebar.pdf}
212 \pgfimage[width=.45\linewidth,page=3]{magpieexamplesidebar.pdf}
213 \caption{magpie color theme with sidebar outer theme}
214 \end{figure}
215
216 \begin{figure}[p]
217 \pgfimage[width=.45\linewidth,page=2]{magpieexampleinfolines.pdf}
218 \pgfimage[width=.45\linewidth,page=3]{magpieexampleinfolines.pdf}
219 \caption{magpie color theme with infolines outer theme}
220 \end{figure}
221
222 \begin{figure}[p]
223 \pgfimage[width=.45\linewidth,page=2]{magpieexampletree.pdf}
224 \pgfimage[width=.45\linewidth,page=3]{magpieexampletree.pdf}
225 \caption{magpie color theme with tree outer theme}
226 \label{fig:magpie-tree}
227 \end{figure}
228
229 \begin{figure}[p]
230 \pgfimage[width=.45\linewidth,page=2]{frigatebirdexamplesidebar.pdf}
231 \pgfimage[width=.45\linewidth,page=3]{frigatebirdexamplesidebar.pdf}
232 \caption{frigatebird color theme, sidebar outer theme}
233 \end{figure}
234
235 \begin{figure}[p]
236 \pgfimage[width=.45\linewidth,page=2]{frigatebirdexampleinfolines.pdf}
237 \pgfimage[width=.45\linewidth,page=3]{frigatebirdexampleinfolines.pdf}
238 \caption{frigatebird color theme, infolines outer theme}
239 \end{figure}
240
241 \begin{figure}[h!]
242 \pgfimage[width=.45\linewidth,page=2]{frigatebirdexampletree.pdf}
243 \pgfimage[width=.45\linewidth,page=3]{frigatebirdexampletree.pdf}
244 \caption{frigatebird color theme, tree outer theme}
245 \label{fig:frigatebird-tree}
246 \end{figure}
247
248 \newpage
249
250 \section{History}
251
252 \subsection*{v. 0.5.1}
253
254
255 \begin{itemize}
256 \item fixed a bug: whitish colors when covered (Riccardo Maffei)
257 \end{itemize}
258
259 \subsection*{v. 0.5}
260
261 Color changes may be considered as bug fixes. I realized only few colors do render well on a dark background; red and green are not one of them.
262 \begin{itemize}
263 \item \verb+\alert{}+ switched to previous \verb+\structure{}+ yellow output.
264 \item \verb+\structure{}+ gives now an orange output.
265 \item \ttfamily{}item\rmfamily{} color is now using \ttfamily{}structure.fg\rmfamily{} color.
266 \item Palettes redesigned in a more consistent way.
267 \item New colors: \ttfamily{} section in sidebar shaded\rmfamily{},\ttfamily{} subsection in sidebar shaded\rmfamily{},\ttfamily{} section in head/foot shaded\rmfamily{},\ttfamily{} subsection in head/foot shaded\rmfamily{}.
268 \item \ttfamily{}local structure\rmfamily{} was deleted.
269 \item Documentation improvements: links to auxiliary files, new caveats section, switch to Latin Modern Font, history divided in subsections.
270 \item README now lists package files.
271 \end{itemize}
272
273 \subsection*{v. 0.4.2}
274 \begin{itemize}
275 \item Improvements of frigatebird: brighter description items (the former ones were hardly readable on a black background), alert colour based on purple.
276 \item Typos fixed in documentation, new history section.
277 \end{itemize}
278 This version was not uploaded on CTAN because I lacked time to do it.
279
280 \subsection*{v. 0.4.1}
281 First release on CTAN.
282 \begin{itemize}
283 \item add package version on *sty, *tex files.
284 \item *jpg and example.tex licenced CC-BY.
285 \item Add changelog to README.
286 \end{itemize}
287
288 \subsection*{v. 0.4}
289
290 \begin{itemize}
291 \item Rename magpie to cormorant;
292 \item New themes: magpie and frigatebird.
293 \item New files: \ttfamily{}beamerdarkthemesuserguide.tex\rmfamily{}, \ttfamily{}example.tex\rmfamily{} and their derivative, \ttfamily{}img\_5630.jpg\rmfamily{} and \ttfamily{}dahut.jpg\rmfamily{}.
294
295 \end{itemize}
296
297 \subsection*{v. 0.3}
298 \begin{itemize}
299 \item Change main green from green!50!black to green!50!white to avoid unreadable description items on dark rendering.
300 \item New file: \ttfamily{}makeexample.sh\rmfamily{}, adapted from \ttfamily{}beamer\rmfamily{} package for testing purpose.
301 \end{itemize}
302
303 \subsection*{v. 0.2}
304 \begin{itemize}
305 \item Cracow theme dropped;
306 \item oneline outertheme dropped;
307 \item Add sidebar colors to \ttfamily{}beamercolorthememagpie.sty\rmfamily{}.
308 \end{itemize}
309
310 \subsection*{v. 0.1}
311 \begin{itemize}
312 \item New colortheme \ttfamily{}magpie\rmfamily{}.
313 \item New theme \ttfamily{}Cracow\rmfamily{}.
314 \item New outer theme \ttfamily{}oneline\rmfamily{}.
315 \end{itemize}
316
317
318
319 \end{document}