toc: true
toc-depth: 2

comments:
  hypothesis:
    showHighlights: whenSidebarOpen

format:
  pdf:
#    links-as-notes: true
    colorlinks: false
    pdf-engine: lualatex
# permit preprocessing PlantUML SVG files with inkscape
    pdf-engine-opt: --shell-escape
    documentclass: scrreprt
    classoption:
    - DIV=calc
    csquotes: true
    papersize: a4
    fontsize: 12pt
    template: ../_templates/template.tex
    template-partials:
      - ../_templates/doc-class.tex
      - ../_templates/title.tex

    include-in-header:
# recalculate page margins, since mainfont was set after documentclass
    - text: |
        \KOMAoptions{DIV=last}
# avoid widow or orphan lines
    - text: |
        \usepackage[defaultlines=4,all]{nowidow}

    include-before-content:
# avoid english style of double space after punctuation
    - text: |
        \frenchspacing
# setup graph visualization libraries
    - text: |
        \usepackage{tikz}
        \usetikzlibrary{arrows.meta,chains,positioning,shapes.geometric}
        \tikzset{
         node distance = 0.75cm and 2cm, font=\bfseries,
         >=stealth,
         vertex/.style={circle,draw,minimum size=1.5em}
        }
        \tikzstyle{bag} = [align=center]