From The Compiler, 6 Years ago, written in LaTeX.
Embed
  1. %%%%% Header/footer
  2. \renewcommand*{\chapterheadstartvskip}{\vspace*{-\topskip}}
  3. \usepackage{lastpage}
  4. \usepackage{fancyhdr}
  5.  
  6. % Pages without chapter
  7. \usepackage{fancyhdr}
  8. \pagestyle{fancy}
  9. \fancyhead{}
  10. \fancyhead[L]{\nouppercase \leftmark}
  11. \fancyhead[R]{This is a title}
  12. \fancyfoot{\date{\today}}
  13. \fancyfoot[L]{Florian Bruhin}
  14. \fancyfoot[R]{\thepage/\pageref{LastPage}}
  15.  
  16. % Pages with chapter
  17. \fancypagestyle{plain}{%
  18. \fancyhead{}
  19. \fancyhead[L]{\nouppercase \leftmark}
  20. \fancyhead[R]{This is a title}
  21. \fancyfoot{\date{\today}}
  22. \fancyfoot[L]{Florian Bruhin}
  23. \fancyfoot[R]{\thepage/\pageref{LastPage}}
  24. }
  25.  
  26. % Rule for header/footer
  27. \renewcommand{\headrulewidth}{0.5pt}
  28. \renewcommand{\footrulewidth}{0.5pt}