-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtraining.tex
113 lines (86 loc) · 2.81 KB
/
training.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
% ----------------------------------------------------------------------
% Packages
% ----------------------------------------------------------------------
\usepackage[T1]{fontenc}
\usepackage{babel,booktabs,csquotes,lmodern,tikz,verbatim}
% ----------------------------------------------------------------------
% ----------------------------------------------------------------------
% New commands for this document
% ----------------------------------------------------------------------
\newcommand*{\cls}[1]{\textsf{#1}}
\newcommand*{\cs}[1]{\texttt{\char`\\#1}}
\newcommand*{\marg}[1]{\texttt{\char`\{#1\char`\}}}
\newcommand*{\meta}[1]{\ensuremath{\langle}\emph{#1}\ensuremath{\rangle}}
\newcommand*{\oarg}[1]{\texttt{[#1]}}
\newcommand*{\pkg}[1]{\textsf{#1}}
\renewcommand*{\LaTeX}{LaTeX}
\renewcommand*{\LaTeXe}{LaTeX2e}
\renewcommand*{\TeX}{TeX}
\newcommand*{\BibTeX}{BibTeX}
\newcommand*{\LuaTeX}{LuaTeX}
\newcommand*{\pdfTeX}{pdfTeX}
\newcommand*{\XeTeX}{XeTeX}
% ----------------------------------------------------------------------
% ----------------------------------------------------------------------
% Meta-data
% ----------------------------------------------------------------------
\title{Intermediate \LaTeX{}}
\subtitle{\enquote{Beyond the basics}}
\author{UK-TUG Volunteers}
\date{}
% ----------------------------------------------------------------------
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\mode<article>{\maketitle}
\mode<presentation>{%
\begin{frame}{Outline}
\tableofcontents
\end{frame}
}
\section{Mathematics with AMSMath}
\section{Font selection}
\begin{frame}[fragile]{Font selection}
\begin{block}{\enquote{Classical}}
\begin{verbatim}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{inconsolata}
\end{verbatim}
\end{block}
\vspace{-\baselineskip}
\begin{block}<2->{\XeTeX{} and \LuaTeX{}}
\begin{verbatim}
\usepackage{fontspec}
\setmainfont{Latin Modern}
\setsansfont{Latin Modern Sans}
\setmonofont[Scale = MatchLowercase]
{Inconsolata}
\end{verbatim}
\end{block}
\end{frame}
\begin{frame}[fragile]{Unicode mathematics}
\begin{itemize}
\item Math fonts are very complex
\item There are now several Unicode math fonts:\\
Cambria Math, XITS, Latin Modern Math, \ldots
\item Good demo of glyph coverage:\\
\texttt{texdoc unimath-symbols}
\end{itemize}
\begin{block}<2->{Matching fonts}
\begin{verbatim}
\usepackage{fontspec}
\setmainfont{TeX Gyre Pagella}
\usepackage{unicode-math}
\setmathfont{texgyrepagella-math.otf}
\end{verbatim}
\end{block}
\end{frame}
\section{Ti\protect\emph{k}z: drawing in \LaTeX{}}
\section{Plotting scientific data}
\section{Using databases: Mail merge and beyond}
\section{Bibliographies with \protect\pkg{biblatex}}
\section{Presentations}
\section{Indexing}
\end{document}