Is it possilble to use the pause
method inside context?
#146
Unanswered
joelvonrotz
asked this question in
Q&A
Replies: 2 comments
-
Found a workaround by redefining the #show ref: it => if it.element.func() != heading { it } else {
let l = it.target // label
let h = it.element // heading
let icon = ("icon_" + lower(h.body.text) + ".png").replace(" ", "_")
box(
width: 60%,
stroke: 1pt + greenish,
inset: (x: 0.25em, y: 0.2em),
radius: 10pt,
link(
l,
grid(columns: (1.4em, 1fr), align: (left, horizon))[
#box(image(icon), height: auto)
][
#set text(weight: "bold")
#h.body
],
),
)
} This way I can reference the needed headings and it is rendered accordingly. For the icons, I renamed them to fit the heading ('Aktueller Stand' -> icon with filename "icon_aktueller_stand.png" #slide(config: (config-store(skip-breadcrumbs: true)))[
#{
set heading(outlined: false)
show heading: none
heading(level: 2)[Übersicht]
}
#set align(center)
#set text(30pt)
#set par(leading: 0.3em)
@sec:ruckblick
#pause
@sec:aktuell
#pause
@sec:demo
#pause
@sec:fazit
] |
Beta Was this translation helpful? Give feedback.
0 replies
-
Glad you found a workaround :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm currently writing my bachelor thesis presentation in Typst and need some help in a very specific case. I've created my own template to fit my usual slide style and have manually created an outline inside a slide (not via method):
The actual icons and titles are not final, so no critique there.
First question: Is it possible to do this easier?
Second question: Is it possible to include the
pause
method in someway? -> So I can reveal these piece by piece?Beta Was this translation helpful? Give feedback.
All reactions