mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-12-22 01:55:51 +01:00
docs(template): make outline rendering configurable
This commit is contained in:
parent
d1001ad90d
commit
c0dd533d81
2 changed files with 15 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
#let conf(
|
||||
title: none,
|
||||
subtitle: none,
|
||||
render-outline: true,
|
||||
doc,
|
||||
) = {
|
||||
set page(
|
||||
|
@ -134,18 +135,20 @@
|
|||
}
|
||||
|
||||
// outline and other prelude info
|
||||
outline(
|
||||
indent: auto,
|
||||
fill: line(
|
||||
length: 100%,
|
||||
stroke: (
|
||||
cap: "round",
|
||||
join: "round",
|
||||
thickness: 0.5pt,
|
||||
paint: luma(75%),
|
||||
if render-outline {
|
||||
outline(
|
||||
indent: auto,
|
||||
fill: line(
|
||||
length: 100%,
|
||||
stroke: (
|
||||
cap: "round",
|
||||
join: "round",
|
||||
thickness: 0.5pt,
|
||||
paint: luma(75%),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
// content itself
|
||||
doc
|
||||
|
|
Loading…
Reference in a new issue