-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-slides.tex
43 lines (36 loc) · 965 Bytes
/
example-slides.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
\documentclass[aspectratio=169]{beamer}
\usecolortheme[dark]{zenburn}
\title{An example presentation}
\author{Keith F. Prussing, Ph.D.}
\date{\today}
\usepackage{mwe}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\begin{frame}
\frametitle{A first frame}
\blindtext
\end{frame}
\begin{frame}
\frametitle{An image}
\begin{figure}
\includegraphics[height=0.8\textheight]{example-image-golden}
\caption{Inclusion of an example image}
\end{figure}
\end{frame}
\begin{frame}[fragile]
\begin{lstlisting}[language=Fortran]
program hello
! A simple example program
use, intrinsic :: iso_fortran_env, only: output_unit, &
input_unit
implicit none
character(len=1024) :: who
write(output_unit, *) "Who is this?"
read(input_unit, *) who
write(output_unit, *) "Hello ", trim(who)
end program hello
\end{lstlisting}
\end{frame}
\end{document}