author | Puneeth Chaganti <punchagan@fossee.in> |
Sun, 06 Feb 2011 17:57:03 +0530 | |
changeset 157 | 3174d4803cd5 |
parent 134 | 73012a0eb878 |
permissions | -rw-r--r-- |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
1 |
\documentclass{beamer} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
2 |
\usepackage[latin1]{inputenc} |
105 | 3 |
\usepackage[T1]{fontenc} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
4 |
\usepackage{fixltx2e} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
5 |
\usepackage{graphicx} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
6 |
\usepackage{longtable} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
7 |
\usepackage{float} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
8 |
\usepackage{wrapfig} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
9 |
\usepackage{soul} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
10 |
\usepackage{textcomp} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
11 |
\usepackage{marvosym} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
12 |
\usepackage{wasysym} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
13 |
\usepackage{latexsym} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
14 |
\usepackage{amssymb} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
15 |
\usepackage{hyperref} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
16 |
\tolerance=1000 |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
17 |
\usepackage[english]{babel} \usepackage{ae,aecompl} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
18 |
\usepackage{mathpazo,courier,euler} \usepackage[scaled=.95]{helvet} |
105 | 19 |
\usepackage{listings} |
20 |
\lstset{ |
|
21 |
language=TeX, |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
22 |
basicstyle=\ttfamily\bfseries, |
105 | 23 |
commentstyle=\ttfamily\color{blue}, |
24 |
stringstyle=\ttfamily\color{orange}, |
|
25 |
showstringspaces=false, |
|
26 |
breaklines=true, |
|
27 |
postbreak = \space\dots |
|
28 |
} |
|
29 |
||
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
30 |
\newcommand{\typ}[1]{\lstinline{#1}} |
105 | 31 |
|
32 |
\mode<presentation> |
|
33 |
{ |
|
34 |
\usetheme{Warsaw} |
|
35 |
\useoutertheme{infolines} |
|
36 |
\setbeamercovered{transparent} |
|
37 |
} |
|
38 |
||
39 |
||
40 |
\title{\LaTeX} |
|
41 |
\author[FOSSEE] {FOSSEE} |
|
42 |
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT |
|
43 |
Bombay} |
|
44 |
\date{} |
|
45 |
||
46 |
%% Delete this, if you do not want the table of contents to pop up at |
|
47 |
%% the beginning of each subsection: |
|
48 |
\AtBeginSubsection[] |
|
49 |
{ |
|
50 |
\begin{frame}<beamer> |
|
51 |
\frametitle{Outline} |
|
52 |
\tableofcontents[currentsection,currentsubsection] |
|
53 |
\end{frame} |
|
54 |
} |
|
55 |
||
56 |
\AtBeginSection[] |
|
57 |
{ |
|
58 |
\begin{frame}<beamer> |
|
59 |
\frametitle{Outline} |
|
60 |
\tableofcontents[currentsection,currentsubsection] |
|
61 |
\end{frame} |
|
62 |
} |
|
63 |
||
64 |
\begin{document} |
|
65 |
||
66 |
% Document title |
|
67 |
\begin{frame} |
|
68 |
\maketitle |
|
69 |
\end{frame} |
|
70 |
||
71 |
\section{Introduction} |
|
72 |
||
73 |
\begin{frame} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
74 |
\frametitle{{\LaTeX} - Introduction} |
105 | 75 |
\begin{itemize} |
76 |
\item Typesetting program |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
77 |
\begin{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
78 |
\item What is typesetting? |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
79 |
\end{itemize} |
105 | 80 |
\item Excellently Typeset Documents - specially Math |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
81 |
\item Anything from one page articles to huge books |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
82 |
\item Pronounced \emph{Lah-tech} or \emph{Lay-tech} |
105 | 83 |
\end{itemize} |
84 |
\end{frame} |
|
85 |
||
86 |
\begin{frame} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
87 |
\frametitle{Why \LaTeX?} |
105 | 88 |
\begin{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
89 |
\item Excellent visual quality! |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
90 |
\item Handles the typesetting; Lets you focus on content |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
91 |
\item Makes writing math extremely simple |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
92 |
\item It is a standard -- widely used in Scientific community |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
93 |
\end{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
94 |
\begin{block}{} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
95 |
\[\tilde{N}_{\mathbf{x}}\times \mathbf{r}(\mathbf{x}) f_{1k}(\mathbf{x},t) - \frac{1}{2} \tilde{N} \tilde{N}:\mathbf{BB}^{T}P(\mathbf{x},t) = -m_{k}f_{1k}(\mathbf{x},t) + 2 \mathop{\mathbf{\aa}}_{j=1}^{K} f_{1j}(\mathbf{x},t)m_{j}P_{k|j} \] |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
96 |
\end{block} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
97 |
\end{frame} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
98 |
|
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
99 |
\begin{frame} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
100 |
\frametitle{Course Outline} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
101 |
\begin{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
102 |
\item Look at Sample document - \typ{sample.pdf} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
103 |
\begin{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
104 |
\item Title, Author, Date |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
105 |
\item Abstract |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
106 |
\item Sections \& Subsections |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
107 |
\item Appendix |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
108 |
\item References/Bibliography |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
109 |
\item Tables |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
110 |
\item Figures |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
111 |
\item Math |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
112 |
\end{itemize} |
105 | 113 |
\item The document will be produced by the end of the course. |
114 |
\item First Hour - Basic Structure |
|
115 |
\item Second Hour - Text, Tables, Figures, References |
|
116 |
\item Third Hour - Math, Bibliography, Presentations |
|
117 |
\end{itemize} |
|
118 |
\end{frame} |
|
119 |
||
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
120 |
\begin{frame}[fragile]{{\LaTeX}{is awesome} |
105 | 121 |
\begin{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
122 |
\item {\LaTeX} is a document based mark-up |
105 | 123 |
\item Mark-up --- a system of annotating text, adding extra |
124 |
information to specify structure and presentation of text |
|
125 |
\item Document based markup $\rightarrow$ you don't have to worry |
|
126 |
about each element individually |
|
127 |
\item Allows you to focus on content, rather than appearance. |
|
128 |
\end{itemize} |
|
129 |
\end{frame} |
|
130 |
||
131 |
\begin{frame}[fragile] |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
132 |
\frametitle{Typesetting a minimal document} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
133 |
\begin{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
134 |
\item Write the sample code code into the file \typ{draft.tex}\\ |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
135 |
{\tiny See \typ{hg} rev0 of draft} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
136 |
\item To compile, (in terminal) \\ |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
137 |
\begin{lstlisting}[language=bash] |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
138 |
$ pdflatex draft.tex |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
139 |
\end{lstlisting} %%$ |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
140 |
\item This produces the output file \typ{draft.pdf} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
141 |
\item \alert{Note:} \typ{latex} vs. \typ{pdflatex} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
142 |
\end{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
143 |
\end{frame} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
144 |
|
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
145 |
\begin{frame}[fragile] |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
146 |
\frametitle{Commands \& Environments} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
147 |
\begin{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
148 |
\item {\LaTeX} is case sensitive |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
149 |
\item Commands begin with a \typ{\\} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
150 |
\item Environments have a \typ{\\begin} and \typ{\\end} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
151 |
\item Any content after the \typ{\\end\{document\}} is ignored |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
152 |
\end{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
153 |
\end{frame} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
154 |
|
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
155 |
\newline \\ |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
156 |
\newpage |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
157 |
|
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
158 |
|
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
159 |
\begin{frame}[fragile] |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
160 |
\frametitle{Comments \& Special Characters} |
105 | 161 |
\begin{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
162 |
\item Anything that follows a \typ{\%} symbol till end of the line |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
163 |
is a comment |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
164 |
\item Special characters (\typ{\~ \# \$ \^ \& \_ \{ \}}) are escaped by a |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
165 |
\typ{\\} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
166 |
\item \typ{\\} symbol is inserted using \typ{\\textbackslash} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
167 |
command |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
168 |
\end{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
169 |
\end{frame} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
170 |
|
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
171 |
\begin{frame}[fragile] |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
172 |
\frametitle{Spacing} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
173 |
\begin{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
174 |
\item \typ{\\\\} inserts a new line in the output |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
175 |
\item An empty line marks the beginning of a new paragraph |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
176 |
\item Multiple spaces (or empty lines) are equivalent to a single |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
177 |
space (or empty line) |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
178 |
\end{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
179 |
\end{frame} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
180 |
|
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
181 |
\section{Adding Structure} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
182 |
|
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
183 |
\begin{frame}[fragile] |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
184 |
\frametitle{\typ{documentclass}} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
185 |
\begin{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
186 |
\item Used to select the \emph{class} of our document |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
187 |
\item Some available classes - \typ{article}, \typ{proc}, |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
188 |
\typ{report}, \typ{book}, \typ{slides}, \typ{letter}. |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
189 |
\item For example: |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
190 |
\typ{\\documentclass\[12pt,a4paper,draft\]\{report\}}\\ |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
191 |
The parameters within \typ{\[ \]} are optional. |
105 | 192 |
\begin{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
193 |
\item \typ{12pt} -- sets the font size of main font and others are |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
194 |
relatively, adjusted. \typ{10pt} is the default. |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
195 |
\item \typ{a4paper} -- specify paper size |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
196 |
\item \typ{draft} -- marks hyphenation and justification problems in |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
197 |
typesetting with a square in the margin |
105 | 198 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
199 |
|
105 | 200 |
\end{itemize} |
201 |
\end{frame} |
|
202 |
||
203 |
\begin{frame}[fragile] |
|
204 |
\frametitle{Top Matter} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
205 |
Let's add the title, author's name and the date. |
105 | 206 |
\begin{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
207 |
\item Add title, author and date. |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
208 |
\item Compile. |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
209 |
\item Nothing changes. |
105 | 210 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
211 |
{\tiny See \typ{hg} rev1 of draft.} |
105 | 212 |
\end{frame} |
213 |
||
214 |
\begin{frame}[fragile] |
|
215 |
\frametitle{Top Matter \ldots} |
|
216 |
\begin{itemize} |
|
217 |
\item \lstinline{\maketitle} command inserts the top-matter. |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
218 |
\item Add the command to the document \& compile again. |
105 | 219 |
\item If no date is specified, today's date is automatically |
220 |
inserted. |
|
221 |
\end{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
222 |
\tiny{See \typ{hg} rev2 of draft.} |
105 | 223 |
\end{frame} |
224 |
||
225 |
||
226 |
\begin{frame}[fragile] |
|
227 |
\frametitle{Abstract} |
|
228 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
229 |
\item \typ{\\abstract} environment inserts abstract. |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
230 |
\item Place it at the location where you want your abstract. |
105 | 231 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
232 |
\tiny See rev3 of \typ{hg} |
105 | 233 |
\end{frame} |
234 |
||
235 |
\begin{frame}[fragile] |
|
236 |
\frametitle{Sectioning} |
|
237 |
\begin{itemize} |
|
238 |
\item \lstinline{\section}, \lstinline{\subsection} |
|
239 |
\lstinline{\subsubsection} |
|
240 |
\item Auto numbered sections! |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
241 |
\item \typ{*} to prevent numbering of a section |
105 | 242 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
243 |
\tiny See rev4 of \typ{hg} |
105 | 244 |
\end{frame} |
245 |
||
246 |
\begin{frame}[fragile] |
|
247 |
\frametitle{Sectioning \ldots} |
|
248 |
\begin{itemize} |
|
249 |
\item Longer documents, use \lstinline{report} or \lstinline{book} |
|
250 |
class |
|
251 |
\item Chapter can be added using \lstinline{\chapter} |
|
252 |
\end{itemize} |
|
253 |
\begin{lstlisting} |
|
254 |
\documentclass{report} |
|
255 |
||
256 |
\chapter{One} |
|
257 |
\end{lstlisting} |
|
258 |
\begin{itemize} |
|
259 |
\item subsections do not get numbering |
|
260 |
\item Change \lstinline{secnumdepth} |
|
261 |
\end{itemize} |
|
262 |
\begin{lstlisting} |
|
263 |
\setcounter{secnumdepth}{3} |
|
264 |
\end{lstlisting} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
265 |
\tiny See rev5 of \typ{hg} |
105 | 266 |
\end{frame} |
267 |
||
268 |
\begin{frame}[fragile] |
|
269 |
\frametitle{Appendices} |
|
270 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
271 |
\item \lstinline{\appendix} command indicates the beginning of |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
272 |
Appendices. |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
273 |
\item Any content after \lstinline{\appendix}, will be added to the |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
274 |
appendix |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
275 |
\item Use sectioning commands to add sections |
105 | 276 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
277 |
\tiny See rev7 of \typ{hg} |
105 | 278 |
\end{frame} |
279 |
||
280 |
\begin{frame}[fragile] |
|
281 |
\frametitle{Table of Contents [TOC]} |
|
282 |
\begin{itemize} |
|
283 |
\item Our document is short, but let's learn to add a TOC. |
|
284 |
\item Add \lstinline{\tableofcontents} where you want TOC to |
|
285 |
appear. |
|
286 |
\item Compile. |
|
287 |
\item Only headings appear. No page numbers. |
|
134
73012a0eb878
Minor edits to LaTeX material.
Puneeth Chaganti <punchagan@fossee.in>
parents:
105
diff
changeset
|
288 |
\item A \lstinline{.toc} file is generated. |
105 | 289 |
\item Re-compile. |
290 |
\item Any numbered section/block automatically appears |
|
291 |
\end{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
292 |
\tiny See rev8 of \typ{hg} |
105 | 293 |
\end{frame} |
294 |
||
295 |
\begin{frame}[fragile] |
|
296 |
\frametitle{TOC \ldots} |
|
297 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
298 |
\item Un-numbered sections are added to TOC using |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
299 |
\lstinline{\addcontentsline} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
300 |
\item For instance, \lstinline+\addcontentsline{toc}{section}{Intro}+ |
105 | 301 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
302 |
\tiny See rev9 of \typ{hg} |
105 | 303 |
\end{frame} |
304 |
||
305 |
\begin{frame} |
|
306 |
\frametitle{Bibliography} |
|
307 |
We shall look at Bibliographies, later in the course. |
|
308 |
\end{frame} |
|
309 |
||
310 |
\section{Typesetting Text} |
|
311 |
\begin{frame}[fragile] |
|
312 |
\frametitle{Quotation Marks} |
|
313 |
\begin{itemize} |
|
314 |
\item Use \`~ (accent) for left quote |
|
315 |
\item Use \'~ (apostrophe) for right quote |
|
316 |
\item For double quotes, use them twice |
|
317 |
\end{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
318 |
\tiny See rev11 of \typ{hg} |
105 | 319 |
\end{frame} |
320 |
||
321 |
\begin{frame}[fragile] |
|
322 |
\frametitle{Fonts - Emphasis, Fixed width, \ldots} |
|
323 |
\begin{itemize} |
|
324 |
\item \lstinline{\emph} gives emphasized or italic text |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
325 |
\item \typ{flushleft} to have text left aligned |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
326 |
\item \typ{flushright}, \typ{center} |
105 | 327 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
328 |
\tiny See rev12 of \typ{hg} |
105 | 329 |
\end{frame} |
330 |
||
331 |
\begin{frame}[fragile] |
|
332 |
\frametitle{Fonts - Emphasis, Fixed width, \ldots} |
|
333 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
334 |
\item \lstinline{\texttt} gives fixed width font |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
335 |
\item \lstinline{\textbf} bold face font |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
336 |
\item \lstinline{--} en dash (--); \lstinline{---} em dash (---). |
105 | 337 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
338 |
\tiny See rev13 of \typ{hg} |
105 | 339 |
\end{frame} |
340 |
||
341 |
\begin{frame}[fragile] |
|
342 |
\frametitle{Lists} |
|
343 |
\begin{itemize} |
|
344 |
\item \lstinline{enumerate} environment is used for numbered lists |
|
345 |
\item \lstinline{itemize} environment gives un-numbered lists |
|
346 |
\item Each item in the list is specified using \lstinline{\item} |
|
347 |
\item Nested lists are also easily handled, as expected |
|
348 |
\end{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
349 |
\tiny See rev14 of \typ{hg} |
105 | 350 |
\end{frame} |
351 |
||
352 |
\begin{frame}[fragile] |
|
353 |
\frametitle{Footnotes} |
|
354 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
355 |
\item \typ{\\footnote} command adds a footnote |
105 | 356 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
357 |
\tiny See rev15 of \typ{hg} |
105 | 358 |
\end{frame} |
359 |
||
360 |
\begin{frame}[fragile] |
|
361 |
\frametitle{Labels and References} |
|
362 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
363 |
\item \lstinline+\label{labelname}+ is used to label an element |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
364 |
\item \lstinline+\ref{labelname}+ is used to refer to that element |
105 | 365 |
\item Compile twice |
366 |
\end{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
367 |
\tiny See rev15 of \typ{hg} |
105 | 368 |
\end{frame} |
369 |
||
370 |
\begin{frame}[fragile] |
|
371 |
\frametitle{Including code} |
|
372 |
\begin{itemize} |
|
373 |
\item Instead of using \lstinline{\texttt} we could use |
|
374 |
\lstinline{\verbatim} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
375 |
\item \lstinline+\lstinline{listings}+ is a powerful package |
105 | 376 |
\item \lstinline+\usepackage{listings}+ needs to be added |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
377 |
\item Tell {\LaTeX} the language to be used, using \typ{\\lstset} |
105 | 378 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
379 |
\tiny See rev16 of \typ{hg} |
105 | 380 |
\end{frame} |
381 |
||
382 |
\begin{frame}[fragile] |
|
383 |
\frametitle{Including code} |
|
384 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
385 |
\item Use \lstinline+\lstlisting+ for a block of code |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
386 |
\item \typ{\\lstinline} for inline code |
105 | 387 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
388 |
\tiny See rev16 of \typ{hg} |
105 | 389 |
\end{frame} |
390 |
||
391 |
\section{Figures, Tables \& Floats} |
|
392 |
\begin{frame}[fragile] |
|
393 |
\frametitle{Figures} |
|
394 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
395 |
\item The \typ{graphicx} package allows us to insert graphics |
105 | 396 |
\item \lstinline+\usepackage{graphicx}+ |
397 |
\item To add a graphic, use \lstinline{\includegraphics} command |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
398 |
\item Use relative path to the image |
105 | 399 |
\end{itemize} |
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
400 |
\tiny See rev17 of \typ{hg} |
105 | 401 |
\end{frame} |
402 |
||
403 |
\begin{frame}[fragile] |
|
404 |
\frametitle{\lstinline{includgraphics}} |
|
405 |
It takes following optional arguments |
|
406 |
\begin{itemize} |
|
407 |
\item \lstinline+scale+ --- specifies the factor by which to scale |
|
408 |
the image |
|
409 |
\item \lstinline+height+, \lstinline+width+ --- If only one of them |
|
410 |
is specified, aspect ratio is maintained |
|
411 |
\item \lstinline+keepaspectratio+ --- boolean value to keep aspect |
|
412 |
ratio or not |
|
413 |
\item \lstinline+angle+ --- specify by what angle the image should |
|
414 |
be rotated |
|
415 |
\end{itemize} |
|
416 |
\end{frame} |
|
417 |
||
418 |
\begin{frame}[fragile] |
|
419 |
\frametitle{Floats} |
|
420 |
\begin{itemize} |
|
421 |
\item Graphics (\& Tables) are special because they cannot be broken |
|
422 |
across pages |
|
423 |
\item They are ``floated'' to the next page, if they don't fit in |
|
424 |
the current page |
|
425 |
\item Enclose graphic within \lstinline+figure+ environment to make |
|
426 |
it float |
|
427 |
\item Figure environment takes additional parameter for location of |
|
428 |
float |
|
429 |
\end{itemize} |
|
430 |
\begin{table} |
|
431 |
\caption{Permission Specifiers} |
|
432 |
||
433 |
\begin{tabular}{|c|c|} |
|
434 |
Specifier & Permission\\\hline |
|
435 |
t & Top of page\\ |
|
436 |
b & Bottom of page\\ |
|
437 |
p & Separate page for floats\\ |
|
438 |
h & here (the same place where command appears in source)\\ |
|
439 |
! & override \LaTeX's internal parameters for good position |
|
440 |
\end{tabular} |
|
441 |
\end{table} |
|
442 |
\end{frame} |
|
443 |
||
444 |
\begin{frame} |
|
445 |
\frametitle{Captions and References} |
|
446 |
\begin{itemize} |
|
447 |
\item Figure environment allows us add a caption |
|
448 |
\item To place the image in the center we enclose it in the |
|
449 |
\lstinline+center+ environment |
|
450 |
\item We can label images too |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
451 |
\item label should be added after the caption command |
105 | 452 |
\item Figures are auto numbered |
453 |
\end{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
454 |
\tiny See rev17 of \typ{hg} |
105 | 455 |
\end{frame} |
456 |
||
457 |
\begin{frame}[frame] |
|
458 |
\frametitle{Tables} |
|
459 |
\begin{itemize} |
|
460 |
\item \lstinline+tabular+ is used to typeset a table |
|
461 |
\item It is enclosed in a \lstinline+table+ environment to make it a |
|
462 |
float |
|
463 |
\item \lstinline+table+ environment also gives captions, auto |
|
464 |
numbering |
|
465 |
\end{itemize} |
|
466 |
\end{frame} |
|
467 |
||
468 |
||
469 |
\begin{frame}[fragile] |
|
470 |
\frametitle{\lstinline+tabular+} |
|
471 |
\begin{itemize} |
|
472 |
\item tabular takes formatting of each column as argument |
|
473 |
\end{itemize} |
|
474 |
||
475 |
\begin{table} |
|
476 |
\caption{tabular environment} |
|
477 |
||
478 |
\begin{tabular}{|l|l|} |
|
479 |
\lstinline+l+ & left justified column content\\\hline |
|
480 |
\lstinline+r+ & right justified column content\\\hline |
|
481 |
\lstinline+c+ & centered column content\\\hline |
|
482 |
\lstinline+|+ & produces a vertical line\\ |
|
483 |
\end{tabular} |
|
484 |
\end{table} |
|
485 |
\begin{itemize} |
|
486 |
\item also takes an optional parameter for specifying position of |
|
487 |
table |
|
488 |
\item \lstinline+t+ for top, \lstinline+b+ for bottom, \lstinline+c+ |
|
489 |
for center |
|
490 |
\item each column of table is separated by \& |
|
491 |
\item each row is separated by newline \lstinline{\\} |
|
492 |
\item \lstinline+\hline+ give a horizontal line between two rows |
|
493 |
\end{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
494 |
\tiny See rev18 of \typ{hg} |
105 | 495 |
\end{frame} |
496 |
||
497 |
\begin{frame}[fragile] |
|
498 |
\frametitle{List of Tables, Figures} |
|
499 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
500 |
\item \lstinline+\listoftables+ -- to add a list of tables |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
501 |
\item \lstinline+\listoffigures+ -- to add a list of figures |
105 | 502 |
\end{itemize} |
503 |
\end{frame} |
|
504 |
||
505 |
||
506 |
\section{Typesetting Math} |
|
507 |
\begin{frame}[fragile] |
|
508 |
\frametitle{Math in \LaTeX} |
|
509 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
510 |
\item Math is enclosed in a pair of \lstinline{$} signs of %%$ |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
511 |
\lstinline+\( \)+ |
105 | 512 |
\item Used for typesetting inline Math. |
513 |
\item \lstinline+\usepackage{amsmath}+ |
|
514 |
\item Let's now move on to matrices. |
|
515 |
\end{itemize} |
|
516 |
\end{frame} |
|
517 |
||
518 |
\begin{frame}[fragile] |
|
519 |
\frametitle{Matrices} |
|
520 |
\begin{itemize} |
|
521 |
\item \lstinline+\bmatrix+ is used to typeset the matrix A |
|
522 |
\item It works similar to ta tabular environment |
|
523 |
\item \lstinline+&+ for demarcating columns |
|
524 |
\item \lstinline+\\+ for demwarcating rows |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
525 |
\item Other matrix environments |
105 | 526 |
\begin{table} |
527 |
\center |
|
528 |
\begin{tabular}{c|c} |
|
529 |
\lstinline+matrix+ & none\\ |
|
530 |
\lstinline+pmatrix+ & \lstinline+(+\\ |
|
531 |
\lstinline+Bmatrix+ & \lstinline+{+\\ |
|
532 |
\lstinline+vmatrix+ & \lstinline+|+\\ |
|
533 |
\lstinline+Vmatrix+ & \lstinline+||+ |
|
534 |
\end{tabular} |
|
535 |
\end{table} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
536 |
\end{itemize} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
537 |
\tiny See rev19 of \typ{hg} |
105 | 538 |
\end{frame} |
539 |
||
540 |
\begin{frame}[fragile] |
|
541 |
\frametitle{Superscripts \& Subscripts} |
|
542 |
\begin{itemize} |
|
543 |
\item \lstinline+^+ for superscripts |
|
544 |
\item \lstinline+_+ for subscripts |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
545 |
\item Enclose multiple characters in \lstinline+{ }+ |
105 | 546 |
\end{itemize} |
547 |
\end{frame} |
|
548 |
||
549 |
\begin{frame}[fragile] |
|
550 |
\frametitle{Summation \& integration} |
|
551 |
\begin{itemize} |
|
552 |
\item \lstinline+\sum+ command gives the summation symbol |
|
553 |
\item The upper and lower limits are specified using the |
|
554 |
\lstinline+^+ and \lstinline+_+ symbols. |
|
555 |
\item Similarly the integral symbol is obtained using |
|
556 |
\lstinline+\int+ command. |
|
557 |
\end{itemize} |
|
558 |
\end{frame} |
|
559 |
||
560 |
\begin{frame}[fragile] |
|
561 |
\frametitle{\lstinline+displayed+ math} |
|
562 |
\begin{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
563 |
\item Display equations are the other type of displaying math |
105 | 564 |
\item \LaTeX~ or \lstinline+amsmath+ has a number of environments |
565 |
for ``displaying'' equations, with minor differences. |
|
566 |
\item In general, enclose math in \lstinline+\[+ and \lstinline+\]+ |
|
567 |
to get displayed math. |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
568 |
\item \lstinline+\begin{equation*}+ is equivalent to this. |
105 | 569 |
\item Use \lstinline+\begin{equation}+ to get numbered |
570 |
equations. %%\end{equation} |
|
571 |
\end{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
572 |
\tiny See rev20 of \typ{hg} |
105 | 573 |
\end{frame} |
574 |
||
575 |
\begin{frame}[fragile] |
|
576 |
\frametitle{Groups of equations} |
|
577 |
\begin{itemize} |
|
578 |
\item The \lstinline+equation+ environment allows typesetting of |
|
579 |
just 1 equation. |
|
580 |
\item \lstinline+eqnarray+ allows typesetting of multiple equations |
|
581 |
\item It is similar to the \lstinline+table+ environment |
|
582 |
\item The parts of the equation that need to be aligned are |
|
583 |
indicated using \& symbol. |
|
584 |
\item Each equation is separated by a \lstinline+\newline+ command |
|
585 |
\end{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
586 |
\tiny See rev21, 22 of \typ{hg} |
105 | 587 |
\end{frame} |
588 |
||
589 |
\begin{frame}[fragile] |
|
590 |
\frametitle{Fractions \& Surds} |
|
591 |
\begin{itemize} |
|
592 |
\item Fractions are typeset using \lstinline+\frac+ command |
|
593 |
\item \lstinline+\frac{numerator}{denominator}+ is typeset as |
|
594 |
$\frac{numerator}{denominator}$ |
|
595 |
\item Surds are typeset using \lstinline+\sqrt[n]+ command |
|
596 |
\end{itemize} |
|
597 |
\end{frame} |
|
598 |
||
599 |
\begin{frame}[fragile] |
|
600 |
\frametitle{Greek characters \& Spacing} |
|
601 |
\begin{itemize} |
|
602 |
\item Typesetting Greek characters is simple |
|
603 |
\item \lstinline+\alpha+, \lstinline+\beta+, \lstinline+\gamma+, |
|
604 |
\ldots \lstinline+\Alpha+, \lstinline+\Beta+, \lstinline+\Gamma+ |
|
605 |
\ldots |
|
606 |
\item To get additional spacing in Math environments --- |
|
607 |
\begin{center} |
|
608 |
\begin{tabular}{|l|l|l|} |
|
609 |
\hline |
|
610 |
Abbrev. & Spelled out & Example \\ |
|
611 |
\hline |
|
612 |
\lstinline+\,+ & \lstinline+\thinspace+ & $A\,B$ \\ |
|
613 |
\hline |
|
614 |
\lstinline+\:+ & \lstinline+\medspace+ & $A\:B$ \\ |
|
615 |
\hline |
|
616 |
\lstinline+\;+ & \lstinline+\thickspace+ & $A\;B$ \\ |
|
617 |
\hline |
|
618 |
& \lstinline+\quad+ & $A \quad B$ \\ |
|
619 |
\hline |
|
620 |
& \lstinline+\qquad+ & $A \qquad B$ \\ |
|
621 |
\hline |
|
622 |
\lstinline+\!+ & \lstinline+\negthinspace+ & $A!B$ \\ |
|
623 |
\hline |
|
624 |
& \lstinline+\negmedspace+ & $A \negmedspace B$ \\ |
|
625 |
\hline |
|
626 |
& \lstinline+\negthickspace+ & $A \negthickspace B$ \\ |
|
627 |
\hline |
|
628 |
||
629 |
\end{tabular} |
|
630 |
\end{center} |
|
631 |
\end{itemize} |
|
632 |
\end{frame} |
|
633 |
||
634 |
\section{Bibliography} |
|
635 |
\begin{frame}[fragile] |
|
636 |
\frametitle{Bibliography} |
|
637 |
\begin{itemize} |
|
638 |
\item \lstinline+thebibliography+ environment provides a clean and |
|
639 |
simple way to add a bibliography to \LaTeX documents. |
|
640 |
\item \lstinline+\begin{thebibliography}+ takes as argument the |
|
641 |
maximum with of the label that references will have. |
|
642 |
\item Each item of the Bibliography is similar to an item in a |
|
643 |
list. |
|
644 |
\item \lstinline+\bibitem[label]{name}+ followed by the actual |
|
645 |
reference info. |
|
646 |
\item label replaces auto enumeration numbers |
|
647 |
\item \lstinline+\cite{name}+ is used to \lstinline+cite+ the |
|
648 |
\lstinline+bibitem+ |
|
649 |
\item You will need to compile twice. |
|
650 |
\end{itemize} |
|
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
651 |
\tiny See rev23 of \typ{hg} |
105 | 652 |
\end{frame} |
653 |
||
654 |
\section{Presentations - Beamer} |
|
655 |
\begin{frame}[fragile] |
|
656 |
\frametitle{Beamer} |
|
657 |
\begin{itemize} |
|
658 |
\item Use beamer since your report's \LaTeX~ would be re-usable. |
|
659 |
\item It is recommended to start with on of the beamer templates. |
|
660 |
\item Let's look at speaker introduction template. |
|
661 |
\item \lstinline+\documentclass{beamer}+ tells \LaTeX~ to start a |
|
662 |
beamer presentation. |
|
663 |
\item A beamer document is very similar to any other \LaTeX~ |
|
664 |
document except that content is divided into slides. |
|
665 |
\end{itemize} |
|
666 |
\end{frame} |
|
667 |
||
668 |
\begin{frame}[fragile] |
|
669 |
\frametitle{Beamer \ldots} |
|
670 |
\begin{itemize} |
|
671 |
\item \lstinline+\usetheme+ command is used to specify the theme of the |
|
672 |
presentation. |
|
673 |
\item \lstinline+\usecolortheme+ command is used to specify the color |
|
674 |
theme. |
|
675 |
\item The content of a slide is enclosed within |
|
676 |
\lstinline+\begin{frame}{Title}{Subtitle}+ and |
|
677 |
\lstinline+\end{frame}+ |
|
678 |
\item If the slide contains \lstinline+verbatim+ |
|
679 |
\lstinline+lstlisting+ environments, the \lstinline+\begin{frame}+ |
|
680 |
should be passed an additional argument \lstinline+[fragile]+ |
|
681 |
\item Overlays can be achieved using the \lstinline+\pause+ |
|
682 |
command. |
|
683 |
\item To achieve more with beamer, it is highly recommended that you |
|
684 |
look at the \texttt{beameruserguide} |
|
685 |
\end{itemize} |
|
686 |
\end{frame} |
|
687 |
||
157
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
688 |
\begin{frame}[fragile] |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
689 |
\frametitle{} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
690 |
\begin{center} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
691 |
\Huge{Thank You!} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
692 |
\end{center} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
693 |
\end{frame} |
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
694 |
|
3174d4803cd5
latex: Changes to slides and handout before and after class.
Puneeth Chaganti <punchagan@fossee.in>
parents:
134
diff
changeset
|
695 |
|
105 | 696 |
\end{document} |
697 |