diff options
Diffstat (limited to '_extensions/ruc-play/stylish-report/_extension.yaml')
-rw-r--r-- | _extensions/ruc-play/stylish-report/_extension.yaml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/_extensions/ruc-play/stylish-report/_extension.yaml b/_extensions/ruc-play/stylish-report/_extension.yaml new file mode 100644 index 0000000..507eeaa --- /dev/null +++ b/_extensions/ruc-play/stylish-report/_extension.yaml @@ -0,0 +1,70 @@ +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] |