Alessio Caiazza is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

nolith / ruby-beamer

My template for beamer slides with ruby code examples

Clone this repository (size: 534.4 KB): HTTPS / SSH
hg clone https://bitbucket.org/nolith/ruby-beamer
hg clone ssh://hg@bitbucket.org/nolith/ruby-beamer

ruby-beamer / slides.tex

%\setbeameroption{show notes on second screen} 
%\note{Some notes for the current slide}   
%\usepackage{xcolor}
\usepackage{url}  
\usepackage{pdfsync}

\usepackage{relsize}  
\usepackage{listings}  
%\usepackage{pdfpages}
%\usepackage{color}
%\usepackage{beamerthemeruby}
%\usetheme{Madrid}
\usetheme[pageofpages=di,% String used between the current page and the
                         % total page count.
          bullet=circle,% Use circles instead of squares for bullets.
          titleline=true,% Show a line below the frame title.
          alternativetitlepage=true,% Use the fancy title page.
          titlepagelogo=images/ruby-lang-logo,% Logo for the first page.
          %watermark=licenza_small,% Watermark used in every page.
          %watermarkheight=2px,% Height of the watermark.
          %watermarkheightmult=4,% The watermark image is 4 times bigger
                                % than watermarkheight.
          ]{Torino}

%colori per i box
\setbeamercolor{lowercolor}{fg=black,bg=white}
\setbeamercolor{uppercolor}{fg=black,bg=chameleongreen2}
\setbeamercolor{section in toc}{fg=chameleongreen3}
\setbeamercolor{structure}{fg=chameleongreen3}

\newenvironment{colorblock}
{\begin{beamerboxesrounded}[upper=uppercolor,lower=lowercolor,shadow=true]}
{\end{beamerboxesrounded}}

%\usetheme{Simple}
%\usepackage{rubytheme}
%\usepackage{lmodern}
\usepackage{pgf}
\usepackage{url}

\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[italian,english]{babel}
%\frenchspacing

%
%


\setbeamertemplate{navigation symbols}{}   
\setbeamercovered{transparent=30}

% Directory ove sono presenti le Immagini.
\graphicspath{{images/}}

%\beamersetleftmargin{0.3em}
%\beamersetrightmargin{0.3em}

\title{Corso di Ruby}
\author{Alessio Caiazza\\
{\smaller ac@abisso.org}}
\institute{Abisso Dev - \url{http://abisso.org}}
\date{\today}
%immagine copertina
%\titlegraphic{} 

% Per inserire un Logo 
\pgfdeclareimage[height=1.15cm]{Logo}{images/ruby-lang-logo}
\logo{\pgfuseimage{Logo}}
 
% have this if you'd like a recurring outline
\AtBeginSection[]  % "Beamer, do the following at the start of every section"
{
\begin{frame}<beamer> 
\frametitle{Outline} % make a frame titled "Outline"
\tableofcontents[currentsection]  % show TOC and highlight current section
\end{frame}
}

                
\begin{document}
        \selectlanguage{italian}
        \lstset{language=Ruby,columns=fullflexible,showstringspaces=false,
          aboveskip=0.4em,
          belowskip=0em,
          numbers=left,
          numberstyle=\tiny\texttt,
          numbersep=1em,  
          xleftmargin=2em,
          frame=lines,
          framexleftmargin=2em,
          backgroundcolor=\color{RubyBack},
          rulecolor=\color{RubyFrame}}

        \newcommand{\stitle}[1]{\textbf{#1}\medskip}
    %TODO: format wolf completo nella prima pagina
        %\frame[plain]{\usebackgroundtemplate{  
        %       \includegraphics[width=\paperwidth, 
        %       height=\paperheight]{images/wolf_cover} 
        %       }
        %       \titlepage
        %}


        %\setcounter{slide}{0}

        % Prima pagina
        \begin{frame}[t,plain]
        \titlepage
        \end{frame}
        % Indice
        %\frame{\tableofcontents}

        \include{introduzione}
        %\include{tipi_di_dato}
        %\include{strumenti}
        %\include{dettaglio}
        %\include{licenza}

\end{document}