aboutsummaryrefslogtreecommitdiff
path: root/_extensions/ruc-play/stylish-report/_extension.yaml
blob: 1b36cf049fd555604471bfce9774534af2257b59 (plain)
  1. name: Stylish-report
  2. author: Jonas Smedegaard
  3. version: 0.0.3
  4. contributes:
  5. formats:
  6. common:
  7. filters:
  8. - stylish-roles
  9. - abstract-section
  10. pdf:
  11. number-sections: true
  12. toc: true
  13. default-image-extension: tex
  14. colorlinks: true
  15. hyperrefoptions:
  16. - linktoc=all
  17. pdf-engine: lualatex
  18. documentclass: scrbook
  19. classoption:
  20. - DIV=calc
  21. - twoside=false
  22. csquotes: true
  23. papersize: a4
  24. fontsize: 12pt
  25. template: template.tex
  26. template-partials:
  27. - doc-class.tex
  28. - title.tex
  29. - toc.tex
  30. include-in-header:
  31. # declare license
  32. - text: |
  33. \usepackage{hyperref}
  34. \usepackage[type={CC}, modifier={by-sa}, version={4.0}, hyphenation={RaggedRight}]{doclicense}
  35. \publishers{\vspace*{\fill}\small\doclicenseThis}
  36. # recalculate page margins, since mainfont was set after documentclass
  37. - text: |
  38. \KOMAoptions{DIV=last}
  39. # avoid widow or orphan lines
  40. - text: |
  41. \usepackage[defaultlines=4,all]{nowidow}
  42. # implement \abstract
  43. - text: |
  44. \newenvironment{abstract}
  45. {\cleardoublepage\chapter*{Abstract}\thispagestyle{empty}}
  46. {\cleardoublepage}
  47. # use page numbers A1, A2, A3, B1, B2 etc. for appendices
  48. - text: |
  49. \let\oldchapter\chapter
  50. \newcommand*{\appendixmore}{%
  51. \setcounter{secnumdepth}{\chapternumdepth}
  52. \setcounter{chapter}{0}%
  53. \setcounter{section}{0}%
  54. \renewcommand{\thechapter}{\Alph{chapter}}%
  55. \renewcommand{\theHchapter}{\thechapter}%
  56. \renewcommand{\thesection}{\thechapter\arabic{section}}%
  57. \renewcommand{\thepage}{\thechapter\arabic{page}}%
  58. \renewcommand{\chapter}[1]{%
  59. \oldchapter{##1}%
  60. \setcounter{page}{1}%
  61. }%
  62. }
  63. html:
  64. html-q-tags: true
  65. theme:
  66. light: [flatly, styles/british.scss]
  67. dark: [darkly, styles/british.scss]
  68. revealjs:
  69. html-q-tags: true
  70. theme: [default, revealjs-british.ccss]