name: Stylish-issue author: Jonas Smedegaard version: 0.0.1 contributes: formats: pdf: # fontsize: 11pt indent: true # links-as-notes: true colorlinks: false pdf-engine: lualatex documentclass: scrartcl classoption: - headings=big csquotes: true papersize: a4 # extract-media: img template-partials: - before-title.tex - doc-class.tex include-in-header: # borrow microtype tunings from somewhat similar EB Garamond - text: | \DeclareMicrotypeAlias{ETbb}{EB Garamond} # larger section font - text: | \RedeclareSectionCommand[font=\Huge]{section} # support multiple tagged columns (class option twocolumn is not tagged) # * disable all drivers, as recommended in CTAN package crop - text: | \usepackage[dvips=false,pdftex=false,vtex=false]{geometry} \geometry{a4paper, margin=0.5in, bottom=1in} \usepackage{multicol} \setlength{\multicolsep}{0pt} \setlength{\columnsep}{1.5em} \setlength{\columnseprule}{0.4pt} # avoid widow headline or definition description - text: | \usepackage{needspace} \let\oldsection\section \renewcommand{\section}[1]{% \needspace{7\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} # tighten lists styling # * add newline between definition list description and items # * reduce unnumbered list item indentation - text: | \usepackage{enumitem} \setlist[description]{leftmargin=0em,style=nextline} \setlist[itemize]{leftmargin=*,labelsep=0.5em} # tighten blockquote styling to reduce margins - text: | \renewenvironment{quote} {\list{}{\leftmargin=1em \rightmargin=1em}\item[]} {\endlist} # 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, and adjust styling - text: | \usepackage[labelformat=empty,font={sf,small},skip=0.5ex]{caption} # newspaper styling of title header; omit page number on front page - text: | \usepackage[useregional,showdow]{datetime2} \makeatletter \renewcommand{\maketitle}{ { \rightline{\@subtitle, \DTMdate{\@date}} \centerline{\resizebox{\linewidth+18pt}{!}{\textsc{\@title}}} \thispagestyle{empty} } } \makeatother # define format for ingress text - text: | \makeatletter \newcommand{\ingress}[1]{% {\Large #1}\par \@afterindentfalse \@afterheading \vspace{.5\baselineskip}% } \makeatother # refine hyphenation - text: | \hyphenation{ skulp-tur skulp-tur-en skulp-tur-ens skulp-tur-er skulp-tur-ers skulp-tur-er-ne skulp-tur-er-nes}