It doesn’t for me (Typst 0.14.2). Can you given a screenshot showing the problem, as well as your Typst version?
(Edit: as @flokl remarked it’s because of the include which I “skipped” in my test, sorry.)
It doesn’t for me (Typst 0.14.2). Can you given a screenshot showing the problem, as well as your Typst version?
(Edit: as @flokl remarked it’s because of the include which I “skipped” in my test, sorry.)
@madbsk the included chapter.typ doesn’t see the shadowed footnote function from the parent main.typ and simply uses the built-in footnote function. You have to import the custom footnote into all child files.
Oh. How do i do that? The only way i am able to get this to work right now is copy the whole code to chapter.typ
You can put the whole code in some file like common.typ and then in your chapter file:
#import "common.typ": *
// chapter stuff here
Note the difference: with include you include the content of another file in the current one. With import you import the function and variable definitions.
Thank you. really appreciate the help.