Debian Codegraph @

texmf-dist/doc/latex/beamer2thesis/content_initial.tex

raw
1 \titlepageframe % Specific command
2
3 \begin{tframe}{Introduction}
4 \begin{itemize}
5 \item Beamer is a \LaTeX{} class that allows you to create presentations
6 \item Beamer2Thesis is a Beamer package that allows you to create a presentation for your thesis
7 \begin{itemize}
8 \item with specific dedicated commands
9 \item it uses TorinoTh, a Beamer Theme
10 \end{itemize}
11 \end{itemize}
12 \end{tframe}
13
14 \begin{tframe}{TorinoTh theme}
15 \begin{itemize}
16 \item TorinoTh (TorinoThesis) is a theme which is based on Torino and extend it
17 \begin{itemize}
18 \item Torino is a pretty theme for Beamer realized by Marco Barisione
19 \item \href{http://blog.barisione.org/2007-09/torino-a-pretty-theme-for-latex-beamer/}{http://blog.barisione.org/2007-09/torino-a-pretty-theme-for-latex-beamer/}
20 \end{itemize}
21 \item Names are similar because I attend, as him, the Politecnico of Torino, but I want to emphasize the fact that TorinoTh is a theme that can be used only to realize a thesis
22 \end{itemize}
23 \end{tframe}
24
25 \begin{tframe}{TorinoTh theme}
26 \begin{itemize}
27 \item The theme consist of:
28 \begin{itemize}
29 \item \emph{beamercolorthemetorinoth.sty} defines colors and allows you to choose among three possible options: blue (default), green or red
30 \item \emph{beamerfontthemetorinoth.sty} defines fonts used
31 \item \emph{beamerinnerthemetorinoth.sty} defines the title page and items
32 \item \emph{beamerouterthemetorinoth.sty} defines headers and footers
33 \item \emph{beamerthemeTorinoTh.sty} include all definitions
34 \end{itemize}
35 \end{itemize}
36 \end{tframe}
37
38 \begin{tframe}{Installation}
39 Beamer2Thesis is distributed under:
40 \begin{itemize}
41 \item TeX Live
42 \item MiKTeX
43 \end{itemize}
44 You can use, respectively, the Package Wizard for MiK\TeX\, (\emph{Start/MiKTeX/2.9/}) and the TeX Live Manager for \TeX Live to search and install the theme.
45 Personally, I suggest you to use \TeX Live: it works for Linux, Mac and Windows. Actually, the installation under Linux is a bit complicated, but I have realized a short guide that may help you
46 \begin{itemize}
47 \item \href{http://claudiofiandrino.altervista.org/LaTeX/texlive_on_ubuntu_guide.pdf}{download the guide here}
48 \end{itemize}
49
50 \end{tframe}
51
52 \begin{tframe}{Installation (II)}
53 \label{slide-guide-installation}
54 As an alternative, Beamer2Thesis can be downloaded from my personal page as a zip file
55 \begin{itemize}
56 \item \href{http://claudiofiandrino.altervista.org/latex\_projects.html}{http://claudiofiandrino.altervista.org/latex\_projects.html}
57 \end{itemize}
58 or in the official page:
59 \begin{itemize}
60 \item \href{http://cfiandra.github.com/Beamer2Thesis/}{http://cfiandra.github.com/Beamer2Thesis/}
61 \end{itemize}
62
63 It can be installed with the standard procedure used to install a common package: I suggest you to read a short guide I have written
64 \begin{itemize}
65 \item \href{http://claudiofiandrino.altervista.org/LaTeX/package_installation.pdf}{download the guide here}
66 \end{itemize}
67 \end{tframe}
68
69 \begin{tframe}{The guides}
70 \begin{itemize}
71 \item Next slides will present all features avaiable
72 \item As examples in which different options are applied, is possible to see the guides:
73 \begin{itemize}
74 \item beamer2thesis.pdf is the standard english guide which uses standard options
75 \item beamer2thesis\_ita.pdf is the italian guide with green colors
76 \end{itemize}
77 \end{itemize}
78 \end{tframe}
79
80 \begin{frame}[t,fragile]{How to read the guides}
81 \begin{itemize}
82 \item All guides show options in general; to have a look for specific configurations, read each guide because in each one is reported its own configuration state
83 \item Every time something is declared to be \emph{default}, it is possible to omit it from the configuration phase
84 \item Every time an option is enabled by setting it with \emph{true}, to disable it you can use \emph{false}; for example:
85 \begin{verbatim}
86 secondcandidate=false
87 secondcandidate=true
88 \end{verbatim}
89 \end{itemize}
90 \end{frame}
91
92 \begin{frame}[t,fragile]{The configuration phase}
93 \begin{itemize}
94 \item It is the first thing you have to declare in the document
95 \item The general code is \verb!\usetheme[.. options ..]{TorinoTh}!
96 \item An example is:
97 \begin{verbatim}
98 \documentclass{beamer}
99 \usetheme[language=english,
100 titlepagelogo=logopolito,
101 bullet=circle,
102 pageofpages=of,
103 titleline=true,
104 color=blue
105 ]{TorinoTh}
106 \end{verbatim}
107 \end{itemize}
108 \end{frame}
109
110 \begin{tframe}{Some general options}
111 \begin{itemize}
112 \item The \highlight{pageofpages} option defines the string between the current
113 page number and the total page count
114 \begin{itemize}
115 \item the default is \emph{of}
116 \end{itemize}
117 \item If the \highlight{titleline} option is set to \emph{true}, a horizontal line
118 is drawn below the title
119 \begin{itemize}
120 \item the default is \emph{true}; use \emph{false} to disable
121 \end{itemize}
122 \item The \highlight{notshowauthor} option set to \emph{true} allows you to not show the name of the author in the footer
123 \begin{itemize}
124 \item the default is \emph{false}
125 \end{itemize}
126 \item The \highlight{titlepagelogo} is the name of the principal logo: it must be a .jpg, .pdf, .png picture
127 \begin{itemize}
128 \item to include the logo of your University, follow the procedure explained in the following slide
129 \end{itemize}
130 \end{itemize}
131 \end{tframe}
132
133 \begin{tframe}{How insert a new logo}
134 There are several ways to do it (for people highly capable in \LaTeX\, this is not a problem), but I suggest this method:
135 \begin{itemize}
136 \item download from my page the .zip file and extract it
137 \item copy your logo into the directory of the package
138 \item install the package in your personal tree following the guide reported in slide \ref{slide-guide-installation}
139 \end{itemize}
140 \label{slide-rule-installation}
141 \end{tframe}
142
143 \begin{frame}[t,fragile]{Other options: avaiable bullets}
144 \begin{itemize}
145 \item The \highlight{bullet} option can be used to choose the symbol used in the bullet lists
146 \begin{itemize}
147 \item \verb!square!: a filled square
148 ({\usebeamercolor[fg]{item}\tiny\raise0.2ex\hbox{$\blacksquare$}}) for
149 first and third level items, an empty square
150 ({\usebeamercolor[fg]{item}\tiny\raise0.2ex\hbox{$\square$}}) for
151 second level items
152 \item \verb!diamond!: a filled diamond
153 ({\usebeamercolor[fg]{item}\tiny\raise0.2ex\hbox{$\blacklozenge$}}) for
154 first and third level items, an empty diamond
155 ({\usebeamercolor[fg]{item}\tiny\raise0.2ex\hbox{$\lozenge$}}) for
156 second level items
157 \item \verb!triangle!: a filled triangle
158 ({\usebeamercolor[fg]{item}\tiny\raise0.2ex\hbox{$\blacktriangleright$}}) for
159 first and third level items, an empty triangle
160 ({\usebeamercolor[fg]{item}\tiny\raise0.2ex\hbox{$\vartriangleright$}}) for
161 second level items
162 \item \verb!circle!: a filled circle ({\usebeamercolor[fg]{item}$\bullet$})
163 for first and third level items, an empty circle
164 ({\usebeamercolor[fg]{item}$\circ$}) for second level items
165 \item The default value is \verb!circle!
166 \end{itemize}
167 \end{itemize}
168 \end{frame}
169
170 \begin{frame}[t,fragile]{Languages}
171 \begin{itemize}
172 \item All languages can be supported, but the two main ones are:
173 \begin{itemize}
174 \item english
175 \item italian
176 \end{itemize}
177 \item The choice of one of the main languages implies that in the titlepage, date and labels (Supervisor, Candidate, Relatore, Candidato) are shown with the proper language in an automatic way
178 \item To set the italian language, for example, use in the configuration phase:
179 \verb!language=italian!; the name should be the one used by the package babel or by \verb!\setmainfont! with \XeLaTeX
180 \item If the language selected is not one of the two main languages, then labels in the titlepage should be introduced by the user (see the example in the next frame)
181 \end{itemize}
182 \end{frame}
183
184 \begin{frame}[t,fragile]{Languages (II)}
185 \begin{itemize}
186 \item Example with spanish language:
187 \begin{verbatim}
188 \usetheme[language=spanish,...]{TorinoTh}
189 \setrellabel{Relator Tesis}
190 \setcandidatelabel{Candidato}
191 \setassistentsupervisorlabel{Co Tesis}
192 \setsubject{Tesis}
193 \end{verbatim}
194 \item Commands illustrated are mandatory when \highlight{not using} a main language
195 \item If you have already set a language and you change, it may happen that, the first time you compile, this error occurs: \begin{flushleft}
196 \highlight{! Package babel Error: You haven't loaded the option -language- yet}
197 \end{flushleft}
198 do not be afraid and compile a second time: it will work!!
199 \end{itemize}
200 \end{frame}
201
202 \begin{frame}[t,fragile]{Coding}
203 To avoid forcing an user to use the \verb!utf8x! coding, this release fix the bug by introducing the \highlight{coding} option; possible choices you can exploit are:
204 \begin{itemize}
205 \item \verb!coding=utf8x! (default)
206 \item \verb!coding=utf8!
207 \item \verb!coding=latin1!
208 \end{itemize}
209 An important advise: the program does not check which string you put in input; it is your matter select the right coding to satisfy requeriments of your system.
210 \end{frame}
211
212 \begin{frame}[t,fragile]{Second logo}
213 \begin{itemize}
214 \item If, for some reasons, someone needs a second logo (a thesis performed in another institute for example) an option allows you to put it in the title page
215 \item When \highlight{secondlogo} is set to \emph{true}, you have to use the command \verb!\titlepagesecondlogo{name-logo}!: otherwise an error occurs
216 \item As the main logo, the second logo must be a .jpg, .pdf, .png picture and you can insert it following the same rules explained in slide \ref{slide-rule-installation}
217 \end{itemize}
218 \end{frame}
219
220 \begin{frame}[fragile]{Third logo}
221 \begin{itemize}
222 \item Eventually, if you need a third logo you can exploit the possibility of insert it by setting the option \highlight{thirdlogo} to \emph{true}
223 \begin{itemize}
224 \item the default is \emph{false}
225 \end{itemize}
226 \item You have to insert the picture as described for the second logo and use the command \verb!\titlepagethirdlogo{name-logo}!
227 to put the logo in the title page
228 \item Of course, you can use this option if, and only if, the \highlight{secondlogo} is set to \emph{true}
229 \item When there are three logos please use, as reference for the dimensions, the picture \alert{logopolito}: in this way they will be aligned
230 \end{itemize}
231 \end{frame}
232
233 \begin{frame}[t,fragile]{Second candidate}
234 \begin{itemize}
235 \item It is possible that there are two candidates: the package manage this fact easily
236 \begin{itemize}
237 \item the first candidate is also the author
238 \item the second candidate can be inserted with the command \verb!\secondcandidate{name-surname}! when the option \highlight{secondcandidate} is set to \emph{true}
239 \end{itemize}
240 \item Of course, when there are two candidates the label \emph{Candidate} becomes \emph{Candidates} and \emph{Candidato} become \emph{Candidati}
241 \item With two candidates, the footer changes and the author is not shown automatically (the reason is simply: show two authors plus the title is too much long, making the footer too big)
242 \end{itemize}
243 \end{frame}
244
245 \begin{frame}[t,fragile]{Supervisor and Assistant Supervisor}\label{secondrel}
246 \begin{itemize}
247 \item To insert the supervisor you just have to use the command \verb!\rel{name-surname}!
248 \item There is also the possibility of report the Assistant supervisor:
249 \begin{itemize}
250 \item set the option \highlight{assistantsupervisor} to \emph{true} (default is \emph{false})
251 \item use the command \verb!\assistantsupervisor{name-surname}!
252 \end{itemize}
253 \item Labels are set accordingly to the language used
254 \end{itemize}
255 \end{frame}
256
257 \begin{frame}[t,fragile]{Second Supervisor and Assistant Supervisor}
258 There is also the possibility of insert more than one supervisor and assistant supervisor:
259 \begin{itemize}
260 \item set the options:
261 \begin{itemize}
262 \item \highlight{secondsupervisor} to true (default is false);
263 \item \highlight{secondassistantsupervisor} to true (default is false);
264 \end{itemize}
265 \item name can be inserted thanks to:
266 \begin{itemize}
267 \item \verb!\secondsupervisor! command;
268 \item \verb!\secondassistantsupervisor! command; this one can be exploited just when the \highlight{assistantsupervisor} option is set to true;
269 \end{itemize}
270 \item as usual, labels are set accordingly to the language used
271 \end{itemize}
272 \end{frame}
273
274 \begin{frame}[t,fragile]{Advantages and Disadvantages}
275 Sometimes it is useful highlight advantages and disadvantages of a given argument: instead of list them by using the standard bullet, there is the possibility of exploit two new environments (\emph{adv} and \emph{disadv}). Usage:
276 \begin{columns}
277 \begin{column}{0.3\paperwidth}
278 \begin{verbatim}
279 \begin{adv}
280 \item
281 \end{adv}
282 \end{verbatim}
283 \end{column}
284 \begin{column}{0.3\paperwidth}
285 \begin{verbatim}
286 \begin{disadv}
287 \item
288 \end{disadv}
289 \end{verbatim}
290 \end{column}
291 \end{columns}
292 \bigskip
293 In the following slide there is an example.
294 \end{frame}
295
296 \begin{tframe}{Why use Beamer2Thesis}
297 Advantages:
298 \begin{adv}
299 \item Simply to install
300 \item Easy to customize
301 \item Possibility to exploit several features
302 \end{adv}
303 Disadvantages:
304 \begin{disadv}
305 \item Difficulty with long titles
306 \item If you find some others, please contact me
307 \end{disadv}
308
309 \end{tframe}
310
311 \begin{frame}[t,fragile]{Finally: colors}
312 \begin{itemize}
313 \item There are three possible choices:
314 \begin{itemize}
315 \item blue
316 \item green
317 \item red
318 \end{itemize}
319 \item When the color is chosen setting the option \highlight{color} to one of the list above, consequently headers, footers, title page, bullet and highlightings are set accordingly
320 \item For example: \verb!color=green!
321 \end{itemize}
322 \end{frame}
323
324 \begin{tframe}{\XeLaTeX}
325 Thanks to a suggestion and the precious help of Nicola Tuveri, Beamer2Thesis supports \XeTeX\, and \XeLaTeX\, automatically.
326 You can choose your favourite font to further customize the presentation. I report some examples:\\
327 \fontspec[Ligatures={Common, Historical}]{Linux Libertine O Italic}
328 \fontsize{12pt}{18pt}\selectfont This is quite strange!
329 \fontspec{TeX Gyre Pagella}
330 \selectfont{Also this is strange}\\
331 \fontspec[ SizeFeatures={
332 {Size={-10}, Font=TeX Gyre Bonum Italic, Color=AA0000},
333 {Size={10-14}, Color=00AA00},
334 {Size={14-}, Color=0000FA}} ]{TeX Gyre Chorus}
335 \selectfont{How to customize fonts?}\par
336 \begin{itemize}
337 \item {\LARGE Word}
338 \item Word
339 \item {\tiny World}
340 \end{itemize}
341 \end{tframe}
342
343 \begin{frame}[t,fragile]{\XeLaTeX\,: code}
344 To realize the examples reported in the previous slide, the code is:
345 \scriptsize{
346 \begin{verbatim}
347 \fontspec[Ligatures={Common, Historical}]{Linux Libertine O Italic}
348 \fontsize{12pt}{18pt}\selectfont This is quite strange!
349 \fontspec{TeX Gyre Pagella}
350 \selectfont{Also this is strange}\\
351 \fontspec{TeX Gyre Pagella}
352 \selectfont{How to customize fonts?}\par
353 \fontspec[ SizeFeatures={
354 {Size={-10}, Font=TeX Gyre Bonum Italic, Color=AA0000},
355 {Size={10-14}, Color=00AA00},
356 {Size={14-}, Color=0000FA}}]{TeX Gyre Chorus}
357 \begin{itemize}
358 \item {\LARGE Word}
359 \item Word
360 \item {\tiny World}
361 \end{itemize}
362 \end{verbatim}
363 }
364 \end{frame}
365
366 \begin{tframe}{Block}
367 Beamer allows to use the \emph{block} environment: it is very useful in some applications. For example:
368 \begin{block}<1->{Why use Beamer2Thesis? Advantages}
369 \begin{adv}
370 \item Simply to install
371 \item Easy to customize
372 \item Possibility to exploit several features
373 \end{adv}
374 \end{block}
375 \begin{block}<2->{Why use Beamer2Thesis? Disadvantages}
376 \begin{disadv}
377 \item Difficulty with long titles
378 \item If you find some others, please contact me
379 \end{disadv}
380 \end{block}
381 \end{tframe}
382
383 \begin{frame}[t,fragile]{Block: code}
384 The previous slide has been realized as:
385 \small{\begin{verbatim}
386 \begin{block}<1->{Why use Beamer2Thesis? Advantages}
387 \begin{adv}
388 \item Simply to install
389 \item Easy to customize
390 \item Possibility to exploit several features
391 \end{adv}
392 \end{block}
393 \begin{block}<2->{Why use Beamer2Thesis? Disadvantages}
394 \begin{disadv}
395 \item Difficulty with long titles
396 \item If you find some others, please contact me
397 \end{disadv}
398 \end{block}
399 \end{verbatim}}
400 \end{frame}
401
402 \begin{frame}[t,fragile]{Block: code (II)}
403 More in general, Beamer provide three \emph{block} environments:
404 \begin{itemize}
405 \item \highlight{block}
406 \item \highlight{alertblock}
407 \item \highlight{exampleblock}
408 \end{itemize}
409 To have more details, not only on this argument, I suggest to read the \href{http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf}{beameruserguide}.
410 \end{frame}