blob: 507eeaa172b8c3b7beed4be4c4f78e2e32d7a049 (
plain)
- name: Stylish-report
- author: Jonas Smedegaard
- version: 0.0.3
- contributes:
- formats:
- common:
- pdf:
- number-sections: true
- toc: true
- default-image-extension: tex
- colorlinks: true
- hyperrefoptions:
- - linktoc=all
- pdf-engine: lualatex
- documentclass: scrbook
- classoption:
- - DIV=calc
- - twoside=false
- csquotes: true
- papersize: a4
- fontsize: 12pt
- template: template.tex
- template-partials:
- - doc-class.tex
- - title.tex
- - toc.tex
- include-in-header:
- # declare license
- - text: |
- \usepackage{hyperref}
- \usepackage[type={CC}, modifier={by-sa}, version={4.0}]{doclicense}
- \publishers{\vspace*{\fill}\small\par\doclicenseThis}
- # recalculate page margins, since mainfont was set after documentclass
- - text: |
- \KOMAoptions{DIV=last}
- # avoid widow or orphan lines
- - text: |
- \usepackage[defaultlines=4,all]{nowidow}
- # implement \abstract
- - text: |
- \newenvironment{abstract}
- {\cleardoublepage\chapter*{Abstract}\thispagestyle{empty}}
- {\cleardoublepage}
- # use page numbers A1, A2, A3, B1, B2 etc. for appendices
- - text: |
- \let\oldchapter\chapter
- \newcommand*{\appendixmore}{%
- \setcounter{secnumdepth}{\chapternumdepth}
- \setcounter{chapter}{0}%
- \setcounter{section}{0}%
- \renewcommand{\thechapter}{\Alph{chapter}}%
- \renewcommand{\theHchapter}{\thechapter}%
- \renewcommand{\thesection}{\thechapter\arabic{section}}%
- \renewcommand{\thepage}{\thechapter\arabic{page}}%
- \renewcommand{\chapter}[1]{%
- \oldchapter{##1}%
- \setcounter{page}{1}%
- }%
- }
- html:
- html-q-tags: true
- theme:
- light: [flatly, styles/british.scss]
- dark: [darkly, styles/british.scss]
- revealjs:
- html-q-tags: true
- theme: [default, revealjs-british.ccss]
|