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