\documentclass{beamer}

\usepackage{graphics}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[latin1]{inputenc}

\usepackage{listings}
\lstset{showstringspaces=false,frame=trBL,frameround=tttt,tabsize=8,basicstyle=\tiny,breaklines=true,breakatwhitespace=true}
\lstdefinestyle{bash}{language=bash}
\lstdefinestyle{Perl}{language=Perl}
\lstdefinestyle{C++}{language=C++}
\lstdefinestyle{DTD}{language=XML}
\lstdefinestyle{XML}{language=XML,usekeywordsintag=false,markfirstintag=true}
\newcommand{\includecode}[2]{\lstinputlisting[style=#1]{#2}}
%\lstnewenvironment{code}{}{}
\lstnewenvironment{code_bash}{\lstset{style=bash}}{}
\lstnewenvironment{code_perl}{\lstset{style=Perl}}{}
\lstnewenvironment{code_cpp}{\lstset{style=C++}}{}
\lstnewenvironment{code_dtd}{\lstset{style=DTD}}{}
\lstnewenvironment{code_xml}{\lstset{style=XML}}{}

\newcommand{\textcode}[1]{{\small {\tt #1}}}

% ---- format de page A4
% 	\setlength{\textwidth }{16cm}	% largeur de ligne
% 	\setlength{\textheight}{23cm}   % hauteur du texte
	\setlength{\oddsidemargin}{-17mm} % marge pages impaires
	\setlength{\evensidemargin}{-17mm}% marge pages paires
% 	\setlength{\topmargin}{0cm} 	
% 	\setlength{\headheight}{14pt} 
% 	\setlength{\headsep}{0.5cm} 

\title[Introdution to SOFA]{An Introduction to Sofa}
\author[Faure]{%
