Skip to content
Discussion options

You must be logged in to vote

I'm not sure typst allows you to specify an absolute path for an import.
Cf. typst/typst#4195

One approach you could use would be to put a custom template, special.typst, in your pandoc templates directory. This could just be a copy of (or even symlink to) the standard default.typst. But then put your templates.typst in the same directory; pandoc should find it there, because it looks for partials first in the same directory as the template used.
Then you could call it with --template=special.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

hgvhgv
Oct 4, 2025
Author Sponsor

You must be logged in to vote
3 replies
@jgm
Comment options

jgm Oct 4, 2025
Maintainer

Answer selected by hgvhgv
@hgvhgv
Comment options

hgvhgv Oct 4, 2025
Author Sponsor

@jgm
Comment options

jgm Oct 4, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants