Commit 1ef075a

HPCesia <me@hpcesia.com>
2026-03-13 08:58:24
Improve headings style in PDF
1 parent d7e9ad3
Changed files (1)
src
contents
_lib
templates
src/contents/_lib/templates/heading.typ
@@ -18,8 +18,21 @@
   body
 }
 
+#let heading-template-html(body) = {
+  show heading: auto-reslugify-headings
+
+  body
+}
+
+#let heading-template-paged(body) = {
+  show heading: set text(style: "italic")
+  show title: set text(style: "italic")
+
+  body
+}
+
 #let heading-template(body) = {
-  show: show-target(html: auto-reslugify-headings)
+  show: show-target(paged: heading-template-paged, html: heading-template-html)
 
   body
 }