%initialisations---------------------------------------------------------------- \documentclass[french,11pt,a4paper,twoside,openright]{report} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage[francais]{babel} \usepackage{a4} \usepackage{ulem} \usepackage{multirow} \usepackage[dvips]{graphics} \usepackage{vmargin} \usepackage{fancyhdr} \usepackage{oldstyle} \usepackage{listings} \usepackage{verbatim} %fin des initialisations-------------------------------------------------------- \pagestyle{fancyplain} \addtolength{\headwidth}{\marginparsep} \addtolength{\headwidth}{\marginparwidth} % titre de chapitre \renewcommand{\chaptermark}[1]{\markboth{#1} {}} % titre de section \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} \lhead[\fancyplain{}{\bfseries\textos{\thepage}}]{\fancyplain{}{\bfseries\rightmark}} \rhead[\fancyplain{}{\bfseries\leftmark}]{\fancyplain{}{\bfseries\textos{\thepage}}} \cfoot{\fancyplain{\textos{\thepage}}{}} \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}} \def\addcontentsline#1#2#3{% \addtocontents{#1}{\protect\contentsline{#2}{#3}{\textos{\thepage}}}} % \setmargrb{leftmargin}{topmargin}{rightmargin}{bottommargin} \setmargrb{1.5cm}{2cm}{1.5cm}{4cm} \begin{document} \renewcommand{\chaptername}{Section} \newcommand{\bracebits}{$\underbrace{\hspace{2cm}}$} %page de garde \title{Projet de C\\ Rapport \vspace{1.0cm}} \author{Vagner Alain, Noble Nicolas\vspace{2.0cm}} \date{\textit{dernière révision: \today}} \maketitle \strut\thispagestyle{empty} \vfill \pagebreak \setcounter{page}{1} \tableofcontents \clearemptydoublepage \input{intro} \clearemptydoublepage \part{Analyse} \input{description} \clearemptydoublepage \input{algo} \clearemptydoublepage \part{Synthèse} \input{manuel} \clearemptydoublepage \input{exemples} \clearemptydoublepage \input{outils} \clearemptydoublepage \chapter{Code source} \lstset{language=C,basicstyle=\scriptsize,stringspaces=false} \input{source} \clearemptydoublepage \input{conclusion} \clearemptydoublepage \input{bib} \clearpage \strut\thispagestyle{plain} \begin{tiny} \begin{center} Cette documentation a été réalisée sous Linux Slackware 7.1 à l'aide de \LaTeX\ et cvs. \end{center} \end{tiny} \end{document}