Commit b2e12ed6 authored by Philip Withnall's avatar Philip Withnall

Create templates for GUADEC 2020

Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
parent 7e96a9ce
NULL =
SRC = guadec-example.tex
PANDOC_SRC = presentation.md
OUT = $(SRC:%.tex=%.pdf)
PANDOC_OUT = $(PANDOC_SRC:%.md=%.pdf)
BYPRODUCTS = \
$(SRC:%.tex=%.aux) \
$(SRC:%.tex=%.log) \
$(SRC:%.tex=%.nav) \
$(SRC:%.tex=%.out) \
$(SRC:%.tex=%.snm) \
$(SRC:%.tex=%.toc) \
$(NULL)
default: pandoc
ctex: tex clean
tex: $(OUT)
pandoc:
@echo -n "Compiling $(PANDOC_SRC) to $(PANDOC_OUT)... "
@pandoc $(PANDOC_SRC) -t beamer+smart -s -o $(PANDOC_OUT) \
-V theme:guadec -V classoption:aspectratio=43 --slide-level 2 --highlight-style kate
@echo "Done!"
continuous: pandoc
@echo "The PDF will be updated automatically when you save the $(PANDOC_SRC) document. Press Ctrl+C to abort."
@while inotifywait -q $(PANDOC_SRC); do sleep 0.1; make --no-print-directory pandoc; done
%.pdf: %.tex
pdflatex $<
clean:
rm -Rf $(OUT) $(PANDOC_OUT) $(BYPRODUCTS)
.PHONY: all clean
# GUADEC 2020 Presentation Templates
This repository contains templates usable for presentations for GUADEC 2020.
The following commands will get you the template:
```
git clone https://gitlab.gnome.org/GNOME/presentation-templates.git
cd presentation-templates/GUADEC/2020
```
Don't worry - you **don't need to write LaTeX**! Pandoc is easy! Please give it a
try so we all can have consistent and pretty presentations.
## How Can I Create a Presentation?
You can create a presentation using Pandoc or LaTeX. Pandoc is way easier and
recommended as it will be automatically translated into LaTex.
Try it out; open your console, go to the directory where this document lies and
type `make`. This will compile the `presentation.md` into `presentation.pdf` if
you have pandoc installed.
Just look into the md and pdf file to see how you can simply create your
presentation. It's easy! Please try it out!
> **Note**:
>
> You can use `make continuous` to automatically regenerate the PDF whenever you
> touch the document. For that to work you'll need to have the `inotify-tools`
> package installed.
### Using Latex Directly
You can also use LaTeX directly. Use the `make tex` command to compile the
example tex document into a presentation.
\mode<presentation>
\definecolor{guadeclightblack}{HTML}{555555}
\definecolor{guadecblue}{HTML}{4A86CF}
\colorlet{guadeclightblue}{guadecblue!50}
\definecolor{guadeclightgrey}{HTML}{F5F5F4}
\definecolor{adwaitablue}{HTML}{4A90D9}
\definecolor{guadecbeamerred}{HTML}{D94C4A}
\definecolor{guadecbeamergreen}{HTML}{4AD94C}
% Settings
\setbeamercolor*{normal text}{fg=guadeclightblack}
\setbeamercolor*{alerted text}{fg=guadecbeamerred}
\setbeamercolor*{example text}{fg=guadecbeamergreen}
\setbeamercolor*{structure}{fg=guadecblue}
\setbeamercolor*{background canvas}{parent=normal text}
\setbeamercolor*{title page header}{fg=white}
\setbeamercolor*{author}{fg=white}
\setbeamercolor*{date}{fg=white}
\setbeamercolor*{background canvas}{bg=guadeclightgrey}
\setbeamercolor*{block title}{bg=guadeclightblack, fg=adwaitablue}
\setbeamercolor*{block body}{bg=guadeclightblack, fg=guadeclightgrey}
\setbeamercolor{framesubtitle}{fg=guadeclightblue}
\setbeamerfont{framesubtitle}{size=\large}
\mode
<all>
\mode<presentation>
\setbeamertemplate{background} {
\begin{tikzpicture}
\useasboundingbox (0, 0) rectangle(\the\paperwidth,\the\paperheight);
% Draw the title page
\ifnum\thepage=1\relax%
% The background
\fill[color=guadecblue] (0, 0) rectangle (\the\paperwidth, \the\paperheight);
% The footer
\node[inner sep=0pt,yshift=-3pt][anchor=south] at (0.5\paperwidth, 6mm) {
\includegraphics[height=0.3\paperheight]{guadec-skyline}};
\fill[color=white] (0, 0) rectangle (\the\paperwidth, 6mm);
% The footer's content
\node[anchor=west] at (0, 3mm) {
\textcolor{guadecblue}{\tiny{\hskip6mm\insertdate}}};
\node[anchor=east] at (\paperwidth, 3mm) {
\textcolor{guadecblue}{\tiny{Online\hskip6mm\hfill}}};
\fi
% Draw any other page
\ifnum\thepage>1\relax%
% The footer
\fill[color=guadecblue] (0, 0) rectangle (\the\paperwidth, 6mm);
% The footer's content
\node[anchor=west] at (0, 3mm) {
\textcolor{guadeclightgrey}{\tiny{\hskip6mm\insertshorttitle}}};
\node[anchor=east] at (\paperwidth, 3mm) {
\textcolor{guadeclightgrey}{\tiny{\thepage\hskip6mm\hfill}}};
\fi
\end{tikzpicture}
}
% Title page
\defbeamertemplate*{title page}{guadec}[1][] {
\centering
\includegraphics[width=0.672\paperheight,height=0.21\paperheight,keepaspectratio]{guadec-logo}
\vskip6mm%
\hfill
\begin{beamercolorbox}[wd=0.66\paperwidth, center, sep=8pt, #1]{title page header}
\usebeamerfont{title}\inserttitle\par%
\end{beamercolorbox}%
\hfill\hfill
\vskip6mm%
\begin{beamercolorbox}[center]{author}
\usebeamerfont{author}\insertauthor%
\end{beamercolorbox}
\vfill
}
\setbeamertemplate{itemize items}{\includegraphics[height=0.7em]{gnome-foot.mps}}
\mode
<all>
\mode<presentation>
% Frame title
\defbeamertemplate*{frametitle}{guadec}[1][] {
% \vskip1cm%
\begin{beamercolorbox}[wd=\paperwidth, leftskip=6mm, ht=12mm]{frametitle}
\ifx\insertframesubtitle
\@empty%
\insertframetitle
\else%
\insertframetitle
\usebeamercolor[fg]{framesubtitle}
\usebeamerfont{framesubtitle}
\insertframesubtitle
\fi
\end{beamercolorbox}
}
\mode<all>
\mode<presentation>
% Requirement
\RequirePackage{tikz}
% Settings
\useinnertheme{guadec}
\useoutertheme{guadec}
\usecolortheme{guadec}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded]
\mode<all>
%!PS
%%BoundingBox: 119 112 153 153
%%HiResBoundingBox: 119.71608 112.121 152.45871 152.363
%%Creator: MetaPost 1.802
%%CreationDate: 2013.08.04:1330
%%Pages: 1
%%BeginProlog
%%EndProlog
%%Page: 1 1
newpath 123.613 135.871 moveto
125.395 136.66 123.84401 144.34 120.80899 142.246 curveto
117.777 140.152 121.828 135.09 123.613 135.871 curveto
closepath fill
newpath 128.637 139.895 moveto
130.762 140.328 130.879 149.035 127.09 147.473 curveto
123.305 145.91 126.516 139.457 128.637 139.895 curveto
closepath fill
newpath 135.105 141.914 moveto
137.613 141.766 140.363 151.488 135.652 150.871 curveto
130.938 150.266 132.598 142.07 135.105 141.914 curveto
closepath fill
newpath 149.008 152.363 moveto
140.633 152.363 139.062 140.441 143.773 140.441 curveto
148.48 140.441 157.379 152.363 149.008 152.363 curveto
closepath fill
newpath 139.723 120.40599 moveto
140.102 117.53099 137.613 116.109 135.176 117.965 curveto
127.422 123.867 148.016 126.812 146.66 134.879 curveto
145.531 141.574 124.992 139.512 122.652 129.035 curveto
121.06601 121.94899 129.168 112.121 137.621 112.121 curveto
141.781 112.121 146.578 115.871 147.473 120.633 curveto
148.16 124.258 139.41 122.805 139.723 120.40599 curveto
closepath fill
showpage
%%EOF
\documentclass[aspectratio=43]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{listings}
\title[How to use \LaTeX{} for GUADEC 2020]{How to use \LaTeX{} for creating awesome slides for GUADEC 2020}
\author{Rupert Monkey \texttt{rupertm@gnome.org}}
\date{August 25, 2020}
\usetheme{guadec}
\AtBeginSection{\frame{\sectionpage}}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Title Slide}
\begin{frame}[containsverbatim]
\frametitle{Content slide}
\framesubtitle{With a subtitle}
Do math simply!
\begin{center}
$\sqrt{5} \neq 1$
\end{center}
\texttt{Use} the $^\text{power}$ of \LaTeX!
\begin{block}{With Lower Level Headers}
\begin{lstlisting}[language=Python]
def some_code(is_easy_to):
integrate()
# With syntax highlighting, of course!
\end{lstlisting}
\end{block}
\end{frame}
\begin{frame}
\frametitle{Incrementally Showing Lists}
\begin{itemize}
\item<1-> Is
\item<2-| alert@2> Dead
\item<3-> Easy!
\item<1-> Yet flexible
\end{itemize}
\end{frame}
\section{Compiling}
\begin{frame}
\frametitle{Compiling}
Simply use \texttt{make tex} in this directory!
\end{frame}
\end{document}
% How to use Pandoc for creating awesome slides for GUADEC
% Lasse Schuirmann (`lasse.schuirmann@gmail.com`)
% July 21, 2020
# Title Slide
Any text under a header 1 won't be shown. This is a title slide without
content!
---
![Evaluation of a Code Clone Detection](graph.png)
---
<!-- Leave the alternative text empty and add a backslash *plus a trailing space
or an extra newline* to get no image caption at all -->
![](graph.png){width=80%}\
## Content Slide
Do math simply!
$$\sqrt{5} \neq 1$$
`Use` standard *markdown* **easily**.
### With Lower Level Headers
```python
def some_code(is_easy_to):
integrate()
# With syntax highlighting, of course!
```
## Incrementally Showing Lists
<!-- Use > to make lists show incrementally. Oh you noticed?
This is a comment! -->
> - Is
> - Dead
> - Easy!
# Compiling
## Compiling
Simply use `make pandoc` in this directory!
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment