Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions example.typ
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

#new-section("Foobar")

#slide(theme-variant: "table of contents")

#slide(title: "Static text")[
```sh
#!/bin/bash
Expand Down
12 changes: 11 additions & 1 deletion unipd.typ
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@
align(center + horizon, text(size: 1.5em, fill: white, bodies.first()))
}

let table-of-contents(slide-info, bodies) = {
default(slide-info, bodies)
box(
width: 100%, inset: (x: 2em), outset: 0em,
align(center, outline(title: text(unipd-red)[Table of contents]))
)
Comment on lines +118 to +121
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like it would be better to insert vertical spacing before the this box, the title looks too close to the top bar.

}

(
"default": default,

Expand All @@ -122,6 +130,8 @@
"wake up": wake-up,
"full": wake-up,
"end": wake-up,

"table of contents": table-of-contents,
)
}

Expand All @@ -131,7 +141,7 @@
box(
width: 100%, inset: 0.5em, outset: 0em,
fill: header-color, stroke: black,
align(left, heading(level: 2, text(fill: white)[#title]))
align(left, heading(level: 2, text(fill: white)[#title], outlined: false))
),
box(
width: 100%, inset: 1em, outset: 0em, fill: unipd-light-gray,
Expand Down