From 39f0708234bee4faa31cafc3edb4054c629e8a11 Mon Sep 17 00:00:00 2001
From: Jonas Smedegaard <dr@jones.dk>
Date: Wed, 17 Dec 2025 21:07:45 +0100
Subject: fix unentangle latex code from Markdown header in character count

---
 report.qmd | 101 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 50 insertions(+), 51 deletions(-)

(limited to 'report.qmd')

diff --git a/report.qmd b/report.qmd
index bf50205..530e6ce 100644
--- a/report.qmd
+++ b/report.qmd
@@ -7,14 +7,6 @@ date: 2025-12-18
 
 toc-depth: 2
 
-format:
-  stylish-report-pdf:
-    pdfversion: "2.0"
-    pdfstandard: [A-4f, UA-2]
-    tagging: on
-    template-partials:
-      - before-title.tex
-
 metadata-files:
   - _actors.yml
 keywords:
@@ -30,53 +22,60 @@ resource-path:
 filters:
   - nobreaks
 
-include-in-header:
+format:
+  stylish-report-pdf:
+    pdfversion: "2.0"
+    pdfstandard: [A-4f, UA-2]
+    tagging: on
+    template-partials:
+      - before-title.tex
+    include-in-header:
 # refine hyphenation
-- text: |
-    \usepackage{lua-check-hyphen}
-    \LuaCheckHyphen{compact,whitelist={%
-      hyph_ok_any.txt,%
-      hyph_ok_american.txt,%
-      hyph_ok_danish.txt,%
-    }}
-    \babelhyphenation[danish]{
-      copy-left % copyl-eft
-      der-ud-over % deru-dover
-      fang-er-nes % fan-gernes
-      for-brug-eren % forbruge-ren
-      for-vent-ningen % forventnin-gen
-      grundes % grun-des
-      hand-ling-er-nes % handlin-gernes
-      pro-pri-e-tær % prop-rietær
-    }
+    - text: |
+        \usepackage{lua-check-hyphen}
+        \LuaCheckHyphen{compact,whitelist={%
+          hyph_ok_any.txt,%
+          hyph_ok_american.txt,%
+          hyph_ok_danish.txt,%
+        }}
+        \babelhyphenation[danish]{
+          copy-left % copyl-eft
+          der-ud-over % deru-dover
+          fang-er-nes % fan-gernes
+          for-brug-eren % forbruge-ren
+          for-vent-ningen % forventnin-gen
+          grundes % grun-des
+          hand-ling-er-nes % handlin-gernes
+          pro-pri-e-tær % prop-rietær
+        }
 # add alt text to embedded image, to aid non-visual rendering
-- text: |
-    \renewcommand{\doclicenseImage}[1][]{%
-      \setkeys{doclicense}{#1}
-      \href{\doclicenseURL}{%
-        \includegraphics[
-          alt=\doclicenseText%
-          width=\doclicense@imagewidth%
-        ]{\doclicenseImageFileName}%
-      }
-    }
+    - text: |
+        \renewcommand{\doclicenseImage}[1][]{%
+          \setkeys{doclicense}{#1}
+          \href{\doclicenseURL}{%
+            \includegraphics[
+              alt=\doclicenseText%
+              width=\doclicense@imagewidth%
+            ]{\doclicenseImageFileName}%
+          }
+        }
 # define missing danish locale strings, and append link to published source
 # TODO: override URI suffix (curently falls back to default URI)
-- text: |
-    \makeatletter
-      \@namedef{doclicense@lang@thisDoc}{Dette værk er licenseret under en}
-    \makeatother
-    \makeatletter
-      \@namedef{doclicense@lang@word@license}{-licens.\\
-        Kilde er tilgængelig ved
-        \href{https://source.abcdefghijklmnopqrstuvxyzæøå.dk/copyleft}{https://source.abcdefghijklmnopqrstuvxyzæøå.dk/copyleft}}
-    \makeatother
-    \makeatletter
-      \@namedef{doclicense@lang@lic@CC@code}{da}
-    \makeatother
-    \makeatletter
-      \@namedef{doclicense@lang@lic@CC@by-sa@4.0}{Kreditering-DelPåSammeVilkår 4.0 International}
-    \makeatother
+    - text: |
+        \makeatletter
+          \@namedef{doclicense@lang@thisDoc}{Dette værk er licenseret under en}
+        \makeatother
+        \makeatletter
+          \@namedef{doclicense@lang@word@license}{-licens.\\
+            Kilde er tilgængelig ved
+            \href{https://source.abcdefghijklmnopqrstuvxyzæøå.dk/copyleft}{https://source.abcdefghijklmnopqrstuvxyzæøå.dk/copyleft}}
+        \makeatother
+        \makeatletter
+          \@namedef{doclicense@lang@lic@CC@code}{da}
+        \makeatother
+        \makeatletter
+          \@namedef{doclicense@lang@lic@CC@by-sa@4.0}{Kreditering-DelPåSammeVilkår 4.0 International}
+        \makeatother
 
 #keep-tex: true
 ---
-- 
cgit v1.2.3

