/
conventions.tex
124 lines (98 loc) · 2.53 KB
/
conventions.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
\documentclass[english,serif,mathserif,xcolor=pdftex,dvipsnames,table]{beamer}
\usetheme[informal]{s3it}
\usepackage{s3it}
\title[Introduction]{%
Typographical conventions used in the slides
}
\author[S3IT]{%
S3IT: Services and Support for Science IT, \\
University of Zurich
}
\date{June~23--24, 2014}
\begin{document}
% title frame
\maketitle
\begin{frame}
\frametitle{Typographical conventions, I}
The orange color is used for
\href{http://www.gc3.uzh.ch/}{clickable
links}; this should make it easy to download sample files, etc.
\+
Other \hl{colors} and \HL{backgrounds} are used for highlighting
text in slides.
\end{frame}
\begin{frame}[fragile]
\frametitle{Typographical conventions, II}
\begin{columns}[t]
\begin{column}{0.5\textwidth}
\begin{lstlisting}
# This is how Python
# code looks like
def hello(name):
print ("Hello, " + name)
\end{lstlisting}
\end{column}
\begin{column}{0.5\textwidth}
\raggedleft Commentary text appears on the right.
\end{column}
\end{columns}
\end{frame}
\begin{frame}[fragile]
\frametitle{Typographical conventions, III}
\begin{columns}[t]
\begin{column}{0.5\textwidth}
\begin{lstlisting}
>>> ~\HL{print 2}~
2
\end{lstlisting}
\end{column}
\begin{column}{0.5\textwidth}
\raggedleft
This is an example of using the Python interactive shell.
\+
You should only type the highlighted part; the rest is
provided by the Python interpreter.
\end{column}
\end{columns}
\end{frame}
\begin{frame}[fragile]
\frametitle{Typographical conventions, IV}
\begin{columns}[t]
\begin{column}{0.5\textwidth}
\begin{lstlisting}
>>> print 2
~\HL{2}~
\end{lstlisting}
\end{column}
\begin{column}{0.5\textwidth}
\raggedleft
This is an example of using the Python interactive shell.
\+
The highlighted part is what the Python intepreter should
reply to your command.
\end{column}
\end{columns}
\end{frame}
\begin{frame}[fragile]
\frametitle{Typographical conventions, V}
\begin{columns}[t]
\begin{column}{0.5\textwidth}
\begin{lstlisting}
>>> print """A very
... ~\HL{long message."""}~
\end{lstlisting}
\end{column}
\begin{column}{0.5\textwidth}
\raggedleft
This is an example of using the Python interactive shell.
\+
The triple dots signal continuation lines,
for when a Python command extends over multiple lines.
\end{column}
\end{columns}
\end{frame}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: