Advertisement
Guest User

Untitled

a guest
Mar 6th, 2017
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.46 KB | None | 0 0
  1. \documentclass{book}
  2.  
  3. \usepackage[utf8]{inputenc}
  4. \usepackage{lipsum}
  5. \usepackage[Lenny]{fncychap}
  6.  
  7. \renewcommand\contentsname{Table des mati\`eres}
  8.  
  9. \usepackage[colorlinks=true,
  10.    linkcolor=red,
  11.    urlcolor=blue,
  12.    pdftitle={Dossier de Candidature},
  13.    pdfauthor={Dimitrios S. Anagnostou}]{hyperref}
  14.  
  15. \usepackage{fancyhdr}
  16.  
  17. \fancypagestyle{mainmatter-pages}{%
  18.   \fancyhf{}% Clear header/footer
  19.   \renewcommand{\headrulewidth}{0pt}% Remove header rule
  20.   \renewcommand{\footrulewidth}{0pt}% Remove footer rule
  21.   \fancyfoot[L]{\hyperref[ToC-first-page]{Jump to Contents}}
  22.  \fancyfoot[C]{\thepage}
  23. }
  24. \let\oldtableofcontents\tableofcontents
  25. \renewcommand{\tableofcontents}{%
  26.   \clearpage
  27.   \phantomsection% Place hyperlink marker
  28.   \label{ToC-first-page}% Set \label for hyperlink
  29.   \oldtableofcontents
  30. }
  31. \let\oldmainmatter\mainmatter
  32. \renewcommand{\mainmatter}{%
  33.   \clearpage
  34.   \oldmainmatter
  35.   \pagestyle{mainmatter-pages}%
  36. }
  37.  
  38. \usepackage[affil-it]{authblk}
  39.  
  40. \begin{document}
  41.  
  42. \title{DOSSIER DE CANDIDATURE}
  43. \author{Dimitrios Papas\thanks{vbkvbkvbdkvbd}}
  44.  
  45. \affil{
  46. Université\ldots}
  47.  
  48. \date{\begin{center}
  49. Docteur en Mécanique
  50. \end{center}}
  51.  
  52. \maketitle \thispagestyle{empty}
  53.  
  54. \frontmatter  
  55.  
  56. \tableofcontents
  57.  
  58. \chapter*{Avant propos}
  59. \addcontentsline{toc}{chapter}{Avant propos}
  60. \lipsum
  61.  
  62. \mainmatter  
  63.  
  64. \chapter{First}
  65.  
  66. \section{First section}
  67. \lipsum
  68.  
  69. \chapter{Second}
  70. \section{First section}
  71. \lipsum
  72.  
  73. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement