|
1 \documentclass[english]{beamer} |
|
2 |
|
3 % generated by Docutils <http://docutils.sourceforge.net/> |
|
4 \usepackage{fixltx2e} % LaTeX patches, \textsubscript |
|
5 \usepackage{cmap} % fix search and cut-and-paste in PDF |
|
6 \usepackage{babel} |
|
7 \usepackage[T1]{fontenc} |
|
8 \usepackage[latin1]{inputenc} |
|
9 \usepackage{listings} |
|
10 \usepackage{amsmath} |
|
11 \lstset{ |
|
12 language=TeX, |
|
13 basicstyle=\small\ttfamily, |
|
14 commentstyle=\ttfamily\color{blue}, |
|
15 stringstyle=\ttfamily\color{orange}, |
|
16 showstringspaces=false, |
|
17 breaklines=true, |
|
18 postbreak = \space\dots |
|
19 } |
|
20 |
|
21 \usepackage{ifthen} |
|
22 \usepackage{longtable} |
|
23 \usepackage{array} |
|
24 \setlength{\extrarowheight}{2pt} |
|
25 \newlength{\DUtablewidth} % internal use in tables |
|
26 |
|
27 \mode<presentation> |
|
28 { |
|
29 \usetheme{Warsaw} |
|
30 \useoutertheme{infolines} |
|
31 \setbeamercovered{transparent} |
|
32 } |
|
33 |
|
34 |
|
35 \title{\LaTeX} |
|
36 \author[FOSSEE] {FOSSEE} |
|
37 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT |
|
38 Bombay} |
|
39 \date{} |
|
40 |
|
41 %% Delete this, if you do not want the table of contents to pop up at |
|
42 %% the beginning of each subsection: |
|
43 \AtBeginSubsection[] |
|
44 { |
|
45 \begin{frame}<beamer> |
|
46 \frametitle{Outline} |
|
47 \tableofcontents[currentsection,currentsubsection] |
|
48 \end{frame} |
|
49 } |
|
50 |
|
51 \AtBeginSection[] |
|
52 { |
|
53 \begin{frame}<beamer> |
|
54 \frametitle{Outline} |
|
55 \tableofcontents[currentsection,currentsubsection] |
|
56 \end{frame} |
|
57 } |
|
58 |
|
59 \begin{document} |
|
60 |
|
61 % Document title |
|
62 \begin{frame} |
|
63 \maketitle |
|
64 \end{frame} |
|
65 |
|
66 \section{Introduction} |
|
67 |
|
68 \begin{frame} |
|
69 \frametitle{\LaTeX~- Introduction} |
|
70 \begin{itemize} |
|
71 \item Typesetting program |
|
72 \item Excellently Typeset Documents - specially Math |
|
73 \item Anything from one page articles to books. |
|
74 \item Based on \TeX |
|
75 \item Pronounced ``Lah-tech'' or ``Lay-tech'' |
|
76 \end{itemize} |
|
77 \end{frame} |
|
78 |
|
79 \begin{frame} |
|
80 \frametitle{This Course} |
|
81 \begin{itemize} |
|
82 \item Look at Sample document - \texttt{sample.pdf} |
|
83 \item The document will be produced by the end of the course. |
|
84 \item First Hour - Basic Structure |
|
85 \item Second Hour - Text, Tables, Figures, References |
|
86 \item Third Hour - Math, Bibliography, Presentations |
|
87 \end{itemize} |
|
88 \end{frame} |
|
89 |
|
90 |
|
91 \begin{frame} |
|
92 \frametitle{A Look at the Sample Document} |
|
93 \begin{itemize} |
|
94 \item Title, Author, Date |
|
95 \item Abstract |
|
96 \item Sections |
|
97 \item Subsections |
|
98 \item Appendix |
|
99 \item References/Bibliography |
|
100 \item Tables |
|
101 \item Figures |
|
102 \item Math |
|
103 \end{itemize} |
|
104 \end{frame} |
|
105 |
|
106 \begin{frame}[fragile] |
|
107 \frametitle{The source \& compilation} |
|
108 Write the following code into the file \texttt{draft.tex}. |
|
109 \begin{lstlisting} |
|
110 \documentclass{article} |
|
111 \begin{document} |
|
112 SciPy is open-source software for mathematics, |
|
113 science, and engineering. |
|
114 \end{document} |
|
115 \end{lstlisting} |
|
116 To compile the document, do the following in your terminal: |
|
117 \begin{lstlisting}[language=bash] |
|
118 $ pdflatex draft.tex |
|
119 \end{lstlisting} |
|
120 This produces the output file \texttt{draft.pdf} %%$ |
|
121 Note: \texttt{latex} command is often used to get \texttt{dvi} |
|
122 output. Throughout this course, we shall use \texttt{pdflatex} to |
|
123 compile our documents to \texttt{pdf} output. |
|
124 \end{frame} |
|
125 |
|
126 \section{Structure of the Document} |
|
127 |
|
128 \begin{frame}[fragile] |
|
129 \frametitle{\lstinline+documentclass+} |
|
130 \begin{itemize} |
|
131 \item \LaTeX~typesets based on \lstinline{documentclass} |
|
132 \item Defines structure and formatting of a document |
|
133 \item \LaTeX~is a document based mark-up |
|
134 \item Mark-up --- a system of annotating text, adding extra |
|
135 information to specify structure and presentation of text |
|
136 \item Document based markup $\rightarrow$ you don't have to worry |
|
137 about each element individually |
|
138 \item Allows you to focus on content, rather than appearance. |
|
139 \end{itemize} |
|
140 \end{frame} |
|
141 |
|
142 \begin{frame} |
|
143 \frametitle{Environments and Commands} |
|
144 \lstinline{document} is an environment, present in every document. |
|
145 \begin{itemize} |
|
146 \item Environments |
|
147 \begin{itemize} |
|
148 \item \lstinline{\begin} and \lstinline{\end} define the beginning |
|
149 and end of an environment |
|
150 \item All the content of the document is placed inside the |
|
151 \lstinline{document} environment |
|
152 \end{itemize} |
|
153 \item Commands |
|
154 \begin{itemize} |
|
155 \item All commands begin with \textbackslash |
|
156 \item They are case-sensitive |
|
157 \item Only alpha caracthers; other characters terminate commands |
|
158 \end{itemize} |
|
159 \end{itemize} |
|
160 \end{frame} |
|
161 |
|
162 |
|
163 \begin{frame}[fragile] |
|
164 \frametitle{Top Matter} |
|
165 Let's add the Title, Author's name and the date to the document. |
|
166 \begin{itemize} |
|
167 \item Add title, author and date. Compile. Nothing changes. |
|
168 \end{itemize} |
|
169 \begin{lstlisting} |
|
170 \title{A Glimpse at Scipy} |
|
171 \author{FOSSEE} |
|
172 \date{June 2010} |
|
173 \end{lstlisting} |
|
174 \tiny{See \texttt{hg} rev1 of draft.} |
|
175 \end{frame} |
|
176 \end{document} |