% $Header: /cvsroot/latex-beamer/latex-beamer/examples/beamerexample1.tex,v 1.46 2004/10/07 20:53:07 tantau Exp $ \documentclass{beamer} %\documentclass{article} %\usepackage[envcountsect]{beamerarticle} % For a green structure color use: %\colorlet{structure}{green!50!black} \mode
% only for the article version { \usepackage{fullpage} \usepackage{hyperref} } \mode { \setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10] \usetheme{Warsaw} \usefonttheme[onlysmall]{structurebold} } %\setbeamercolor{math text}{fg=green!50!black} %\setbeamercolor{normal text in math text}{parent=math text} \renewcommand{\arraystretch}{1.25} \newcommand{\rarrow}{\mbox{---\hspace{-8pt}$>$}} \newfont{\devnf}{dnh at 22pt} \newfont{\devno}{dnho at 22pt} \newfont{\devnc}{dnhrc at 22pt} \newfont{\devne}{dnh at 15pt} \hyphenchar\devnf=-1 \hyphenchar\devno=-1 \hyphenchar\devnc=-1 \hyphenchar\devne=-1 #hindiifm=dvnc.ifm #hindifont= \usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade} \usepackage{amsmath,amssymb} \usepackage[latin1]{inputenc} \usepackage{colortbl} \usepackage[english]{babel} %\usepackage{lmodern} %\usepackage[T1]{fontenc} \usepackage{times} \setbeamercovered{dynamic} % % The following defintions are peculiar to this particular % presetation. They have nothing to do with the beamer class % \newcommand{\Lang}[1]{\operatorname{\text{\textsc{#1}}}} \newcommand{\Class}[1]{\operatorname{\mathchoice {\text{\normalfont\small #1}} {\text{\normalfont\small #1}} {\text{\normalfont#1}} {\text{\normalfont#1}}}} \newcommand{\DOF}{\Class{DOF}} \newcommand{\NOF}{\Class{NOF}} \newcommand{\DOFpoly}{\Class{DOF}_{\operatorname{poly}}} \newcommand{\NOFpoly}{\Class{NOF}_{\operatorname{poly}}} \newcommand{\Nat}{\mathbb{N}} \newcommand{\Set}[1]{\{#1\}} \pgfdeclaremask{computer}{beamer-computer-mask} \pgfdeclaremask{apple}{beamer-g4-mask} \pgfdeclareimage[interpolate=true,mask=computer,% width=1.8361cm,height=2cm]{computerimage}{beamer-computer} \pgfdeclareimage[interpolate=true,mask=computer,% width=1.8361cm,height=2cm]{computerworkingimage}{beamer-computerred} \pgfdeclareimage[interpolate=true,mask=apple,% width=1.625cm,height=2cm]{apple}{beamer-g4} \pgfdeclareimage[interpolate=true,mask=apple,% width=1.625cm,height=2cm]{appleworking}{beamer-g4red} \newcommand{\tape}[9]{% \pgfputat{#1}{% \pgfsetlinewidth{0.8pt}% \pgfrect[stroke]{\pgfxy(0,0)}{\pgfxy(4,0.5)}% \pgfsetlinewidth{0.4pt}% \pgfline{\pgfxy(0.5,0)}{\pgfxy(0.5,0.5)}% \pgfline{\pgfxy(1.0,0)}{\pgfxy(1.0,0.5)}% \pgfline{\pgfxy(1.5,0)}{\pgfxy(1.5,0.5)}% \pgfline{\pgfxy(2.0,0)}{\pgfxy(2.0,0.5)}% \pgfline{\pgfxy(2.5,0)}{\pgfxy(2.5,0.5)}% \pgfline{\pgfxy(3.0,0)}{\pgfxy(3.0,0.5)}% \pgfline{\pgfxy(3.5,0)}{\pgfxy(3.5,0.5)}% % \pgfputat{\pgfxy(0.25,0.25)}{\pgfbox[center,center]{#2}}% \pgfputat{\pgfxy(0.75,0.25)}{\pgfbox[center,center]{#3}}% \pgfputat{\pgfxy(1.25,0.25)}{\pgfbox[center,center]{#4}}% \pgfputat{\pgfxy(1.75,0.25)}{\pgfbox[center,center]{#5}}% \pgfputat{\pgfxy(2.25,0.25)}{\pgfbox[center,center]{#6}}% \pgfputat{\pgfxy(2.75,0.25)}{\pgfbox[center,center]{#7}}% \pgfputat{\pgfxy(3.25,0.25)}{\pgfbox[center,center]{#8}}% \pgfputat{\pgfxy(3.75,0.25)}{\pgfbox[center,center]{#9}}% % \pgfputat{\pgfxy(0,0.7)}{\pgfbox[left,base]{\structure{tape}}}% }% % \pgfnodecircle{n1}[virtual]{\pgfrelative{#1}{\pgfxy(0.25,0)}}{2pt}% \pgfnodecircle{n2}[virtual]{\pgfrelative{#1}{\pgfxy(0.75,0)}}{2pt}% \pgfnodecircle{n3}[virtual]{\pgfrelative{#1}{\pgfxy(1.25,0)}}{2pt}% \pgfnodecircle{n4}[virtual]{\pgfrelative{#1}{\pgfxy(1.75,0)}}{2pt}% \pgfnodecircle{n5}[virtual]{\pgfrelative{#1}{\pgfxy(2.25,0)}}{2pt}% \pgfnodecircle{n6}[virtual]{\pgfrelative{#1}{\pgfxy(2.75,0)}}{2pt}% \pgfnodecircle{n7}[virtual]{\pgfrelative{#1}{\pgfxy(3.25,0)}}{2pt}% \pgfnodecircle{n8}[virtual]{\pgfrelative{#1}{\pgfxy(3.75,0)}}{2pt}% } \newcommand{\putmachine}[2]{% \pgfputat{#1}{\pgfbox[center,center]{\pgfuseimage{computerimage}}}% \pgfputat{\pgfrelative{#1}{\pgfxy(0,-1.4)}}{\pgfbox[center,base]{\structure{#2}}}% \pgfnodecircle{machine}[virtual]{\pgfrelative{#1}{\pgfxy(0,1)}}{2pt}% } \newcommand{\putmachineworking}[2]{% \pgfputat{#1}{\pgfbox[center,center]{\pgfuseimage{computerworkingimage}}}% \pgfputat{\pgfrelative{#1}{\pgfxy(0,-1.4)}}{\pgfbox[center,base]{\structure{#2}}}% \pgfnodecircle{machine}[virtual]{\pgfrelative{#1}{\pgfxy(0,1)}}{2pt}% } \newcommand{\putmachinea}[2]{% \pgfputat{#1}{\pgfbox[center,center]{\pgfuseimage{apple}}}% \pgfputat{\pgfrelative{#1}{\pgfxy(0,-1.4)}}{\pgfbox[center,base]{\structure{#2}}}% \pgfnodecircle{machine}[virtual]{\pgfrelative{#1}{\pgfxy(0,1)}}{2pt}% } \newcommand{\putmachineworkinga}[2]{% \pgfputat{#1}{\pgfbox[center,center]{\pgfuseimage{appleworking}}}% \pgfputat{\pgfrelative{#1}{\pgfxy(0,-1.4)}}{\pgfbox[center,base]{\structure{#2}}}% \pgfnodecircle{machine}[virtual]{\pgfrelative{#1}{\pgfxy(0,1)}}{2pt}% } \newcommand{\selectpos}[1]{% \pgfsetlinewidth{0.6pt}% \color{structure}% \pgfsetendarrow{\pgfarrowto}% \pgfnodeconncurve{machine}{n#1}{90}{-90}{.5cm}{.5cm}% } % % The following info should normally be given in you main file: % \title[Beamer presentation with Indian language]{Beamer presentation with Indian language} \author[Kshitij , Ajit ]{% #hindi \devnc ajiita buraDa \inst{1} \and kshitija bhaardwaja \inst{2} \and #endhindi} \institute[#hindi \devnc bhaaratiiya praudyogikii sa.nsthaan mu.nbaI #endhindi]{ \inst{1} {#hindi \devnc bhaaratiiya praudyogikii sa.nsthaan mu.nbaI #endhindi} \and \inst{2}% Summer Project\\ Indian Institute of Technology} \date[DLT 2003]{24 May '05} \subject{Theoretical Computer Science} \pgfdeclaremask{tu}{beamer-tu-logo-mask} \pgfdeclareimage[mask=tu,width=0.6cm]{tu-logo}{beamer-tu-logo} \logo{\vbox{\hbox to 1cm{\hfil\pgfuseimage{tu-logo}}}} \begin{document} \frame{\titlepage} \section*{Outline} \begin{frame} \frametitle{Outline} \tableofcontents[part=1,pausesections] \end{frame} \AtBeginSubsection[] { \begin{frame} \frametitle{Outline} \tableofcontents[current,currentsubsection] \end{frame} } \part{Main Talk} \section[Presentation in #hindi \devne hindii #endhindi]{#hindi \devnc aaii. aaii. Tii. #endhindi } \subsection[Standard Model]{#hindi \devnc bhaaratiiya praudyogikii sa.nsthaan mu.nbaI #endhindi} \begin{frame} \frametitle{Changing pointer at the tape} \begin{columns} \column{4.5cm} \note[item]<1>{Point out that \$ is a marker symbol.} \begin{pgfpicture}{-0.5cm}{1cm}{4cm}{7cm} \only<1| trans:1>{ \putmachine{\pgfxy(1.75,3)}{An image} \tape{\pgfxy(0,5)}{0}{0}{1}{0}{0}{1}{0}{0} \selectpos{1}} \only<2| handout:0| trans:2>{ \putmachineworking{\pgfxy(1.75,3)}{An image} \tape{\pgfxy(0,5)}{\$}{0}{1}{0}{0}{1}{0}{0} \selectpos{2}} \only<3| handout:0| trans:3>{ \putmachineworking{\pgfxy(1.75,3)}{An image} \tape{\pgfxy(0,5)}{\$}{0}{1}{0}{0}{1}{0}{0} \selectpos{8}} \end{pgfpicture} \column{6cm} \begin{block}{{#hindi \devnc hindii me.n prastutii #endhindi}} \begin{itemize} \item { #hindi \devnc ajiita buraDa #endhindi } \alert{#hindi 03005009 #endhindi} \item { #hindi \devnc kshitija bhaaradwaaja #endhindi } \alert{#hindi 03005010 #endhindi} \note[item]<1>{Stress the larger tape alphabet.} \end{itemize} \end{block} \end{columns} \end{frame} \begin{frame} \frametitle{Example of a Graph} \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{6cm} \pgfsetlinewidth{0.8pt} \pgfxyline(-5,0)(5,0) \pgfsetlinewidth{0.4pt} \pgfheaplabeledcentered{2cm}{2.5cm}{$\Class{CFL}$} \pgfheaplabeledcentered{3.5cm}{3cm}{\raise10pt\hbox{}$\Class{DLINSPACE}$} \pgfheaplabeledcentered{5cm}{4cm}{\raise13pt\hbox{}$\Class{NLINSPACE} = \Class{CSL}$} \pgfheaplabeledcentered{6cm}{5cm}{$\Class{PSPACE}$} \note[item]{Explain CSL.} \pgfsetdash{{3pt}{3pt}}{0pt} \pgfheaplabeled{\pgfxy(0,3.3)}{\pgfxy(-5,6)}{\pgfxy(5,6)}{}% \pgfputat{\pgfxy(-4.6,5.75)}{\pgfbox[left,base]{$\Class{PSPACE}\!\text{-hard}$}}% \end{pgfpicture} \note[item]{Point out the connections to formal language theory.} \end{frame} \begin{frame} \frametitle{ #hindi \devnc bhaaratiiya praudyogikii sa.nsthaan mu.nbaI #endhindi} \begin{block}{{#hindi \devnc vibhaaga #endhindi}} {#hindi \devnc kuCha #endhindi } \alert{#hindi \devnc vibhaaga #endhindi} \begin{enumerate} \item { #hindi \devnc rasaayana vibhaaga #endhindi }, \item { #hindi \devnc itihaasa vibhaaga #endhindi}, \item { #hindi \devnc yaa.ntrikii vibhaaga #endhindi } . \end{enumerate} \end{block} \end{frame} \section[Power of Beamer]{Introduction to beamer} \subsection{Some features} \begin{frame}[<+->] \frametitle{Beamer Classes \\ Can be used for various features in presentation} \begin{Definition} This is an \alert{Alert}. \end{Definition} \begin{block}{Frame Hilighting} These blocks in this page are highlighted one by one. \end{block} \begin{block}{Generating ps} This postscript presentation has been made using \alert{itrans+latex+dvips}. \end{block} \end{frame} \subsection[A subsection]{This is a subsection in section Introduction to Beamer} \begin{frame}<1>[label=pspacecomplete] \frametitle{This is the frame Title} \begin{block}{Block} This is a block in the frame. \\ And below is a clickable button that links to another page. \end{block} \only<1| article:0| trans:0| handout:0> { \vskip1em \hyperlink{pspacecomplete<2>}{\beamergotobutton{Proof details}} } \only<2> {% this is only shown in the appendix, where this frame is resumed. \begin{proof} \begin{enumerate} \item Detail One \item Detail Two \item Click return button to go back. \end{enumerate} \end{proof} \only{\hfill\hyperlink{pspacecomplete<1>}{\beamerreturnbutton{Return}}} } \end{frame} \section*{Summary} \subsection*{Further Reading} \begin{frame} \frametitle{For Further Reading} \beamertemplatebookbibitems \begin{thebibliography}{10} \bibitem{sal:b:formal-languages} A.~Salomaa. \newblock {\em Formal Languages}. \newblock Academic Press, 1973. \pause \beamertemplatearticlebibitems \bibitem{dij:j:smoothsort} E.~Dijkstra. \newblock Smoothsort, an alternative for sorting in situ. \newblock {\em Science of Computer Programming}, 1(3):223--233, 1982. \pause \bibitem{FeldmanO1973} E.~Feldman and J.~Owings, Jr. \newblock A class of universal linear bounded automata. \newblock {\em Information Sciences}, 6:187--190, 1973. \pause \end{thebibliography} \end{frame} % % The following appendix material is not shown in the normal course of % the presentation % \appendix \AtBeginSubsection{} \section{\appendixname} \frame{\frametitle{Appendix Outline}\tableofcontents} \subsection{Complete Languages} \againframe{pspacecomplete} \end{document}