Latex course for IAS IEEE branch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
904 B

  1. \documentclass[draft,titlepage]{article}
  2. \usepackage{lipsum}
  3. \def\frontmatter{%
  4. \pagenumbering{roman}
  5. \setcounter{page}{1}
  6. \renewcommand{\thesection}{\Roman{section}}
  7. }%
  8. \def\mainmatter{%
  9. \newpage
  10. \pagenumbering{arabic}
  11. \setcounter{page}{1}
  12. \setcounter{section}{0}
  13. \renewcommand{\thesection}{\arabic{section}}
  14. }%
  15. \def\backmatter{%
  16. \setcounter{section}{0}
  17. \renewcommand{\thesection}{\Alph{section}}
  18. }%
  19. \title{The title}
  20. \author{Gerardo Marx Chávez Campos}
  21. \begin{document}
  22. \maketitle
  23. \frontmatter
  24. \section{Why Do This?}
  25. \lipsum[1]
  26. \section{Because I Can!}
  27. \lipsum[2]
  28. \newpage
  29. \tableofcontents
  30. \mainmatter
  31. \section{See? It works!}
  32. \lipsum[3]
  33. \section{It's the best this way!}
  34. \lipsum[4]
  35. \backmatter
  36. \section{And We Even Get Appendices!}
  37. \lipsum[1]
  38. \end{document}
  39. %%% Local Variables:
  40. %%% mode: latex
  41. %%% TeX-master: t
  42. %%% End: