latex/slides.tex
author Puneeth Chaganti <punchagan@fossee.in>
Tue, 31 Aug 2010 18:50:20 +0530
changeset 105 bba1ae4ef1ae
child 134 73012a0eb878
permissions -rw-r--r--
Added slides for LaTeX.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
105
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     1
\documentclass[english]{beamer}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     2
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     3
% generated by Docutils <http://docutils.sourceforge.net/>
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     4
\usepackage{fixltx2e} % LaTeX patches, \textsubscript
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     5
\usepackage{cmap} % fix search and cut-and-paste in PDF
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     6
\usepackage{babel}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     7
\usepackage[T1]{fontenc}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     8
\usepackage[latin1]{inputenc}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
     9
\usepackage{listings}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    10
\usepackage{amsmath}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    11
\lstset{
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    12
  language=TeX,
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    13
  basicstyle=\small\ttfamily,
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    14
  commentstyle=\ttfamily\color{blue},
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    15
  stringstyle=\ttfamily\color{orange},
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    16
  showstringspaces=false,
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    17
  breaklines=true,
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    18
  postbreak = \space\dots
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    19
}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    20
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    21
\usepackage{ifthen}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    22
\usepackage{longtable}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    23
\usepackage{array}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    24
\setlength{\extrarowheight}{2pt}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    25
\newlength{\DUtablewidth} % internal use in tables
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    26
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    27
\mode<presentation>
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    28
{
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    29
  \usetheme{Warsaw}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    30
  \useoutertheme{infolines}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    31
  \setbeamercovered{transparent}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    32
}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    33
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    34
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    35
\title{\LaTeX}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    36
\author[FOSSEE] {FOSSEE}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    37
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    38
  Bombay}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    39
