Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. documentclass[pdfa,a4paper,
  2. 11pt,
  3. bibliography=totoc,
  4. numbers=noenddot,
  5. twoside,openright,
  6. parskip=half]{scrbook}
  7. usepackage{lipsum}
  8. % ********************************************************************
  9. % Languages, Typesetting
  10. % ********************************************************************
  11. usepackage[ngerman, english]{babel}
  12. usepackage[T1]{fontenc}
  13. usepackage[utf8]{inputenc} %windows: latin9, linux: utf8
  14.  
  15. % ********************************************************************
  16. % page layout
  17. % ********************************************************************
  18. usepackage[]{scrlayer-scrpage}
  19. renewcommand{chapterpagestyle}{empty} % no headings or footings on first chapter page
  20. renewcommand{chaptermark}[1]{markboth{{#1}}{{#1}}}
  21. renewcommand{sectionmark}[1]{markright{upshape{thesection}enspace{#1}}}
  22. lehead{mbox{llap{smallupshapethepagekern2em}scshapeheadmarkhfil}}
  23. rohead{mbox{hfil{scshapeheadmark}rlap{smallkern2emupshapethepage}}}
  24. chead{}ifoot{}cfoot{}ofoot{}
  25. pagestyle{scrheadings}
  26.  
  27. % ********************************************************************
  28. % Hyperreferences, always load last
  29. % ********************************************************************
  30. usepackage[]{hyperref}
  31. % Commenting this whole block fixes the problem
  32. makeatletter
  33. @ifpackageloaded{babel}
  34. {
  35. addtoextrasenglish{
  36. renewcommand*{figureautorefname}{Figure}
  37. renewcommand*{tableautorefname}{Table}
  38. renewcommand*{partautorefname}{Part}
  39. renewcommand*{chapterautorefname}{Chapter}
  40. renewcommand*{sectionautorefname}{Section}
  41. renewcommand*{subsectionautorefname}{Section}
  42. renewcommand*{subsubsectionautorefname}{Section}
  43. renewcommand*{appendixautorefname}{Appendix}
  44. }
  45. }{relax}
  46. makeatother
  47.  
  48.  
  49. begin{document}
  50. part{Intro}
  51. chapter{Short chapter name}
  52. lipsum[1]
  53. section{Short section name}
  54. lipsum
  55. lipsum
  56. chapter{Very long chapter name just not fitting into the headline}
  57. lipsum[1]
  58. section{Very long section name just not fitting into the headline}
  59. lipsum
  60. lipsum
  61. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement