docs(template): make outline rendering configurable
This commit is contained in:
parent
158d3f8a04
commit
cf5b68103c
2 changed files with 15 additions and 12 deletions
|
@ -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,6 +135,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// outline and other prelude info
|
// outline and other prelude info
|
||||||
|
if render-outline {
|
||||||
outline(
|
outline(
|
||||||
indent: auto,
|
indent: auto,
|
||||||
fill: line(
|
fill: line(
|
||||||
|
@ -146,6 +148,7 @@
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// content itself
|
// content itself
|
||||||
doc
|
doc
|
||||||
|
|
Loading…
Reference in a new issue