\date{}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    40
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    41
%% Delete this, if you do not want the table of contents to pop up at
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    42
%% the beginning of each subsection:
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    43
\AtBeginSubsection[]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    44
{
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    45
  \begin{frame}<beamer>
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    46
    \frametitle{Outline}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    47
    \tableofcontents[currentsection,currentsubsection]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    48
  \end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    49
}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    50
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    51
\AtBeginSection[]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    52
{
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    53
  \begin{frame}<beamer>
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    54
    \frametitle{Outline}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    55
    \tableofcontents[currentsection,currentsubsection]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    56
  \end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    57
}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    58
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    59
\begin{document}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    60
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    61
% Document title
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    62
\begin{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    63
  \maketitle  
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    64
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    65
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    66
\section{Introduction}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    67
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    68
\begin{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    69
  \frametitle{\LaTeX~- Introduction}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    70
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    71
  \item Typesetting program
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    72
  \item Excellently Typeset Documents - specially Math
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    73
  \item Anything from one page articles to books. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    74
  \item Based on \TeX
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    75
  \item Pronounced ``Lah-tech'' or ``Lay-tech''
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    76
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    77
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    78
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    79
\begin{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    80
  \frametitle{This Course}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    81
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    82
  \item Look at Sample document - \texttt{sample.pdf}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    83
  \item The document will be produced by the end of the course. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    84
  \item First Hour - Basic Structure
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    85
  \item Second Hour - Text, Tables, Figures, References
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    86
  \item Third Hour - Math, Bibliography, Presentations
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    87
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    88
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    89
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    90
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    91
\begin{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    92
  \frametitle{A Look at the Sample Document}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    93
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    94
  \item Title, Author, Date
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    95
  \item Abstract
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    96
  \item Sections
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    97
  \item Subsections
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    98
  \item Appendix
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
    99
  \item References/Bibliography
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   100
  \item Tables
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   101
  \item Figures
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   102
  \item Math
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   103
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   104
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   105
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   106
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   107
  \frametitle{The source \& compilation}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   108
  Write the following code into the file \texttt{draft.tex}.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   109
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   110
    \documentclass{article}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   111
    \begin{document}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   112
    SciPy is open-source software for mathematics, 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   113
    science, and engineering.   
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   114
    \end{document}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   115
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   116
  To compile the document, do the following in your terminal: 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   117
  \begin{lstlisting}[language=bash]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   118
    $ pdflatex draft.tex
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   119
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   120
  This produces the output file \texttt{draft.pdf} %%$
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   121
  Note: \texttt{latex} command is often used to get \texttt{dvi}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   122
  output. Throughout this course, we shall use \texttt{pdflatex} to
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   123
  compile our documents to \texttt{pdf} output.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   124
\end{frame}  
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   125
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   126
\section{Structure of the Document}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   127
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   128
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   129
  \frametitle{\lstinline+documentclass+}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   130
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   131
  \item \LaTeX~typesets based on \lstinline{documentclass}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   132
  \item Defines structure and formatting of a document
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   133
  \item \LaTeX~is a document based mark-up
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   134
  \item Mark-up --- a system of annotating text, adding extra
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   135
    information to specify structure and presentation of text
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   136
  \item Document based markup $\rightarrow$ you don't have to worry
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   137
    about each element individually 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   138
  \item Allows you to focus on content, rather than appearance.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   139
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   140
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   141
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   142
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   143
  \frametitle{Environments and Commands}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   144
  \lstinline{document} is an environment, present in every document. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   145
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   146
  \item Environments
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   147
    \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   148
    \item \lstinline{\begin} and \lstinline{\end} define the beginning
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   149
      and end of an environment
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   150
    \item All the content of the document is placed inside the
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   151
      \lstinline{document} environment 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   152
    \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   153
  \item Commands
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   154
    \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   155
    \item All commands begin with \textbackslash
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   156
    \item They are case-sensitive
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   157
    \item Only alpha caracthers; other characters terminate commands
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   158
    \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   159
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   160
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   161
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   162
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   163
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   164
  \frametitle{Top Matter}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   165
  Let's add the Title, Author's name and the date to the document.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   166
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   167
  \item Add title, author and date. Compile. Nothing changes.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   168
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   169
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   170
    \title{A Glimpse at Scipy}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   171
    \author{FOSSEE}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   172
    \date{June 2010}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   173
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   174
  \tiny{See \texttt{hg} rev1 of draft.}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   175
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   176
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   177
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   178
  \frametitle{Top Matter \ldots}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   179
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   180
  \item \lstinline{\maketitle} command inserts the top-matter.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   181
  \item Compile again. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   182
  \item If no date is specified, today's date is automatically
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   183
    inserted.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   184
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   185
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   186
    \begin{document}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   187
    \maketitle
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   188
    SciPy is open-source software for mathematics, science, and engineering.   
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   189
    \end{document}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   190
   \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   191
  \tiny{See \texttt{hg} rev2 of draft.}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   192
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   193
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   194
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   195
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   196
  \frametitle{Abstract}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   197
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   198
  \item The abstract environment is placed at the location where it's
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   199
    put in the source. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   200
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   201
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   202
    \begin{abstract}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   203
      This document shows a glimpse of the features of Scipy that will
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   204
      be explored during this course.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   205
    \end{abstract}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   206
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   207
  \tiny See rev3 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   208
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   209
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   210
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   211
  \frametitle{Sectioning}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   212
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   213
  \item \lstinline{\section}, \lstinline{\subsection}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   214
    \lstinline{\subsubsection}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   215
  \item Auto numbered sections!
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   216
  \item \* to prevent numbering of a section
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   217
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   218
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   219
    \section{A Glimpse of Scipy functions}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   220
    \subsection{Matrix Operations}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   221
    \subsubsection{Inverse}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   222
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   223
  \tiny See rev4 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   224
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   225
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   226
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   227
  \frametitle{Sectioning \ldots}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   228
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   229
  \item Longer documents, use \lstinline{report} or \lstinline{book}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   230
    class
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   231
  \item Chapter can be added using \lstinline{\chapter}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   232
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   233
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   234
    \documentclass{report}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   235
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   236
    \chapter{One}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   237
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   238
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   239
  \item subsections do not get numbering
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   240
  \item Change \lstinline{secnumdepth}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   241
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   242
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   243
    \setcounter{secnumdepth}{3}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   244
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   245
   \tiny See rev5 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   246
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   247
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   248
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   249
  \frametitle{Appendices}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   250
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   251
  \item Anything following the \lstinline{\appendix} command is added
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   252
    to the Appendix. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   253
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   254
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   255
    \appendix
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   256
    
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   257
    \section{Plotting using Pylab}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   258
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   259
  \tiny See rev7 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   260
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   261
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   262
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   263
  \frametitle{Table of Contents [TOC]}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   264
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   265
  \item Our document is short, but let's learn to add a TOC.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   266
  \item Add \lstinline{\tableofcontents} where you want TOC to
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   267
    appear.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   268
  \item Compile. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   269
  \item Only headings appear. No page numbers. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   270
  \item A \lstinline{\.toc} file is generated. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   271
  \item Re-compile.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   272
  \item Any numbered section/block automatically appears
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   273
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   274
  \tiny See rev8 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   275
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   276
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   277
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   278
  \frametitle{TOC \ldots}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   279
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   280
  \item To add un-numbered sections, use \lstinline{\addcontentsline}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   281
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   282
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   283
    \section*{Introduction}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   284
    \addcontentsline{toc}{section}{Intro}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   285
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   286
  \tiny See rev9 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   287
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   288
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   289
\begin{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   290
  \frametitle{Bibliography}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   291
  We shall look at Bibliographies, later in the course. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   292
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   293
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   294
\section{Typesetting Text}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   295
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   296
  \frametitle{Line breaks, Paragraphs}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   297
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   298
  \item Add the text of second paragraph in the introduction section. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   299
  \item Compile. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   300
  \item An empty line starts a new para
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   301
  \item New paragraphs are indented
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   302
  \item Multiple spaces or empty lines are considered as one
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   303
  \item To start a new line \lstinline{\\} or \lstinline{\newline}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   304
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   305
  \tiny See rev10 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   306
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   307
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   308
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   309
  \frametitle{Quotation Marks}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   310
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   311
  \item The quotation marks around Sigh Pie are not formatted properly
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   312
  \item Use \`~ (accent) for left quote
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   313
  \item Use \'~ (apostrophe) for right quote
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   314
  \item For double quotes, use them twice
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   315
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   316
  \begin{center}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   317
    \`~\`~Sigh Pie\'~\'~
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   318
  \end{center}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   319
  \tiny See rev11 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   320
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   321
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   322
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   323
  \frametitle{Fonts - Emphasis, Fixed width, \ldots}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   324
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   325
  \item \lstinline{\emph} gives emphasized or italic text
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   326
  \item \LaTeX environments can be nested
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   327
  \item Let's add sub-package names as text, before learning to
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   328
    typeset tables
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   329
  \item Note multiple spacing won't work
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   330
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   331
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   332
    Subpackage - Description\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   333
    cluster - Clustering algorithms\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   334
    constants - Physical and mathematical constants\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   335
    fftpack - Fast Fourier Transform routines\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   336
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   337
  \begin{center}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   338
    \hspace{1in}\vdots
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   339
  \end{center}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   340
  \tiny See rev12 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   341
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   342
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   343
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   344
  \frametitle{Fonts - Emphasis, Fixed width, \ldots}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   345
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   346
  \item Use \lstinline{\texttt} for sub-packages names - fixed width
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   347
  \item \lstinline{\textbf} for bold face
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   348
  \item \lstinline{-} can be replaced with \lstinline{--} or
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   349
    \lstinline{---} for better formatting
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   350
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   351
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   352
    \textbf{Subpackage} --- \textbf{Description}\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   353
    \texttt{cluster} --- Clustering algorithms\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   354
    \texttt{constants} --- Physical and mathematical constants\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   355
    \texttt{fftpack} --- Fast Fourier Transform routines\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   356
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   357
  \begin{center}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   358
    \hspace{1in}\vdots
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   359
  \end{center}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   360
  \tiny See rev13 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   361
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   362
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   363
\subsection{Lists}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   364
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   365
  \frametitle{Lists}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   366
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   367
  \item \lstinline{enumerate} environment is used for numbered lists
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   368
  \item \lstinline{itemize} environment gives un-numbered lists
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   369
  \item Each item in the list is specified using \lstinline{\item}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   370
  \item Nested lists are also easily handled, as expected
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   371
  \item Example on next slide
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   372
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   373
  \tiny See rev14 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   374
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   375
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   376
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   377
  \frametitle{Lists \ldots}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   378
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   379
    \begin{enumerate}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   380
    \item Plotting
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   381
    \item Matrix Operations
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   382
      \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   383
      \item Inverse
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   384
      \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   385
    \item Solving Equations
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   386
      \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   387
      \item System of Linear equations
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   388
      \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   389
    \item Integration 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   390
      \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   391
      \item Quadrature
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   392
      \item ODEs
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   393
      \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   394
    \end{enumerate}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   395
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   396
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   397
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   398
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   399
  \frametitle{Footnotes}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   400
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   401
  \item Add footnote for \lstinline{pylab}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   402
  \item It's easily done using \lstinline{\footnote} command 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   403
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   404
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   405
    Plotting \footnote{using \texttt{pylab} - see Appendix A} 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   406
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   407
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   408
  \item We have just written down the name of the appendix
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   409
  \item But if another section is added before it, the reference has
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   410
    to be changed
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   411
  \item \LaTeX provides labels and references
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   412
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   413
  \tiny See rev15 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   414
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   415
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   416
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   417
  \frametitle{Labels and References}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   418
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   419
  \item First add a label to the section that we wish to refer to
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   420
  \item \lstinline+\label{labelname}+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   421
  \item Change footnote to use the reference
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   422
  \item \lstinline+\ref{labelname}+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   423
  \item Compile twice
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   424
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   425
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   426
    \section{Plotting using Pylab}\label{mpl}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   427
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   428
    Plotting \footnote{using \texttt{pylab} - see Appendix \ref{mpl}} 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   429
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   430
  \tiny See rev15 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   431
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   432
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   433
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   434
  \frametitle{Including code}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   435
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   436
  \item Instead of using \lstinline{\texttt} we could use
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   437
    \lstinline{\verbatim} 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   438
  \item \lstinline{listings} is a powerful package
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   439
  \item \lstinline+\usepackage{listings}+ needs to be added 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   440
  \item Tell \LaTeX the language, you are going to use
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   441
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   442
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   443
    \usepackage{listings} 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   444
    \lstset{language=Python,
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   445
      basicstyle=\ttfamily\bfseries,
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   446
      showstringspaces=false}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   447
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   448
  \tiny See rev16 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   449
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   450
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   451
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   452
  \frametitle{Including code}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   453
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   454
  \item Use \lstinline{lstlisting} for a block of code
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   455
  \item \lstinline+\lstinline+ for inline code
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   456
  \item Let's add the code to Appendix
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   457
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   458
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   459
    \begin{lstlisting.}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   460
      In []: x = linspace(0, 2*pi, 50)
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   461
      In []: plot(x, sin(x))
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   462
      In []: title('Sine Curve between 0 and $\pi$')
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   463
      In []: legend(['sin(x)'])
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   464
    \end{lstlisting.}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   465
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   466
  \tiny See rev16 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   467
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   468
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   469
\section{Figures, Tables \& Floats}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   470
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   471
  \frametitle{Figures}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   472
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   473
  \item Let's add the figure in the Appendix
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   474
  \item \lstinline+\usepackage{graphicx}+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   475
  \item To add a graphic, use \lstinline{\includegraphics} command
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   476
  \item We give the relative path to the \lstinline+.png+ image
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   477
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   478
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   479
    \usepackage{graphicx}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   480
    
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   481
    \begin{figure}[h!]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   482
    \begin{center}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   483
      \includegraphics[scale=0.4]{../sine.png}      
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   484
    \end{center}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   485
    \caption{Sine Curve}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   486
    \label{fig:sin}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   487
    \end{figure}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   488
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   489
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   490
  \tiny See rev17 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   491
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   492
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   493
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   494
  \frametitle{\lstinline{includgraphics}}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   495
  It takes following optional arguments
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   496
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   497
  \item \lstinline+scale+ --- specifies the factor by which to scale
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   498
    the image 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   499
  \item \lstinline+height+, \lstinline+width+ --- If only one of them
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   500
    is specified, aspect ratio is maintained 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   501
  \item \lstinline+keepaspectratio+ --- boolean value to keep aspect
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   502
    ratio or not 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   503
  \item \lstinline+angle+ --- specify by what angle the image should
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   504
    be rotated 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   505
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   506
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   507
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   508
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   509
  \frametitle{Floats}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   510
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   511
  \item Graphics (\& Tables) are special because they cannot be broken
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   512
    across pages 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   513
  \item They are ``floated'' to the next page, if they don't fit in
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   514
    the current page 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   515
  \item Enclose graphic within \lstinline+figure+ environment to make
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   516
    it float 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   517
  \item Figure environment takes additional parameter for location of
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   518
    float 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   519
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   520
  \begin{table}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   521
    \caption{Permission Specifiers}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   522
    
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   523
    \begin{tabular}{|c|c|}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   524
      Specifier & Permission\\\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   525
      t & Top of page\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   526
      b & Bottom of page\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   527
      p & Separate page for floats\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   528
      h & here (the same place where command appears in source)\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   529
      ! & override \LaTeX's internal parameters for good position
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   530
    \end{tabular}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   531
  \end{table}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   532
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   533
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   534
\begin{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   535
  \frametitle{Captions and References}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   536
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   537
  \item Figure environment allows us add a caption
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   538
  \item To place the image in the center we enclose it in the
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   539
    \lstinline+center+ environment 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   540
  \item We can label images too
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   541
  \item label shoule be added after the caption command
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   542
  \item Figures are auto numbered
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   543
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   544
  \tiny See rev17 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   545
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   546
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   547
\subsection{Tables}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   548
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   549
\begin{frame}[frame]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   550
  \frametitle{Tables}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   551
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   552
  \item \lstinline+tabular+ is used to typeset a table
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   553
  \item It is enclosed in a \lstinline+table+ environment to make it a
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   554
    float 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   555
  \item \lstinline+table+ environment also gives captions, auto
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   556
    numbering  
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   557
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   558
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   559
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   560
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   561
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   562
  \frametitle{\lstinline+tabular+}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   563
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   564
  \item tabular takes formatting of each column as argument
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   565
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   566
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   567
  \begin{table}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   568
    \caption{tabular environment}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   569
    
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   570
    \begin{tabular}{|l|l|}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   571
      \lstinline+l+ & left justified column content\\\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   572
      \lstinline+r+ & right justified column content\\\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   573
      \lstinline+c+ & centered column content\\\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   574
      \lstinline+|+ & produces a vertical line\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   575
    \end{tabular}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   576
  \end{table}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   577
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   578
  \item also takes an optional parameter for specifying position of
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   579
    table 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   580
  \item \lstinline+t+ for top, \lstinline+b+ for bottom, \lstinline+c+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   581
    for center 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   582
  \item each column of table is separated by \&
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   583
  \item each row is separated by newline \lstinline{\\}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   584
  \item \lstinline+\hline+ give a horizontal line between two rows
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   585
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   586
  \tiny See rev18 of \texttt{hg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   587
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   588
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   589
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   590
  \frametitle{\lstinline+tabular+ \ldots}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   591
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   592
    \begin{table}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   593
      \caption{Sub-packages available in Scipy}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   594
      \label{subpkg}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   595
      \begin{tabular}{|l|l|}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   596
        \hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   597
        \textbf{Subpackage} & \textbf{Description}\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   598
        \texttt{constants} & Physical and mathematical constants\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   599
        \hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   600
        \texttt{fftpack} & Fast Fourier Transform routines\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   601
        \hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   602
        \end{tabular}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   603
      \end{table}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   604
    \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   605
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   606
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   607
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   608
  \frametitle{List of Tables, Figures}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   609
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   610
  \item \lstinline+listoftables+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   611
  \item \lstinline+listoffigures+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   612
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   613
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   614
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   615
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   616
\section{Typesetting Math}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   617
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   618
  \frametitle{Math in \LaTeX}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   619
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   620
  \item Math is enclosed in a pair of \lstinline{$} signs o
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   621
    \lstinline+\(  \)+ %$
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   622
  \item Used for typesetting inline Math. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   623
  \item \lstinline+\usepackage{amsmath}+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   624
  \item Let's now move on to matrices. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   625
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   626
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   627
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   628
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   629
  \frametitle{Matrices}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   630
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   631
  \item \lstinline+\bmatrix+ is used to typeset the matrix A
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   632
  \item It works similar to ta tabular environment
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   633
  \item \lstinline+&+ for demarcating columns
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   634
  \item \lstinline+\\+ for demwarcating rows
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   635
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   636
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   637
    Let $\mathbf{A}$ be the matrix 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   638
    \(
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   639
    \begin{bmatrix}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   640
      1 &3 &5\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   641
      2 &5 &1\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   642
      2 &3 &8
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   643
    \end{bmatrix}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   644
    \)
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   645
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   646
  \tiny See rev19 of \texttt{hg}    
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   647
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   648
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   649
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   650
  \frametitle{Matrices \ldots}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   651
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   652
  \item There are 5 other matrix environments 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   653
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   654
  \begin{table}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   655
    \center
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   656
    \begin{tabular}{c|c}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   657
      \lstinline+matrix+  &  none\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   658
      \lstinline+pmatrix+ &  \lstinline+(+\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   659
      \lstinline+Bmatrix+ &  \lstinline+{+\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   660
        \lstinline+vmatrix+ &  \lstinline+|+\\  
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   661
        \lstinline+Vmatrix+ &  \lstinline+||+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   662
    \end{tabular}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   663
  \end{table}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   664
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   665
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   666
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   667
  \frametitle{Superscripts \& Subscripts}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   668
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   669
  \item \lstinline+^+ for superscripts
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   670
  \item To have multiple characters as sub/superscript, enclose in
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   671
    \lstinline+{ }+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   672
  \item \lstinline+_+ for subscripts
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   673
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   674
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   675
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   676
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   677
  \frametitle{Summation \& integration}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   678
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   679
  \item \lstinline+\sum+ command gives the summation symbol
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   680
  \item The upper and lower limits are specified using the
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   681
    \lstinline+^+ and \lstinline+_+ symbols. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   682
  \item Similarly the integral symbol is obtained using
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   683
    \lstinline+\int+ command. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   684
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   685
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   686
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   687
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   688
  \frametitle{\lstinline+displayed+ math}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   689
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   690
  \item The equation in Determinants section is different. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   691
  \item It is a displayed equation. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   692
  \item \LaTeX~ or \lstinline+amsmath+ has a number of environments
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   693
    for ``displaying'' equations, with minor differences. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   694
  \item In general, enclose math in \lstinline+\[+ and \lstinline+\]+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   695
    to get displayed math. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   696
  \item \lstinline+\begin*{equation}+ is equivalent to this.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   697
  \item Use \lstinline+\begin{equation}+ to get numbered
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   698
    equations. %%\end{equation} 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   699
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   700
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   701
    \[ \left|\mathbf{A}\right|=\sum_{j}\left(-1\right)^{i+j}a_{ij}\mathbf{M}_{ij} \]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   702
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   703
  \tiny See rev20 of \texttt{hg}    
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   704
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   705
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   706
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   707
  \frametitle{Groups of equations}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   708
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   709
  \item The \lstinline+equation+ environment allows typesetting of
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   710
    just 1 equation. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   711
  \item \lstinline+eqnarray+ allows typesetting of multiple equations 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   712
  \item It is similar to the \lstinline+table+ environment
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   713
  \item The parts of the equation that need to be aligned are
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   714
    indicated using \& symbol.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   715
  \item Each equation is separated by a \lstinline+\newline+ command
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   716
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   717
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   718
    \begin{eqnarray*}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   719
      x^3 - 2x^2 - \frac{1}{2}x + 1 = 0\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   720
      x^2(x-2) - \frac{1}{2}(x-2) = 0\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   721
      (x-2)(x^2 - \frac{1}{2}) = 0\\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   722
      (x-2)(x - \frac{1}{\sqrt{2}})(x + \frac{1}{\sqrt{2}}) = 0
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   723
    \end{eqnarray*}    
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   724
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   725
  \tiny See rev21, 22 of \texttt{hg}    
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   726
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   727
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   728
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   729
  \frametitle{Fractions \& Surds}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   730
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   731
  \item Fractions are typeset using \lstinline+\frac+ command 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   732
  \item \lstinline+\frac{numerator}{denominator}+ is typeset as
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   733
    $\frac{numerator}{denominator}$
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   734
  \item Surds are typeset using \lstinline+\sqrt[n]+ command
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   735
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   736
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   737
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   738
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   739
  \frametitle{Greek characters \& Spacing}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   740
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   741
  \item Typesetting Greek characters is simple
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   742
  \item \lstinline+\alpha+, \lstinline+\beta+, \lstinline+\gamma+,
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   743
    \ldots \lstinline+\Alpha+, \lstinline+\Beta+, \lstinline+\Gamma+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   744
    \ldots 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   745
  \item To get additional spacing in Math environments ---
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   746
\begin{center}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   747
\begin{tabular}{|l|l|l|}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   748
\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   749
 Abbrev. & Spelled out & Example  \\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   750
\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   751
 \lstinline+\,+ & \lstinline+\thinspace+ & $A\,B$ \\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   752
\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   753
 \lstinline+\:+ & \lstinline+\medspace+ & $A\:B$ \\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   754
\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   755
 \lstinline+\;+ & \lstinline+\thickspace+ & $A\;B$ \\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   756
\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   757
   & \lstinline+\quad+ & $A \quad B$ \\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   758
\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   759
   & \lstinline+\qquad+ & $A \qquad B$ \\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   760
\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   761
 \lstinline+\!+ & \lstinline+\negthinspace+ & $A!B$ \\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   762
\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   763
   & \lstinline+\negmedspace+ & $A \negmedspace B$ \\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   764
\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   765
   & \lstinline+\negthickspace+ & $A \negthickspace B$ \\
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   766
\hline
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   767
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   768
\end{tabular}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   769
\end{center}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   770
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   771
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   772
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   773
\section{Bibliography}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   774
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   775
  \frametitle{Bibliography}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   776
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   777
  \item \lstinline+thebibliography+ environment provides a clean and
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   778
    simple way to add a bibliography to \LaTeX documents. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   779
  \item \lstinline+\begin{thebibliography}+ takes as argument the
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   780
    maximum with of the label that references will have. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   781
  \item Each item of the Bibliography is similar to an item in a
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   782
    list. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   783
  \item \lstinline+\bibitem[label]{name}+ followed by the actual
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   784
    reference info. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   785
  \item label replaces auto enumeration numbers 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   786
  \item \lstinline+\cite{name}+ is used to \lstinline+cite+ the
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   787
    \lstinline+bibitem+ 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   788
  \item You will need to compile twice. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   789
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   790
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   791
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   792
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   793
  \frametitle{Bibliography}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   794
  \begin{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   795
    \begin{thebibliography}{9}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   796
    \bibitem{scipy} 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   797
      Eric Jones and Travis Oliphant and Pearu Peterson and others,
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   798
      \emph{SciPy: Open source scientific tools for Python}, 2001 -- , 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   799
      \url{http://www.scipy.org/} 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   800
  \end{lstlisting}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   801
  \tiny See rev23 of \texttt{hg}    
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   802
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   803
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   804
\section{Presentations - Beamer}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   805
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   806
  \frametitle{Beamer}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   807
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   808
  \item Use beamer since your report's \LaTeX~ would be re-usable.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   809
  \item It is recommended to start with on of the beamer templates.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   810
  \item Let's look at speaker introduction template.
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   811
  \item \lstinline+\documentclass{beamer}+ tells \LaTeX~ to start a
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   812
    beamer presentation. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   813
  \item A beamer document is very similar to any other \LaTeX~
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   814
    document except that content is divided into slides. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   815
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   816
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   817
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   818
\begin{frame}[fragile]
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   819
  \frametitle{Beamer \ldots}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   820
  \begin{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   821
  \item \lstinline+\usetheme+ command is used to specify the theme of the
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   822
    presentation. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   823
  \item \lstinline+\usecolortheme+ command is used to specify the color
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   824
    theme. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   825
  \item The content of a slide is enclosed within
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   826
    \lstinline+\begin{frame}{Title}{Subtitle}+ and
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   827
    \lstinline+\end{frame}+ 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   828
  \item If the slide contains \lstinline+verbatim+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   829
    \lstinline+lstlisting+ environments, the \lstinline+\begin{frame}+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   830
    should be passed an additional argument \lstinline+[fragile]+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   831
  \item Overlays can be achieved using the \lstinline+\pause+
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   832
    command. 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   833
  \item To achieve more with beamer, it is highly recommended that you
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   834
    look at the \texttt{beameruserguide} 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   835
  \end{itemize}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   836
\end{frame}
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   837
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   838
\end{document} 
bba1ae4ef1ae Added slides for LaTeX.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff changeset
   839