From ce388772af251bdc4cc7b2f41c89b548bc8d85cc Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 10 Dec 2024 22:56:06 +0100 Subject: generalize pdf layout as format extension js/stylish-issue --- tryk/_issue.yml | 66 --------------------------------------------------- tryk/before-title.tex | 2 -- tryk/oroeposten_4.qmd | 4 +--- 3 files changed, 1 insertion(+), 71 deletions(-) delete mode 100644 tryk/_issue.yml delete mode 100644 tryk/before-title.tex (limited to 'tryk') diff --git a/tryk/_issue.yml b/tryk/_issue.yml deleted file mode 100644 index 42c1ad6..0000000 --- a/tryk/_issue.yml +++ /dev/null @@ -1,66 +0,0 @@ -format: - pdf: -# links-as-notes: true - colorlinks: false - pdf-engine: lualatex - documentclass: scrartcl - csquotes: true - papersize: a4 -# extract-media: img - - template-partials: - - before-title.tex - - 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} -# reduce vertical space after headlines - - text: | - \RedeclareSectionCommands[ - runin=false, - beforeskip=.5\baselineskip, - afterskip=-1ex]{section,subsection} -# add newline between definition list description and items - - text: | - \usepackage{enumitem} - \setlist[description]{style=nextline} -# 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} diff --git a/tryk/before-title.tex b/tryk/before-title.tex deleted file mode 100644 index a12bb98..0000000 --- a/tryk/before-title.tex +++ /dev/null @@ -1,2 +0,0 @@ -% refine hyphenation -\babelhyphenmins{3}{3} diff --git a/tryk/oroeposten_4.qmd b/tryk/oroeposten_4.qmd index 34c7bff..0dbc6c8 100644 --- a/tryk/oroeposten_4.qmd +++ b/tryk/oroeposten_4.qmd @@ -1,9 +1,7 @@ --- # title, subtitle and date embeddded at the end to trump other embedding -metadata-files: - - _issue.yml format: - pdf: default + stylish-issue-pdf: default --- ## Leder -- cgit v1.2.3