Fix for Typst 0.13:

- Changes removal of outline fill in favor of `outline.entry` fill
This commit is contained in:
Laurenz 2025-03-12 15:11:49 +01:00
parent bb437af760
commit 348f744d78
Signed by: C0ffeeCode
SSH key fingerprint: SHA256:prvFOyBjButRypyXm7X8lbbCkly2Dq1PF7e/mrsPVjw
2 changed files with 7 additions and 3 deletions

View file

@ -15,3 +15,4 @@ If you intend to use the VS Code extension "Typst-LSP", don't,
and use the Tinymist Typst extension instead. and use the Tinymist Typst extension instead.
This is a adapted version of a template by [@satoqz](https://github.com/satoqz/). This is a adapted version of a template by [@satoqz](https://github.com/satoqz/).
It is designed for Computer Science at the DHBW Stuttgart, and may be compatible with other courses of study.

View file

@ -67,7 +67,7 @@
Ich bin mir bewusst, dass eine falsche Erklärung rechtliche Folgen haben wird. Ich bin mir bewusst, dass eine falsche Erklärung rechtliche Folgen haben wird.
#title #title
*a big & fat _TODO_!* // *a big & fat _TODO_!*
], ],
abstract: "Abstract", abstract: "Abstract",
contents: "Inhaltsverzeichnis", contents: "Inhaltsverzeichnis",
@ -387,7 +387,10 @@
if n > 2 { n = 2 } if n > 2 { n = 2 }
return n * 2em return n * 2em
}, },
fill: repeat(" . ") // fill: repeat(" . ") // Deprecated in Typst 0.13
)
#set outline.entry(
fill: repeat([.], gap: 0.15em)
) )
#show outline.entry.where(level: 1): it => { #show outline.entry.where(level: 1): it => {
if it.element.func() != heading { return it } if it.element.func() != heading { return it }