-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemesam-doc.tex
85 lines (74 loc) · 2.04 KB
/
beamerthemesam-doc.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
% !TeX program = txs:///arara | txs:///view-log | txs:///view-pdf "?am).pdf"
% !TEX spellcheck = en
% arara: latexmk: {
% arara: --> engine: pdflatex,
% arara: --> options: [
% arara: --> '-jobname=@{getBasename(getOriginalReference())}',
% arara: --> '-synctex=1',
% arara: --> '-interaction=nonstopmode',
% arara: --> '-pretex="\\newif\\ifnotes \\notesfalse"',
% arara: --> '-usepretex'
% arara: --> ]
% arara: --> }
% arara: latexmk: {
% arara: --> engine: pdflatex,
% arara: --> options: [
% arara: --> '-jobname=@{getBasename(getOriginalReference())}_notes',
% arara: --> '-synctex=1',
% arara: --> '-interaction=nonstopmode',
% arara: --> '-pretex="\\newif\\ifnotes \\notestrue"',
% arara: --> '-usepretex'
% arara: --> ]
% arara: --> }
\documentclass{beamer}
% add subfolder to search path to find theme
% git submodule add [email protected]:samcarter/beamertheme-sam.git
% git commit -am 'Add theme as submodule'
% cd beamertheme-sam
% git checkout <commit hash>
\makeatletter
\providecommand*{\input@path}{}
\g@addto@macro\input@path{{./include/}{./beamertheme-sam/}}
\makeatother
\usetheme[
%themecolor=samblue,
%listingcolor=samteal!95!black,
handout% will produce a 6/8 on 1 handout if compiled with \newif\ifnotes \notestrue
]{sam}
\AtBeginSection[]{
\begin{frame}
\usebeamertemplate{section page}
\end{frame}
}
\title{Title}
\titlegraphic{blueshade}
\titlecredit{
\scriptsize
Title graphic: Tcolorbox package
}
\sectiongraphic{blueshade}
\author{Author}
\institute{Institute}
% for colour sample
\newcommand{\testcolor}[1]{%
\begingroup
\color{#1}%
\makebox[0cm][l]{\rule[-0.9cm]{2.3cm}{2cm}}%
\endgroup
\makebox[2.3cm][c]{#1}%
}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Section Title}
\begin{frame}
\frametitle{Predefined Colours}
\foreach \col in {samyellow,samorange,samred,sammagenta,samviolet,samlila,samdblue,samlblue,samteal,samlgreen,samdgreen,samlgray,samdgray}{
\testcolor{\col}%
}
\end{frame}
\begin{frame}[standout]
Happy beaming!
\end{frame}
\end{document}