format: pdf: # links-as-notes: true colorlinks: false pdf-engine: lualatex documentclass: scrartcl csquotes: true papersize: a4 # extract-media: img include-in-header: # support multiple tagged columns (class option twocolumn is not tagged) - text: | \usepackage[a4paper, margin=0.5in, bottom=1in]{geometry} % Set all margins to zero \usepackage{multicol} \setlength{\columnsep}{20pt} % Adjust space between columns \setlength{\columnwidth}{0.45\textwidth} % Set column width (optional) # avoid widow headline or definition description - text: | \usepackage{needspace} \let\oldsection\section \renewcommand{\section}[1]{% \needspace{6\baselineskip} \oldsection{#1}% } \let\olddesc\description \renewcommand{\description}[1][]{% \olddesc[#1]% \needspace{2\baselineskip} } # avoid widow or orphan lines - text: | \usepackage[defaultlines=3,all]{nowidow} # set page footer to danish page count "side X af Y" - text: | \usepackage{lastpage} \usepackage{scrlayer-scrpage} \cfoot{side \thepage\ af \pageref{LastPage}} # suppress figure label - text: | \usepackage[labelformat=empty]{caption} include-before-body: - text: | # enable multiple tagged columns - text: | \begin{multicols}{2} \raggedcolumns include-after-body: # conclude multiple tagged columns - text: | \end{multicols}