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 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356
|
\documentclass{seminar}
\usepackage{times}
\usepackage{example}
\newcommand{\Cmd}[1]{{\ttfamily\upshape\char'134#1}}
\pagestyle{aisections}
\def\Framedefault{ai}
\blackandwhite
\newcommand{\fn}[1]{\hbox\texttt{#1}}
\begin{document}
\begin{Slide}{Today's Programme}
\begin{enumerate}
\item Basics; inputting text; sections; lists
\begin{itemize}
\item Exercise: first document
\end{itemize}
\item Carrying on; mathematics
\begin{itemize}
\item Exercise: mathematics and special symbols
\end{itemize}
\item More tools: titles, figures, tables
\begin{itemize}
\item Exercise: tables and titles
\end{itemize}
\item Ending up: pointers to other facilities
\begin{itemize}
\item Exercise: own work
\end{itemize}
\end{enumerate}
\end{Slide}
\begin{slide}
\scriptsize
\begin{verbatim}
% WARNING! DO NOT TYPE ANY OF THE FOLLOWING 10 CHARACTERS
% EXCEPT AS DIRECTED: & $ # % _ { } ^ ~ \
\documentclass[11pt]{article}% YOUR INPUT FILE MUST CONTAIN
\begin{document} % THESE TWO LINES PLUS
% THE \end COMMAND AT THE END
\section{Simple Text} % THIS COMMAND MAKES A SECTION TITLE.
Words are separated by one or more spaces. Paragraphs are
separated by one or more blank lines. The output is not affected
by adding extra spaces or extra blank lines to the input file.
Double quotes are typed like this: ``quoted text''.
Single quotes are typed like this: `single-quoted text'.
Long dashes are typed as three dash characters---like this.
Italic text is typed like this: \emph{this is italic text}.
Bold text is typed like this: \textbf{this is bold text}.
\end{verbatim}
\end{slide}
\begin{slide}
\scriptsize
\begin{verbatim}
\subsection{A Warning or Two} % THIS MAKES A SUBSECTION TITLE.
If you get too much space after a mid-sentence period---abbreviations
like etc.\ are the common culprits---then type a backslash followed by
a space after the period, as in this sentence.
Remember, don't type the 10 special characters (such as dollar sign and
backslash) except as directed! The following seven are printed by
typing a backslash in front of them: \$ \& \# \% \_ \{ and \}.
The manual tells how to make other symbols.
\end{document} % THE INPUT FILE ENDS LIKE THIS
\end{verbatim}
\end{slide}
\begin{Slide}{Document classes}
\begin{description}
\item[\texttt{article}] intended for short documents and articles for
publication.
\item[\texttt{report}] intended for longer technical documents.
\item[\texttt{book}] intended as a basis for book publication.
\item[\texttt{letter}] intended for producing personal letters.
addresses, date, signature, etc.
\end{description}
\end{Slide}
\begin{slide}
These standard classes can be modified by a number of
\emph{options}. They appear in square brackets after the
\verb|\documentclass| command.
\begin{description}
\item[\texttt{11pt}] prints the document using eleven-point type for the
running text rather that the ten-point type normally used.
\item[\texttt{12pt}] prints the document using twelve-point type for the
running text rather than the ten-point type normally used.
\item[\texttt{twoside}] causes documents in the article or report styles to be
formatted for printing on both sides of the paper. This is the default for the
book style.
\item[\texttt{twocolumn}] produces two column on each page.
\item[\texttt{a4paper}] sets the page size for A4 paper
\end{description}
\end{slide}
\begin{Slide}{Quotes}
This is normal text, followed by a quotation:
\begin{quote}
The buck stops here.
I am not a crook.
\end{quote}
\begin{verbatim}
This is normal text, followed by a quotation:
\begin{quote}
The buck stops here.
I am not a crook.
\end{quote}
\end{verbatim}
\end{Slide}
\begin{Slide}{Lists}
\begin{enumerate}
\item Cats
\item Dogs
\begin{enumerate}
\item Alsatians
\item Poodles
\end{enumerate}
\end{enumerate}
\begin{itemize}
\item Check your sources
\item But published anyway
\item And probably be damned
\end{itemize}
\end{Slide}
\begin{slide}
\begin{verbatim}
\begin{enumerate}
\item Cats
\item Dogs
\begin{enumerate}
\item Alsatians
\item Poodles
\end{enumerate}
\end{enumerate}
\begin{itemize}
\item Check your sources
\item But published anyway
\item And probably be damned
\end{itemize}
\end{verbatim}
\end{slide}
\begin{Slide}{Fonts}
\footnotesize
\begin{tabular}{@{}lll@{}}
\textit{Command} & \emph{or} & \textit{Effect} \\[4pt]
\Cmd{textrm}\verb|{...}| & \verb|{|\Cmd{rmfamily}\verb|...}| &
Text is set in roman family \\
\Cmd{textsf}\verb|{...}| & \verb|{|\Cmd{sffamily}\verb|...}| &
Text is set in \textsf{sans serif} family \\
\Cmd{texttt}\verb|{...}| & \verb|{|\Cmd{ttfamily}\verb|...}| &
Text is set in \texttt{typewriter} family
\\[3pt]
\Cmd{textmd}\verb|{...}| & \verb|{|\Cmd{mdseries}\verb|...}| &
Text is set in medium series \\
\Cmd{textbf}\verb|{...}| & \verb|{|\Cmd{bfseries}\verb|...}| &
Text is set in \textbf{bold} series \\[3pt]
\Cmd{textup}\verb|{...}| & \verb|{|\Cmd{upshape}\verb|...}| &
Text is set in upright shape \\
\Cmd{textit}\verb|{...}| & \verb|{|\Cmd{itshape}\verb|...}| &
Text is set in \textit{italic} shape \\
\Cmd{textsl}\verb|{...}| & \verb|{|\Cmd{slshape}\verb|...}| &
Text is set in \textsl{slanted} shape \\
\Cmd{textsc}\verb|{...}| & \verb|{|\Cmd{scshape}\verb|...}| &
Text is set in \textsc{small caps} shape
\\[3pt]
\Cmd{emph}\verb|{...}| & \verb|{|\Cmd{em}\verb|...}| &
Text is set \emph{emphasized} \\[3pt]
\Cmd{textnormal}\verb|{..}| & \verb|{|\Cmd{normalfont}\verb|..}| &
Text is set in the document font
\end{tabular}
\end{Slide}
\begin{Slide}{Accents}
\begin{tabbing}
\t{oo} \= \verb|\t{oo}|~~~ \=
\t{oo} \= \verb|\t{oo}|~~~ \=
\t{oo} \= \verb|\t{oo}|~~~ \=
\t{oo} \= \verb|\t{oo}|~~~ \=
\t{oo} \= \verb|\t{oo}|~~~ \=
\t{oo} \= \kill
\a`{o} \> \verb|\`{o}| \> \~{o} \> \verb|\~{o}| \> \v{o} \> \verb|\v{o}| \>
\c{o} \> \verb|\c{o}| \> \a'{o} \> \verb|\'{o}| \\
\a={o} \> \verb|\={o}| \> \H{o} \> \verb|\H{o}| \> \d{o} \> \verb|\d{o}| \>
\^{o} \> \verb|\^{o}| \> \.{o} \> \verb|\.{o}| \\
\t{oo} \> \verb|\t{oo}| \> \b{o} \> \verb|\b{o}| \\ \"{o} \> \verb|\"{o}| \>
\u{o} \> \verb|\u{o}| \\
\end{tabbing}
\end{Slide}
\begin{Slide}{Symbols}
\begin{tabbing}
\LaTeX~\= \verb|\copyright|~~~~ \= \LaTeX~\= \verb|\copyright|~~~~ \=
\LaTeX~\= \kill
\dag \> \verb|\dag| \> \S \> \verb|\S| \>
\copyright \> \verb|\copyright| \\
\ddag \> \verb|\ddag| \> \P \> \verb|\P| \>
\pounds \> \verb|\pounds| \\
\oe \> \verb|\oe| \> \OE \> \verb|\OE| \>
\ae \> \verb|\AE| \\
\AE \> \verb|\AE| \> \aa \> \verb|\aa| \>
\AA \> \verb|\AA| \\
\o \> \verb|\o| \> \O \> \verb|\O| \>
\l \> \verb|\l| \\
\L \> \verb|\E| \> \ss \> \verb|\ss| \>
?` \> \verb|?`| \\
!` \> \verb|!`| \> \ldots \> \verb|\ldots| \>
\LaTeX \> \verb|\LaTeX| \\
\end{tabbing}
\end{Slide}
\begin{slide}
\begin{tabular}{ll}
$a+b=c+d=xy=w/z$ & \verb|a+b=c+d=xy=w/z| \\
$\vec{x}\cdot\vec{y}=0 \mbox{ if and only if } \vec{x}\perp\vec{y}$ &
\verb|\vec{x}\cdot\vec{y}=0 | \\
&\verb|\mbox{ if and only if } | \\
& \verb|\vec{x}\perp\vec{y}| \\
$\frac{\partial}{\partial y}f(x y)=0 $ &
\verb|\frac{\partial}{\partial y}f(x y)=0 | \\
$y^4=2x+z_3 $ & \verb|y^4=2x+z_3 | \\
$z=3\sqrt{\sqrt y^2+3y^5}+5$ & \verb|z=3\sqrt{\sqrt y^2+3y^5}+5| \\
\end{tabular}
\end{slide}
\begin{Slide}{Tabbing}
\begin{tabbing}
Income \=Expenditure \= \kill
Income \>Expenditure \>Result \\
20s 0d \>19s 11d \>Happiness \\
20s 0d \>20s 1d \>Misery \\
\end{tabbing}
\begin{tabular}{lrr}
\itshape Name & \itshape Age &\itshape Height \\
Sebastian & 45 & 195cm\\
Mathew & 1 & 68cm\\
\end{tabular}
\end{Slide}
\begin{slide}
\begin{verbatim}
\begin{tabbing}
Income \=Expenditure \= \kill
Income \>Expenditure \>Result \\
20s 0d \>19s 11d \>Happiness \\
20s 0d \>20s 1d \>Misery \\
\end{tabbing}
\begin{tabular}{lrr}
\itshape Name & \itshape Age &\itshape Height \\
Sebastian & 45 & 195cm\\
Mathew & 1 & 68cm\\
\end{tabular}
\end{verbatim}
\end{slide}
\begin{Slide}{Tabular (2)}
\begin{tabular}{|l|p{1in}|r|}
\hline
\itshape Group &\itshape Type &Sherds\\
\hline
Groups 1--9 &Grey wares&218\\
Groups 40--44 &Black (mostly
`black burnished') wares&116\\
Groups 61--67 &Buff-red-orange
wares & 46\\
Groups 81--85 &Colour-coated fine
wares & 67\\
Groups 91--2, 93--4&Mortaria and
miscellaneous & 35\\
Group 96 &Samian & 56\\
\hline
&&538\\
\hline
\end{tabular}
\end{Slide}
\begin{slide}
\begin{verbatim}
\begin{tabular}{|l|p{1in}|r|}
\hline
\itshape Group &\itshape Type &Sherds\\ \hline
Groups 1--9 &Grey wares&218\\
Groups 40--44 &Black (mostly `black burnished')
wares&116\\
Groups 61--67 &Buff-red-orange wares & 46\\
Groups 81--85 &Colour-coated fine wares & 67\\
Groups 91--2, 93--4&Mortaria and miscellaneous & 35\\
Group 96 &Samian & 56\\
\hline
&&538\\ \hline
\end{tabular}
\end{verbatim}
\end{slide}
\begin{Slide}{Figures}
\begin{verbatim}
\begin{figure}
\vspace{3in}
\caption{This is for a photograph}
\end{figure}
\end{verbatim}
Figures and tables are automatically numbered, like sections;
just as \verb|\tableofcontents| lists your sections, subsections etc
with their page numbers, \verb|\listoffigures| and
\verb|\listoftables| will list the figures and tables with their captions.
\end{Slide}
\begin{Slide}{Titles}
\begin{verbatim}
\title{Essential \LaTeX}
\author{Jon Warbrick, with additions by David Carlisle, Michel Goosens
and Sebastian Rahtz}
\date{July 1992}
\maketitle
\tableofcontents
\end{verbatim}
\end{Slide}
\begin{Slide}{Letter}
\footnotesize\begin{verbatim}
\documentclass{letter}
\begin{document}
\address{1234 Avenue of the Armadillos \\
Gnu York, G.Y. 56789}
\signature{R. (Ma) Dillo \\ Director of Cuisine}
\begin{letter}{G. Natheniel Picking \\
Acme Exterminators \\ Illinois}
\opening{Dear Nat,}
I'm afraid that the armadillo problem is still with us.
I did everything ... ... and I hope that you can get
rid of the nasty beasts this time.
\closing{Best Regards,}
\cc{Jimmy Carter\\Richard M. Nixon}
\end{letter}
\end{document}
\end{verbatim}
\end{Slide}
\end{document}
|