Section
New section
LATEX/Beamer slides template
for the course
CFD with OpenSource Software
H
akan Nilsson
Applied Mechanics/Fluid Dynamics,
Chalmers University of Technology,
Gothenburg, Sweden
2012-08-27
H
akan Nilsson
Beamer slides template
2012-08-27
1 / 16
Section
New section
Subsection
Get the files and unpack
Download the file named beamerSlidesTemplate.tgz
Do:
tar xzf beamerSlidesTemplate.tgz
rm beamerSlidesTemplate.tgz
cd beamerSlidesTemplate
H
akan Nilsson
Beamer slides template
2012-08-27
2 / 16
Section
New section
Subsection
About LATEX
A LATEXdocument is created by editing a text file with LATEXcommands.
To transform it to a nice graphical representation it must be compiled,
using:
pdflatex slides
(where your text file is named slides.tex)
View the result using Acroread or Evince:
acroread slides.pdf&
evince slides.pdf&
Have a look inside slides.tex to see how things are coded.
If you do modifications and re-compile, type CTRL-r in Acroread or Evince.
Re-compile twice to make references update (page numbers etc.)
H
akan Nilsson
Beamer slides template
2012-08-27
3 / 16
Section
New section
Subsection
Sections and subsections
The slides are organized in sections, which are shown at the top of the
slide. This section is named Section. It is valid until the next \section
command.
The sections are organized in subsections, which are shown at the top of
the slide. This subsections is named Subsection. It is valid until the next
\subsection command.
Have a look inside slides.tex to see where the next section and
subsection are located.
H
akan Nilsson
Beamer slides template
2012-08-27
4 / 16
Section
New section
Subsection
How to make a list
This is the first point
This is the second point
H
akan Nilsson
Beamer slides template
2012-08-27
5 / 16
Section
New section
Subsection
How to write verbatim
I typically use verbatim for computer code and Linux commands
Everything within begin{verbatim} and end{verbatim}
is written as it is written in the tex-file,
without reformatting.
There is a way to to this also with in-line text. Here I have used +
signs to start and end the verbatim, but you can use other markers.
H
akan Nilsson
Beamer slides template
2012-08-27
6 / 16
Section
New section
Subsection
How to change font size etc.
tiny
scriptsize
footnotesize
small
normalsize
large
Large
LARGE
huge
Huge
Bold face
emphasized text
H
akan Nilsson
Beamer slides template
2012-08-27
7 / 16
Section
New section
Subsection
How to write in two columns using minipages
Column 1, 39% of the tex- Column 2, 59% of the textwidth, top-aligned
twidth, top-aligned
Some text
Column 1, 39% of the texColumn 2, 59% of the textwidth, centertwidth, center-aligned
aligned
Some text
Column 1, 39% of the textwidth, bottom-aligned
Some text
H
akan Nilsson
Column 2, 59% of the textwidth, bottomaligned
Beamer slides template
2012-08-27
8 / 16
Section
New section
Subsection
How to write in two columns using columns
4cm column
H
akan Nilsson
6cm column
Beamer slides template
2012-08-27
9 / 16
Section
New section
New subsection
How to comment out parts of the LATEXcode
Parts of the LATEXcode can be commented by:
\begin{comment}
commented LaTeX code
\end{comment}
This requires that the frame is defined as [fragile], as in our case.
H
akan Nilsson
Beamer slides template
2012-08-27
10 / 16
Section
New section
New subsection
How to write a centered table
Rank
0
1
2
H
akan Nilsson
Common name
Scalar
Vector
Tensor
Basic name
scalar
vector
tensor
Beamer slides template
Access function
x(), y(), z()
xx(), xy(), xz(), ...
2012-08-27
11 / 16
Section
New section
New subsection
How to write equations
Write equations as eqnarray without numbering:
t =
a1 k
max(a1 , SF2 )
or:
t =
Or write t =
H
akan Nilsson
a1 k
max(a1 ,SF2 )
a1 k
max(a1 , SF2 )
in line with text.
Beamer slides template
2012-08-27
12 / 16
Section
New section
First subsection in new section
How to add figures
http://openfoamwiki.net/index.php/Sig Turbomachinery
ERCOFTAC
Centrifugal Pump (ECP)
Swirl Generator (TSG)
H
akan Nilsson
Beamer slides template
Timisoara
Channel Pump
2012-08-27
13 / 16
Section
New section
First subsection in new section
How to add a gif movie (can be tricky!)
Click to open in web browser
Works in Acroread and Evince
H
akan Nilsson
Beamer slides template
2012-08-27
14 / 16
Section
New section
First subsection in new section
How to add a flip movie (can be tricky!)
Plays automatically in Acroread, but not Evince
H
akan Nilsson
Beamer slides template
2012-08-27
15 / 16
Section
New section
First subsection in new section
Thats it
Please give me feedback on what to modify or add!
Good luck!
H
akan Nilsson
Beamer slides template
2012-08-27
16 / 16