docs(template): make outline rendering configurable

This commit is contained in:
multisn8 2024-01-11 14:01:29 +01:00
parent d1001ad90d
commit c0dd533d81
Signed by untrusted user: multisamplednight
GPG key ID: 6D525AA147CBDAE2
2 changed files with 15 additions and 12 deletions

View file

@ -248,7 +248,7 @@
// literally just for standalone display of the graphics alone
#import "../../template.typ": conf
#show: conf
#show: conf.with(render-outline: false)
#set page(width: auto, height: auto)
#graph-example

View file

@ -56,6 +56,7 @@
#let conf(
title: none,
subtitle: none,
render-outline: true,
doc,
) = {
set page(
@ -134,6 +135,7 @@
}
// outline and other prelude info
if render-outline {
outline(
indent: auto,
fill: line(
@ -146,6 +148,7 @@
),
),
)
}
// content itself
doc