%description: Modèle pour un livre

% Modèle de document pour LaTeX
% (C) Xavier Perseguers 2002 - xavier.perseguers@epfl.ch

\documentclass[a4paper,11pt]{book}

% ==============================================================================
% HEADERS DEFINITION
% ==============================================================================

\usepackage[french]{babel}
\usepackage{fancyhdr}
\pagestyle{fancy}
% with this we ensure that the chapter and section
% headings are in lowercase.
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\fancyhf{}             % delete current setting for header and footer
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\hspace{-0em}\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{1.6pt}   % make space for the rule
\fancypagestyle{plain}{
  \fancyhead{}         % get rid of headers on plain pages
  \renewcommand{\headrulewidth}{0pt}  % and the line
}

% Leave blank pages completely empty, w/o header

\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  \hbox{}
  \vspace*{\fill}
  \vspace{\fill}
  \thispagestyle{empty}
  \newpage
  \if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother

\usepackage{makeidx}
\usepackage[french]{minitoc}
%\usepackage{mtcoff}	% invalidate the use of minitocs
\usepackage[latin1]{inputenc}
\usepackage{graphics}  % allows insertion of pictures
\usepackage{times}     % use vector fonts instead of bitmap
\usepackage{fancybox}
\usepackage{color}
\usepackage{colortbl}

\title{Title here
\rule{345pt}{1.5pt}}
\date{\today}

\author{Xavier Perséguers EPFL - \texttt{xavier.perseguers@epfl.ch}}

\dominitoc
\makeindex

\begin{document}

\maketitle         % generate the title

\frontmatter

\chapter{Informations générales}

\tableofcontents
\listoffigures

\mainmatter

% ==============================================================================
% INTRODUCTION
% ==============================================================================

\chapter{Introduction}
\minitoc

\section{Synopsis}

Le texte vient ici.

% ==============================================================================
% APPENDIX
% ==============================================================================

\appendix
\chapter{Appendice}

% ==============================================================================
% INDEX
% ==============================================================================

\addcontentsline{toc}{chapter}{Index}
\printindex

\end{document}
