aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-05-22 09:17:41 +0200
committerJonas Smedegaard <dr@jones.dk>2025-05-22 09:17:41 +0200
commit76b61f8603edfb61d2b370d381c72dcb51a717f4 (patch)
treee1eecb20e8a9bf73bd247b76c2ca70e8ad07946c
parent2a404a495f02b47f536d17f2cd7e2d773b619b45 (diff)
add alt text to embedded image
-rw-r--r--report.qmd13
1 files changed, 12 insertions, 1 deletions
diff --git a/report.qmd b/report.qmd
index 00cb5d7..fff147e 100644
--- a/report.qmd
+++ b/report.qmd
@@ -48,8 +48,19 @@ filters:
- nobreaks
- include-code-files
-# fix british spelling of "licence", and append link to published source
include-in-header:
+# 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}%
+ }
+ }
+# fix british spelling of "licence", and append link to published source
- text: |
\makeatletter
\@namedef{doclicense@lang@word@license}{ licence.\\