Vous pouvez voir le rendu avec les liens ci-dessous [[http://tchiling.iiens.net/Documents/TeX/Rapport/Rapport.pdf|Le .pdf]] [[http://tchiling.iiens.net/Documents/TeX/Rapport/rapport.zip|Le .zip (avec le code et avec les images)]] %%%%%%%%%%%% Tails %%%%%%%%%%% % % % tristan.tchilinguirian@ensiie.fr % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[a4paper, 12pt]{article} %Package %classique \usepackage[utf8x]{inputenc} %ATTENTION, pour les accents, si vous utilisez window, adaptez ! \usepackage[T1]{fontenc} \usepackage[frenchb]{babel} %Si c'est en anglais ... mettez english ^^ %math \usepackage{amsmath,amsfonts,amsthm,latexsym,amssymb} %image et couleur \usepackage{graphicx, xcolor, color} %lien cliquable et referencement des pages (au cas ou) \usepackage[pdftex]{hyperref} \hypersetup{ backref=true, %permet d'ajouter des liens dans... pagebackref=true,%...les bibliographies hyperindex=true, %ajoute des liens dans les index. colorlinks=true, %colorise les liens breaklinks=true, %permet le retour à la ligne dans les liens trop longs urlcolor= blue, %couleur des hyperliens linkcolor= black, %couleur des liens internes bookmarks=true, %créé des signets pour Acrobat bookmarksopen=true, pdftitle={Rapport de Stage}, %informations apparaissant dans pdfauthor={}, %dans les informations du document pdfsubject={Rapport de Stage} } %nouvelle police \usepackage{palatino,mathpazo} %pour les tests \usepackage{lipsum} %Pour le symbole € \usepackage{textcomp} %utiliser \texteuro plutôt que €, c'est plus jolie %%%%Mise en page et mise en place des en-têtes \usepackage[a4paper]{geometry} \usepackage{fancyhdr} %Voir en dessous pour son paramétrage (dans la commande /miseenpage) \geometry{top=2cm, bottom=1.5cm, left=1cm, right=1cm}\geometry{textheight=28cm,textwidth=19cm} %%On curstomize les sections et sous sections %chiffre romain dans la section \renewcommand{\thesection}{\Roman{section}} %mettre les sections en couleurs \usepackage{sectsty} % 'section' \definecolor{SecCol}{cmyk}{0.85,0.26,0.2,0.68} \sectionfont{\color{SecCol}{}} % 'soussection' \definecolor{SSecCol}{cmyk}{0.45,0.46,1,0.38} \subsectionfont{\color{SSecCol}{}} %COMMANDE %exemple \newcommand{\diviser}[2]{\frac{#1}{#2}}, \diviser{1}{2} fera : \frac{1}{2} %\DeclareMathOperator{\card}{card} % Pour inserser de nouveau truc dans les maths (plus jolie) %%%% Inclure les images du net %moche mais efficace, il retelecharge les images du net à chaque fois au cas ou (mauvaise surprise) %A besoin d'un dossier Image pour fonctionner \usepackage{ifmtarg} \makeatletter \newcounter{imagecompteur} \setcounter{imagecompteur}{0} \newcommand{\rename}[1]{\immediate\write18{cp image.png Image/#1}} \newcommand{\image}[2][]{\immediate\write18{wget #2 -O image}\immediate\write18{convert image image.png}\rename{\theimagecompteur .png}\immediate\write18{rm Image*}\immediate\write18{rm image.png} \@ifmtarg{#1}{% #1 est-il vide ? \includegraphics[width= 0.75 \linewidth]{Image/\theimagecompteur .png} }{% \includegraphics[width=#1\linewidth]{Image/\theimagecompteur .png} }% \addtocounter{imagecompteur}{1}} \makeatother \newcommand{\img}[2][]{\image[#1]{#2}} %%Attention, ca marche avec pdflatex, avec comme option shell-escape %opening %%%Mise en page de la page de garde (titre) \renewcommand{\author}[1]{\renewcommand{\author}{#1}} \renewcommand{\date}[1]{\renewcommand{\date}{#1}} \renewcommand{\title}[1]{\renewcommand{\title}{#1}} \newcommand{\mail}[1]{#1} \renewcommand{\mail}[1]{\renewcommand{\mail}{\small\href{mailto:#1}{#1}}} \newcommand{\maitre}[1]{#1} \renewcommand{\maitre}[1]{\renewcommand{\maitre}{#1}} \newcommand{\mailmaitre}[1]{#1} \renewcommand{\mailmaitre}[1]{\renewcommand{\mailmaitre}{\small\href{mailto:#1}{#1}}} %Sale, je peux faire plus propre (sans erreur). Bientot dispo ! \makeatletter \renewcommand{\maketitle}{ \thispagestyle{empty}\large \begin{minipage}{\textwidth} \vspace{0.15\textheight} \end{minipage} \begin{minipage}{0.33 \textwidth} $ $ \end{minipage}\hrull\begin{minipage}{0.66\textwidth} \begin{flushright} \title \end{flushright} \rule{\linewidth}{1pt} \end{minipage} \vspace{24pt} \begin{minipage}{0.33 \textwidth} \author \\ \mail \end{minipage}\hrull\begin{minipage}{0.66\textwidth} \begin{flushright} \date \end{flushright} \end{minipage} \vspace{0.25\textheight} \begin{center} {\Huge\title} \end{center} \vspace{0.37\textheight} \begin{minipage}{0.15 \textwidth}\includegraphics[width=\linewidth]{Entreprise.png} \end{minipage}\hrull\begin{minipage}{0.02 \textwidth}$ $\end{minipage}\hrull\begin{minipage}{0.55 \textwidth}\small Maître de stage : \maitre \\ \mailmaitre \end{minipage}\hrull\begin{minipage}{0.10\textwidth}$ $\end{minipage}\begin{minipage}{0.15\textwidth} \begin{flushright}\includegraphics[width=\linewidth]{Ecole.png}\end{flushright} \end{minipage} } \makeatother \newcommand{\miseenpage}{ \lfoot{} \lhead{} \rhead{\slshape\rightmark} \rfoot{\thepage} \cfoot{} \pagestyle{fancy} \normalsize} \title{Stage de programmation} \author{Tails} \mail{tails@ensiie.fr} \maitre{Tintin (et milou)} \mailmaitre{titin@texas-instrument.fr} \date{juillet-ao\^ut 2012 (2 mois)} \begin{document} \maketitle \miseenpage \clearpage \begin{abstract} Ceci est une sorte de résumé de votre rapport. \end{abstract} \tableofcontents \clearpage \section{Introduction} \subsection{Les Marx Brothers} \begin{itemize} \item \textbf{Le gras, C'est la vie} \item \textit{Un truc en italique} \end{itemize} \subsection{Loprem} \begin{itemize} \item Aubergines \item Richard Nixon \end{itemize} \end{document}