1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
1 % Created 2010-11-09 Tue 17:41 |
2 %Tutorial slides on Python. |
2 \documentclass[presentation]{beamer} |
3 % |
3 \usepackage[latin1]{inputenc} |
4 % Author: FOSSEE |
4 \usepackage[T1]{fontenc} |
5 % Copyright (c) 2009, FOSSEE, IIT Bombay |
5 \usepackage{fixltx2e} |
6 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
6 \usepackage{graphicx} |
|
7 \usepackage{longtable} |
|
8 \usepackage{float} |
|
9 \usepackage{wrapfig} |
|
10 \usepackage{soul} |
|
11 \usepackage{t1enc} |
|
12 \usepackage{textcomp} |
|
13 \usepackage{marvosym} |
|
14 \usepackage{wasysym} |
|
15 \usepackage{latexsym} |
|
16 \usepackage{amssymb} |
|
17 \usepackage{hyperref} |
|
18 \tolerance=1000 |
|
19 \providecommand{\alert}[1]{\textbf{#1}} |
7 |
20 |
8 \documentclass[14pt,compress]{beamer} |
21 \title{Getting started with Lists} |
9 %\documentclass[draft]{beamer} |
22 \author{FOSSEE} |
10 %\documentclass[compress,handout]{beamer} |
23 \date{2010-09-14 Tue} |
11 %\usepackage{pgfpages} |
|
12 %\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] |
|
13 |
24 |
14 % Modified from: generic-ornate-15min-45min.de.tex |
25 \usetheme{Warsaw}\useoutertheme{infolines}\usecolortheme{default}\setbeamercovered{transparent} |
15 \mode<presentation> |
|
16 { |
|
17 \usetheme{Warsaw} |
|
18 \useoutertheme{infolines} |
|
19 \setbeamercovered{transparent} |
|
20 } |
|
21 |
|
22 \usepackage[english]{babel} |
|
23 \usepackage[latin1]{inputenc} |
|
24 %\usepackage{times} |
|
25 \usepackage[T1]{fontenc} |
|
26 |
|
27 \usepackage{ae,aecompl} |
|
28 \usepackage{mathpazo,courier,euler} |
|
29 \usepackage[scaled=.95]{helvet} |
|
30 |
|
31 \definecolor{darkgreen}{rgb}{0,0.5,0} |
|
32 |
|
33 \usepackage{listings} |
|
34 \lstset{language=Python, |
|
35 basicstyle=\ttfamily\bfseries, |
|
36 commentstyle=\color{red}\itshape, |
|
37 stringstyle=\color{darkgreen}, |
|
38 showstringspaces=false, |
|
39 keywordstyle=\color{blue}\bfseries} |
|
40 |
|
41 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
42 % Macros |
|
43 \setbeamercolor{emphbar}{bg=blue!20, fg=black} |
|
44 \newcommand{\emphbar}[1] |
|
45 {\begin{beamercolorbox}[rounded=true]{emphbar} |
|
46 {#1} |
|
47 \end{beamercolorbox} |
|
48 } |
|
49 \newcounter{time} |
|
50 \setcounter{time}{0} |
|
51 \newcommand{\inctime}[1]{\addtocounter{time}{#1}{\tiny \thetime\ m}} |
|
52 |
|
53 \newcommand{\typ}[1]{\lstinline{#1}} |
|
54 |
|
55 \newcommand{\kwrd}[1]{ \texttt{\textbf{\color{blue}{#1}}} } |
|
56 |
|
57 % Title page |
|
58 \title{Your Title Here} |
|
59 |
|
60 \author[FOSSEE] {FOSSEE} |
|
61 |
|
62 \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay} |
|
63 \date{} |
|
64 |
|
65 % DOCUMENT STARTS |
|
66 \begin{document} |
26 \begin{document} |
67 |
27 |
68 \begin{frame} |
28 \maketitle |
69 \maketitle |
|
70 \end{frame} |
|
71 |
29 |
72 \begin{frame}[fragile] |
|
73 \frametitle{Outline} |
|
74 \begin{itemize} |
|
75 \item |
|
76 \end{itemize} |
|
77 \end{frame} |
|
78 |
30 |
79 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
80 %% All other slides here. %% |
|
81 %% The same slides will be used in a classroom setting. %% |
|
82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
83 |
31 |
84 \begin{frame}[fragile] |
32 |
85 \frametitle{Summary} |
33 |
86 \begin{itemize} |
|
87 \item |
|
88 \end{itemize} |
|
89 \end{frame} |
|
90 |
34 |
91 \begin{frame} |
35 \begin{frame} |
92 \frametitle{Thank you!} |
36 \frametitle{Tutorial Plan} |
93 \begin{block}{} |
37 \label{sec-1} |
94 \begin{center} |
38 \begin{itemize} |
95 This spoken tutorial has been produced by the |
39 |
96 \textcolor{blue}{FOSSEE} team, which is funded by the |
40 \item How to create lists\\ |
97 \end{center} |
41 \label{sec-1_1}% |
98 \begin{center} |
42 \item Structure of lists\\ |
99 \textcolor{blue}{National Mission on Education through \\ |
43 \label{sec-1_2}% |
100 Information \& Communication Technology \\ |
44 \item Access list elements\\ |
101 MHRD, Govt. of India}. |
45 \label{sec-1_3}% |
102 \end{center} |
46 \item Append elements to lists\\ |
103 \end{block} |
47 \label{sec-1_4}% |
|
48 \item Deleting elements from lists\\ |
|
49 \label{sec-1_5}% |
|
50 \end{itemize} % ends low level |
|
51 \end{frame} |
|
52 \begin{frame} |
|
53 \frametitle{Summary} |
|
54 \label{sec-2} |
|
55 |
|
56 |
|
57 l=[1,2,3,4] |
|
58 l[-1] |
|
59 l.append(5) |
|
60 del(l\footnote{FOOTNOTE DEFINITION NOT FOUND: 2 }) |
|
61 len(l) |
104 \end{frame} |
62 \end{frame} |
105 |
63 |
106 \end{document} |
64 \end{document} |