\documentclass[11pt,a4paper,twoside]{article}
  \usepackage[T1]{fontenc}
  % \usepackage[applemac]{inputenc}
  \usepackage[latin1]{inputenc}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  % Format de la  mise en page
  \setlength{\hoffset}{-1in}
  \setlength{\voffset}{-1in}
  \setlength{\oddsidemargin}{2cm}
  \setlength{\evensidemargin}{2cm}
  \setlength{\topmargin}{1.8cm}
  % \setlength{\headheight}{0cm}
  % \setlength{\headsep}{0cm}
  \setlength{\textwidth}{16.5cm}
  \setlength{\textheight}{24.0cm}


  \usepackage{pst-uml}
  
  
  % pour les environnement d'exemple Latex...
  \usepackage{fancyvrb}
  \usepackage[pstricks]{fvrb-ex}
  % option pour le package fancyverb (pour \VerbatimInput)
  \fvset{%
         frame=single,%
         numbers=left,%
		 baselinestretch=0.9,%
		 gobble=0,% nbr de caratere de debut a ignorer
		 fontsize=\footnotesize%
  }
  
  % \providecommand{\showgrid}{\psgrid[subgriddiv=0, griddots=10]}
  
  \DefineShortVerb{\|}
  % \UndefineShortVerb{\|}  % pour annuler 

  \pagestyle{headings}
  

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
  % Quelques commandes locales
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
  % \printtime
  % 
  % commande d'impression de l'heure courante
  % 
  % Exemple : "Fichier compil\'{e} le \today{} \`{a} \printtime."
  \usepackage{calc}
  \usepackage{ifthen}
  \newcounter{hours}\newcounter{minutes}
  \newcommand{\printtime}{%
    \setcounter{hours}{\time/60}%
    \setcounter{minutes}{\time-\value{hours}*60}%
    \thehours h%
    % on veut obtenir 15h03mn et non 15h3mn...
    \ifthenelse{\theminutes<10}{0}{}\theminutes mn%
  }
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
  % Quelques abbreviations
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
  
  % Conventions g\'{e}n\'{e}rales pour les formats de pr\'{e}sentation
  \newcommand{\strong}[1]{\textbf{\emph{#1}}} % plus fort que \emph
  \newcommand{\tech}[1]{\textsf{#1}}          % terme technique
  \newcommand{\file}[1]{\texttt{#1}} % noms de fichiers et de r\'{e}pertoires
  \newcommand{\menu}[1]{\fbox{#1}}       % nom d'un menu/sous-menu
  \newcommand{\key}[1]{\fbox{\textbf{#1}}}  % touche du clavier
  
  % abreviations locales a ce document :
  \newcommand{\uml}{\textsc{uml}} 
  \newcommand{\pstricks}{\texttt{PSTricks}} 
  \newcommand{\postscript}{\texttt{PostScript}} 
  \newcommand{\pstuml}{\texttt{pst-uml}} 
  % \newcommand{\bs}{\backslash}
  % \newcommand{\bs}{\backslash}
  
  % Pour les noms de commande TeX
  % Exemple : \cs{fbox} => \fbox
  \DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}

\usepackage[colorlinks,linktocpage]{hyperref}
%\usepackage{french}
\usepackage[francais]{babel} % idem frenchb mais PAS french !
  % La suite evite que Babel impose un espace devant ":" mais n'est
  % pas disponible sur les vielles versions de Babel (comme à l'ENSTA).
\NoAutoSpaceBeforeFDP
      
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{Exemple de diagrammes utilisant  \pstuml}
\author{%
   Maurice \textsc{Diamantini}%
   \thanks{avec l'aide précieuse de Denis \textsc{Girou}} %
   (email : \texttt{diam@ensta.fr})
}
\date{%
   Compilé le \today{} à \printtime{}.%
}
\maketitle

\tableofcontents
\clearpage

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\section{Exemple de diagramme de classe}

\input{diagClass.tex}
\VerbatimInput{diagClass.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\section{Exemple de diagramme des cas d'utilisation}


\input{diagCase.tex}
\VerbatimInput{diagCase.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\section{Exemple de diagramme de séquences}


\input{diagSeq.tex}
\VerbatimInput{diagSeq.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\section{Exemple de diagramme d'états}


\input{diagState.tex}
\VerbatimInput{diagState.tex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% pour connaitre le numero de la derniere page
\label{verylast}\mbox{}

\end{document}


