-
Notifications
You must be signed in to change notification settings - Fork 44
/
ntnu-beamer-documentation.tex
167 lines (149 loc) · 7.15 KB
/
ntnu-beamer-documentation.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
\documentclass[aspectratio=169]{beamer}
\usepackage[english]{babel}
\usepackage{booktabs,listings,pdfpages, biblatex}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\lstset{basicstyle=\ttfamily}
\setlength{\parskip}{.5\baselineskip}
\usetheme[slogan=english, style=vertical]{NTNU}
\addbibresource{demo.bib}
%
% Edit your meta data here
%
\title{\LaTeX{}-Beamer Style for NTNU}
\subtitle{Documentation.}
\author{Ronny Bergmann}
\date{\today}
\begin{document}
\maketitle
\begin{frame}{Contents}
\tableofcontents
\end{frame}
\section{Introduction}
\begin{frame}{The \LaTeX{} beamer NTNU Theme}
This \LaTeX beamer theme is based on the Powerpoint templates available at \href{https://innsida.ntnu.no/wiki/-/wiki/English/Create+NTNU+presentations\#section-Create+NTNU+presentations-Powerpoint+templates}{Innsida}.
The design of these templates is owned by NTNU, and should not be altered
substantially without checking it with the \href{https://www.ntnu.no/adm/komm}{Communication Division}.
This documentation assumes that you have your editor and \LaTeX{} compiler set up and running. For \LaTeX{} beamer, the full documentation is available at \url{https://texdoc.org/serve/beamer/0}.
This documentation
\begin{itemize}
\item gets you started (slide \#\ref{slide:start})
\item illustrates what the three styles look like (demo after slide \#\ref{slide:styles-demo} onwards)
\item documents all available options and features (Slide \#\ref{slide:developer})
\end{itemize}
\end{frame}
\section{Getting started}
\begin{frame}[fragile]{Start A Presentation}
\label{slide:start}
\begin{enumerate}
\item Copy all eight \lstinline!.sty! files (Style files) and all seven \lstinline!.png! files (the logos) to the folder, where you want to write your presentation
\item Copy \alert{either} the \lstinline!ntnu-beamer-example-eng.tex!\\
\alert{or} the \lstinline!ntnu-beamer-example-eng.tex! to that folder, too
\item Open the just copied \lstinline!.tex! file and start writing your presentation, i.e.
\begin{itemize}
\item fill out author and title
\item fill or comment out (\lstinline!%! at the beginning of the line) the subtitle
\item set the date or leave it at the current date
\item Start writing your slides (called \lstinline!frames!), two examples are already given in the template
\end{itemize}
\end{enumerate}
You can repeat this whenever you start preparing a new presentation.
A more elaborate way \emph{instead} of copying all files from step 1 is to
include them in your \LaTeX\ path.
\end{frame}
\section{Example Slides in Different Themes}
\begin{frame}[fragile]{Different styles}
\label{slide:styles-demo}
The following 6 slides illustrate the three styles you can choose,
first showing the title page and then a usual slide that also explains how to choose this style.
Note that since \lstinline!slogan=english!, \lstinline!style=plain!, and \lstinline!mathfont=sans! are the defaults, if you use
\lstinline!\usetheme{NTNU}!
that is the same as
\lstinline!\usetheme[slogan=english, style=plain, mathfont=sans]{NTNU}!
\end{frame}
{
\setbeamercolor{background canvas}{bg=}
\includepdf[pages={1,2}]{demo-ntnu-plain.pdf}
\includepdf[pages={1,2}]{demo-ntnu-horizontal.pdf}
\includepdf[pages={1,2}]{demo-ntnu-vertical.pdf}
}
\section{Developer Guide}
\begin{frame}[fragile]{Available options}
\label{slide:developer}
You can load the theme using
\lstinline!\usetheme{NTNU}!
where you have the following options available
\begin{tabular}{lcl}
\toprule
\textbf{Option} & \textbf{Default} &\textbf{Description} \\
\midrule
\lstinline!displayframetotal! && the same as \lstinline!frametotal=true! \\
\lstinline!frametotal=true|false! & \lstinline!false! & toggle display of total number of slides\\
\lstinline!hideframetotal! && the same as \lstinline!frametotal=false! \\
\lstinline!slogan=english|norsk! & \lstinline!norsk! & whether to use english or norsk slogan\\
\lstinline!style= ...! & \lstinline!plain! & styles, see (outer) themes on slide \ref{slide:outer}\\
\lstinline!mathfont=sans|serif! & \lstinline!sans! & font style in mathmode\\
\bottomrule
\end{tabular}
\end{frame}
\begin{frame}[fragile]{Outer themes}
\label{slide:outer}
The corporate design team provides four variants
\\\hfill{\small (outer themes in latex beamer)}
\begin{description}
\item[NTNUplain] a very plain style (Default)
\item[NTNUvertical] with a stripe on the left (current)
\item[NTNUhorizontal] with a stripe at the bottom
\end{description}
They all three consist of an outer and an innter theme, but the easy way to activate these is the option
\lstinline!style=plain|vertical|horizontal!
when loading the theme with
\lstinline!\usetheme{NTNU}!
as shown on slide \#\ref{slide:styles-demo} and the following example slides.
\end{frame}
\begin{frame}[fragile]{special commands}
\begin{description}
\item[titlelogo]
Set the logo on the title page. By default, it is set to the negative english or norsk logo (depending on the chosen slogan), see the slogan option, e.g.\,
\lstinline!\titlelogo{ntnu_bredde_eng_neg.png}!
\end{description}
\end{frame}
\begin{frame}{Special colors}
% These colors are taken from \url{https://innsida.ntnu.no/wiki/-/wiki/Norsk/Farger+i+grafisk+profil}
\begin{description}
\item[{\color{NTNUBlue} NTNUblue}] (\#{\color{NTNUBlue}00509e})
\item[{\color{NTNULightblue} NTNULightblue}] (\#{\color{NTNULightblue}6096d0})
\item[{\color{NTNUOrange} NTNUOrange}] (\#{\color{NTNUOrange}ef8114})
\item[{\color{NTNUPink} NTNUPink}] (\#{\color{NTNUPink}b01b81})
\item[{\color{NTNUYellow} NTNUYellow}] (\#{\color{NTNUYellow}f7d019})
\item[{\color{NTNUViolet} NTNUViolet}] (\#{\color{NTNUViolet}482776})
\item[{\color{NTNUCyan} NTNUCyan}] (\#{\color{NTNUCyan}3cbfbe})
\item[{\color{NTNUOcher} NTNUOcher}] (\#{\color{NTNUOcher}cfb887})
\item[{\color{LightGrey} LightGrey}] (\#{\color{LightGrey}bebebe})
\end{description}
\end{frame}
\begin{frame}{Further configurations}
Currently all 3 colors of \lstinline!hyperref! are set to {\color{NTNUBlue} NTNUblue}, i.\,e.\
\begin{itemize}
\item \lstinline!linkcolor! when referring to e.\,g.\ the demo slides slide \#\ref{slide:styles-demo} and following
\item \lstinline!urlcolor! when using URLs or hyperref links, for example when including this themes \href{https://github.com/ntnu-tex/beamerthementnu}{github page}
\item \lstinline!citecolor! when citing literature like \footfullcite{TeX-book}.
\end{itemize}
\end{frame}
\begin{frame}{Required packages}
The following packages have to be installed for the theme to work
\begin{description}
\item[calc] for a few computational tricks
\item[ifthen] to define some commands
\item[pdftexcmds] to define some commands
\item[opensans] for the font
\item[tikz] for some graphic tricks
\end{description}
This documentation further uses
\begin{description}
\item[booktabs] for nice tables
\item[listings] for code highlighting
\item[pdfpages] to include the examples
\end{description}
\end{frame}
\end{document}