Guest User

Untitled

a guest
Mar 18th, 2018
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.03 KB | None | 0 0
  1. documentclass[fontsize=9pt, BCOR=5mm, ngerman, paper=a4]{scrreprt}
  2. %+------------------------------------------------------------------------------+
  3. %| packages einbinden |
  4. %+------------------------------------------------------------------------------+
  5.  
  6. usepackage[ngerman]{babel}
  7. usepackage[babel,german=quotes]{csquotes}
  8. usepackage{fontspec}
  9. usepackage{hyperref}
  10. usepackage{framed}
  11. usepackage[dvipsnames]{xcolor}
  12. usepackage{graphicx}
  13. usepackage{titletoc}
  14. usepackage{scrpage2}
  15. usepackage{lastpage}
  16. usepackage{geometry}
  17. usepackage{float}
  18. usepackage{tocloft}
  19. usepackage{csquotes}
  20. %+------------------------------------------------------------------------------+
  21. %| settings |
  22. %+------------------------------------------------------------------------------+
  23.  
  24. % —– titletoc - format ToC —– %
  25. titlecontents{chapter}[1.5em]{addvspace{1pc}bfseries}{contentslabel{1.5em}}
  26. {hspace*{-1.5em}}{titlerule*[0.3pc]{.}contentspage}
  27. titlecontents{section}[3.7em]{}{contentslabel{2.2em}}{}
  28. {titlerule*[0.3pc]{.}contentspage}
  29. titlecontents{subsection}[6.7em]{}{contentslabel{2.95em}}{}
  30. {titlerule*[0.3pc]{.}contentspage}
  31.  
  32. setcounter{tocdepth}{3}
  33. setcounter{secnumdepth}{3}
  34. % —– End: format ToC —– %
  35.  
  36. %+------------------------------------------------------------------------------+
  37. %| document |
  38. %+------------------------------------------------------------------------------+
  39. begin{document}
  40. tableofcontents
  41.  
  42. chapter{ 1 }
  43. Some example Text
  44. section{1.1}
  45. section{1.2}
  46. section{1.3}
  47. section{1.4}
  48.  
  49. chapter{ 2 }
  50. section{2.1}
  51. section{2.2}
  52. section{2.3}
  53. section{2.4}
  54. section{2.5}
  55.  
  56. chapter{ 3 }
  57. ...
  58. end{document}
  59.  
  60. documentclass[fontsize=9pt, BCOR=5mm, ngerman, paper=a4,DIV=calc]{scrreprt}
  61. usepackage[ngerman]{babel}
  62. usepackage[babel,german=quotes]{csquotes}
  63. usepackage{fontspec}
  64. usepackage{hyperref}
  65. usepackage{framed}
  66. usepackage[dvipsnames]{xcolor}
  67. usepackage{graphicx}
  68. usepackage{titletoc}
  69. usepackage{scrlayer-scrpage}% replaces the outdated scrpage2
  70. usepackage{lastpage}
  71. usepackage{geometry}
  72. usepackage{float}
  73. usepackage{scrhack}% if package float is really needed, load scrhack too
  74. usepackage{csquotes}
  75.  
  76. % —– titletoc - format ToC —– %
  77. titlecontents{chapter}[1.5em]{addvspace{1pc}bfseries}{contentslabel{1.5em}}
  78. {hspace*{-1.5em}}{titlerule*[0.3pc]{.}contentspage}
  79. titlecontents{section}[3.7em]{}{contentslabel{2.2em}}{}
  80. {titlerule*[0.3pc]{.}contentspage}
  81. titlecontents{subsection}[6.7em]{}{contentslabel{2.95em}}{}
  82. {titlerule*[0.3pc]{.}contentspage}
  83.  
  84. setcounter{tocdepth}{3}
  85. setcounter{secnumdepth}{3}
  86.  
  87. begin{document}
  88. tableofcontents
  89. chapter{A Chapter}
  90. section{A Section}section{A Section}section{A Section}section{A Section}
  91. chapter{A Chapter}
  92. section{A Section}section{A Section}section{A Section}section{A Section}
  93. chapter{A Chapter}
  94. section{A Section}section{A Section}section{A Section}section{A Section}
  95. chapter{A Chapter}
  96. section{A Section}section{A Section}section{A Section}section{A Section}
  97. chapter{A Chapter}
  98. section{A Section}section{A Section}section{A Section}section{A Section}
  99. chapter{A Chapter}
  100. section{A Section}section{A Section}section{A Section}section{A Section}
  101. chapter{A Chapter}
  102. section{A Section}section{A Section}section{A Section}section{A Section}
  103. chapter{A Chapter}
  104. section{A Section}section{A Section}section{A Section}section{A Section}
  105. end{document}
  106.  
  107. documentclass[fontsize=9pt, BCOR=5mm, ngerman, paper=a4,DIV=calc]{scrreprt}
  108. usepackage[ngerman]{babel}
  109. usepackage[babel,german=quotes]{csquotes}
  110. usepackage{fontspec}
  111. usepackage{hyperref}
  112. usepackage{framed}
  113. usepackage[dvipsnames]{xcolor}
  114. usepackage{graphicx}
  115. usepackage{scrlayer-scrpage}% replaces the outdated scrpage2
  116. usepackage{lastpage}
  117. usepackage{geometry}
  118. usepackage{float}
  119. usepackage{scrhack}% if package float is really needed, load scrhack too
  120. usepackage{csquotes}
  121.  
  122. RedeclareSectionCommand[
  123. toclinefill=TOCLineLeaderFill,
  124. tocbeforeskip=1pc
  125. ]{chapter}
  126. RedeclareSectionCommand[
  127. tocnumwidth=2.2em
  128. ]{section}
  129. RedeclareSectionCommand[
  130. tocindent=3.75em,
  131. tocnumwidth=2.95em
  132. ]{subsection}
  133.  
  134. makeatletter
  135. show@dotsep
  136. renewcommand@dotsep{1}
  137. makeatother
  138.  
  139. setcounter{tocdepth}{3}
  140. setcounter{secnumdepth}{3}
  141.  
  142. begin{document}
  143. tableofcontents
  144. chapter{A Chapter}
  145. section{A Section}section{A Section}section{A Section}section{A Section}
  146. chapter{A Chapter}
  147. section{A Section}section{A Section}section{A Section}section{A Section}
  148. chapter{A Chapter}
  149. section{A Section}section{A Section}section{A Section}section{A Section}
  150. chapter{A Chapter}
  151. section{A Section}section{A Section}section{A Section}section{A Section}
  152. chapter{A Chapter}
  153. section{A Section}section{A Section}section{A Section}section{A Section}
  154. chapter{A Chapter}
  155. section{A Section}section{A Section}section{A Section}section{A Section}
  156. chapter{A Chapter}
  157. section{A Section}section{A Section}section{A Section}section{A Section}
  158. chapter{A Chapter}
  159. section{A Section}section{A Section}section{A Section}section{A Section}
  160. section{A Section}section{A Section}section{A Section}
  161. end{document}
Add Comment
Please, Sign In to add comment