This repository contains a minimal template for LaTeX Beamer slideshows. I extracted this from my talks as I find the styling very nice and focused on the content. All of the default navigation mumbo jumbo has been removed. It uses Fira Sans and Fira Code fonts throughout.
It is configured to produce two PDFs, one with notes and one without. The notes are placed on the right of the main content, in a double-width PDF. You can use SplitShow in OS X and pdfpc in Linux to display the slides on an external monitor and your notes on your laptop screen.
- Clone this repository and delete the
.git
directory, or just download the files. - Remove the
samples
directory. - Start editing
src/metadata.tex
andsrc/slides.tex
as described below. - Run
make
ormake watch
(see Build).
The file src/slides.tex
contains the data needed to create the title page
and the Twitter handle in the footer. The default one includes
src/graphics/logo.png
, a placeholder which you can either remove or replace.
The file src/slides.tex
is where you write your slides. The template includes
some handy commands for the things I use regularly, like big centered headings
and emphasized short texts.
The first slide uses \titlepage
, you can leave that as is.
\begin{frame}
\titlepage
\end{frame}
You can either use \note[item]{...}
like in the previous example, or the
custom \notelist
command:
\begin{frame}
\notelist{
\item A bit easier, I think
}
\end{frame}
There's three custom commands for centered text:
\singletitle
for section titles\singlesubheading
for sub-sections\singletext
for emphasizing a short quote or statement
For including text, the template uses the listings
package together with an
adaptation of the Paramount color
scheme.
\begin{frame}
\frametitle{Code Listing}
\lstinputlisting[language=c]{src/listings/hello.c}
\notelist{
\item Hello world is a cool example
}
\end{frame}
If you want a dark theme for your slides, remove the comment in src/master.tex
at the following include:
\include{src/includes/dark-theme}
You now have a black background with white text.
Run make
to produce the PDFs.
make
You should now have target/slides/slides.pdf
and
target/slides-no-notes/slides-no-notes.pdf
.
If you have NodeJS you can also run the watched build:
make watch
NOTE: If you want the watch to react to other file extensions than .tex
and .png
you need to add those in the Makefile.
The MIT License (MIT)
Copyright (c) 2016, Oskar Wickström
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.