presentations/lists.tex
author Puneeth Chaganti <punchagan@fossee.in>
Sat, 15 May 2010 10:47:35 +0530
changeset 122 ed29ffa37cdc
parent 117 d3005da44457
permissions -rw-r--r--
A minor edit to see if commits are working.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
117
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     2
%Tutorial slides on Python.
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     3
%
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     4
% Author: FOSSEE 
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     5
% Copyright (c) 2009, FOSSEE, IIT Bombay
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     6
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     7
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     8
\documentclass[14pt,compress]{beamer}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     9
%\documentclass[draft]{beamer}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    10
%\documentclass[compress,handout]{beamer}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    11
%\usepackage{pgfpages} 
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    12
%\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    13
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    14
% Modified from: generic-ornate-15min-45min.de.tex
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    15
\mode<presentation>
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    16
{
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    17
  \usetheme{Warsaw}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    18
  \useoutertheme{infolines}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    19
  \setbeamercovered{transparent}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    20
}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    21
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    22
\usepackage[english]{babel}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    23
\usepackage[latin1]{inputenc}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    24
%\usepackage{times}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    25
\usepackage[T1]{fontenc}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    26
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    27
% Taken from Fernando's slides.
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    28
\usepackage{ae,aecompl}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    29
\usepackage{mathpazo,courier,euler}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    30
\usepackage[scaled=.95]{helvet}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    31
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    32
\definecolor{darkgreen}{rgb}{0,0.5,0}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    33
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    34
\usepackage{listings}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    35
\lstset{language=Python,
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    36
    basicstyle=\ttfamily\bfseries,
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    37
    commentstyle=\color{red}\itshape,
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    38
  stringstyle=\color{darkgreen},
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    39
  showstringspaces=false,
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    40
  keywordstyle=\color{blue}\bfseries}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    41
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    42
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    43
% Macros
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    44
\setbeamercolor{emphbar}{bg=blue!20, fg=black}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    45
\newcommand{\emphbar}[1]
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    46
{\begin{beamercolorbox}[rounded=true]{emphbar} 
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    47
      {#1}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    48
 \end{beamercolorbox}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    49
}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    50
\newcounter{time}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    51
\setcounter{time}{0}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    52
\newcommand{\inctime}[1]{\addtocounter{time}{#1}{\tiny \thetime\ m}}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    53
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    54
\newcommand{\typ}[1]{\lstinline{#1}}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    55
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    56
\newcommand{\kwrd}[1]{ \texttt{\textbf{\color{blue}{#1}}}  }
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    57
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    58
% Title page
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    59
\title{Python for Scientific Computing : Lists and Tuples}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    60
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    61
\author[FOSSEE] {FOSSEE}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    62
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    63
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    64
\date{}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    65
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    66
% DOCUMENT STARTS
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    67
\begin{document}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    68
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    69
\begin{frame}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    70
  \maketitle
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    71
\end{frame}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    72
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    73
\begin{frame}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    74
  \frametitle{About the Session}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    75
  \begin{block}{Python data structures}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    76
    \begin{itemize}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    77
    \item Lists
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    78
    \item Tuples
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    79
    \end{itemize}  
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    80
  \end{block}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    81
\end{frame}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    82
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    83
\begin{frame}[fragile]
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    84
  \frametitle{Summary}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    85
  \begin{block}{}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    86
    \begin{itemize}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    87
    \item Lists
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    88
      \begin{itemize}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    89
      \item Initialization
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    90
      \item Operations
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    91
      \item Slicing
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    92
      \item Striding
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    93
      \end{itemize}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    94
    \item Tuples
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    95
    \end{itemize}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    96
  \end{block}    
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    97
\end{frame}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    98
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    99
\begin{frame}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   100
  \frametitle{Thank you!}  
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   101
  \begin{block}{}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   102
  This session is part of \textcolor{blue}{FOSSEE} project funded by:
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   103
  \begin{center}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   104
    \textcolor{blue}{NME through ICT from MHRD, Govt. of India}.
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   105
  \end{center}  
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   106
  \end{block}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   107
\end{frame}
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   108
d3005da44457 Added lists.tex.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
   109
\end{document}