mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-11-05 15:26:24 +01:00
docs(template): make outline rendering configurable
This commit is contained in:
parent
d1001ad90d
commit
c0dd533d81
|
@ -248,7 +248,7 @@
|
||||||
|
|
||||||
// literally just for standalone display of the graphics alone
|
// literally just for standalone display of the graphics alone
|
||||||
#import "../../template.typ": conf
|
#import "../../template.typ": conf
|
||||||
#show: conf
|
#show: conf.with(render-outline: false)
|
||||||
#set page(width: auto, height: auto)
|
#set page(width: auto, height: auto)
|
||||||
|
|
||||||
#graph-example
|
#graph-example
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
#let conf(
|
#let conf(
|
||||||
title: none,
|
title: none,
|
||||||
subtitle: none,
|
subtitle: none,
|
||||||
|
render-outline: true,
|
||||||
doc,
|
doc,
|
||||||
) = {
|
) = {
|
||||||
set page(
|
set page(
|
||||||
|
@ -134,18 +135,20 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// outline and other prelude info
|
// outline and other prelude info
|
||||||
outline(
|
if render-outline {
|
||||||
indent: auto,
|
outline(
|
||||||
fill: line(
|
indent: auto,
|
||||||
length: 100%,
|
fill: line(
|
||||||
stroke: (
|
length: 100%,
|
||||||
cap: "round",
|
stroke: (
|
||||||
join: "round",
|
cap: "round",
|
||||||
thickness: 0.5pt,
|
join: "round",
|
||||||
paint: luma(75%),
|
thickness: 0.5pt,
|
||||||
|
paint: luma(75%),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
)
|
}
|
||||||
|
|
||||||
// content itself
|
// content itself
|
||||||
doc
|
doc
|
||||||
|
|
Loading…
Reference in a new issue