Advertisement
Guest User

ConTeXt - Headers and Footers

a guest
Jul 16th, 2011
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.76 KB | None | 0 0
  1. % Template for using with standard ConTeXt.
  2. %
  3. % http://wiki.contextgarden.net/Main_Page
  4.  
  5. % ============================================================================ %
  6. %                                                                              %
  7. %          Setup Area (sorted by category and within alphabetically)           %
  8. %                                                                              %
  9. % ============================================================================ %
  10.  
  11. % ==============
  12. % Input Encoding
  13. % ==============
  14. \enableregime[utf-8]
  15.  
  16. % ====================
  17. % Hyphenation Language
  18. % ====================
  19. \language[de]
  20.  
  21. % =================================================================
  22. % Auto-Generated Language Elements (for instance table of contents)
  23. % =================================================================
  24. \mainlanguage[de]
  25.  
  26. % =======================
  27. % Setup Specific Commands
  28. % =======================
  29. \setupbodyfont[12pt]
  30. \setupcolor[hex]
  31. \setupcolors[state=start]
  32. \setupcombinedlist
  33. [content]
  34. [
  35.     alternative=c,
  36.     interaction=all,
  37.     level=1,
  38. ]
  39. \setupexternalfigures[directory={../Bilder}]
  40. \setupfooter
  41. [text]
  42. [
  43.     state=start,
  44.     before=\hairline,
  45.     style=normal,
  46. ]
  47. \setupfootertexts[{Praktikumsbericht}][{SS 2011}][{SS 2011}][{Praktikumsbericht}]
  48. % skipping headers and footers on a chapter page
  49. % \setuphead
  50. % [chapter]
  51. % [
  52. %   header=high,
  53. %   footer=none,
  54. % ]
  55. \setupheader
  56. [text]
  57. [
  58.     state=start,
  59.     after=\hairline,
  60.     style=normal,
  61. ]
  62. \setupheadertexts[{\getmarking[chapternumber]\ \getmarking[chapter]}][{\pagenumber}][{\pagenumber}][{\getmarking[chapternumber]\ \getmarking[chapter]}]
  63. \setupinteraction
  64. [
  65.     state=start,
  66.     author={},
  67.     keyword={},
  68.     subtitle={},
  69.     title={},
  70. ]
  71. \setuppagenumbering[location=]
  72. % paper size (first arg = typesetting area, second arg = printing area)
  73. \setuppapersize[A4][A4]
  74. \setupoutput[pdf]
  75. \setupwhitespace[big]
  76.  
  77. % =====================
  78. % User-Defined Commands
  79. % =====================
  80. \definecolor[christmasblue][h=2A8FBD]
  81. \definecolor[elleetaitbelle][h=7FAF1B]
  82. \definecolor[lickablelips][h=A40802]
  83.  
  84. % ============================================================================ %
  85. %                                                                              %
  86. %                                  Text Area                                   %
  87. %                                                                              %
  88. % ============================================================================ %
  89.  
  90. \starttext
  91.  
  92. \page[header,footer]
  93.  
  94. \completecontent
  95.  
  96. \input Figures.tex
  97. \input Praktikumsbericht-01-Ausbildungsstelle.tex
  98. \input Praktikumsbericht-02-Ausbildung
  99. \input Praktikumsbericht-03-Schwerpunktthema
  100. \input Literaturverzeichnis
  101.  
  102. \stoptext
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement