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