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