book.tex 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. % thanks to http://www.math.mun.ca/~edgar/thesis.html for
  2. % giving me a document to start with
  3. \documentclass[a4paper,12pt,oneside]{book}
  4. \usepackage{amssymb} % needed for math
  5. \usepackage{amsmath} % needed for math
  6. \usepackage{makeidx} % for automatically generation of an index
  7. \usepackage{hyperref} % links in the text, has to be after makeidx
  8. \usepackage[utf8]{inputenc} % this is needed for umlauts
  9. \usepackage[ngerman]{babel} % this is needed for umlauts
  10. \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
  11. \usepackage[margin=2.5cm]{geometry} %layout
  12. \usepackage{fancyhdr} % needed for the footer
  13. \usepackage{lastpage} % needed for the footer
  14. \usepackage{color, colortbl} % farbige Tabellenzellen
  15. \usepackage{framed}
  16. \usepackage{enumerate} % for advanced numbering of lists
  17. \usepackage{tabularx}
  18. \usepackage{mystyle} % create mystyle.sty where you put all your own \newcommand statements
  19. \clubpenalty = 10000 % Schusterjungen verhindern
  20. \widowpenalty = 10000 % Hurenkinder verhindern
  21. \makeindex
  22. \hypersetup{
  23. pdfauthor = {Martin Thoma},
  24. pdfkeywords = {Graphentheorie},
  25. pdftitle = {Graphentheorie}
  26. }
  27. \begin{document}
  28. \author{Martin Thoma}
  29. \title{Test Book}
  30. \maketitle % generate title page
  31. \frontmatter % start roman numbering
  32. \tableofcontents
  33. \include{preface}
  34. \mainmatter % start the arabic numbering for the real content
  35. \include{chapter1}
  36. \include{chapter2}
  37. \include{chapter3}
  38. \backmatter % the real content ends here
  39. \bibliographystyle{amsalpha} %The style you want to use for references.
  40. \bibliography{refs} %The files containing all the articles and books you ever referenced.
  41. \clearpage
  42. \addcontentsline{toc}{chapter}{Index}
  43. \printindex % print the automatically created index
  44. \end{document}