-
|
I am trying to use a different Typst template I have written, but I can't get Pandoc or Typst or properly import it. My defaults file has the following It creates a typst output with this line: which then fails when creating a PDF I am using the default.typst Pandoc-typst tample. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
What do you wish the output was instead? |
Beta Was this translation helpful? Give feedback.
-
|
Oh, wait -- are you trying to do what you could otherwise do with the |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, I should have been clearer. I want to use my own Typst template, which is listed here https://pandoc.org/MANUAL.html#variables-for-typst as a possible metadata variable. When I run But I'd like to use a different Typst template for a different look for my drafts and I wrote a draft.typst template based on Pandoc's template.typst. But when I run I included the typst output above because it shows the interim output, but I should have included the error. Obviously it is looking for the file beneath my current dir---this is the problem I can't fix. |
Beta Was this translation helpful? Give feedback.
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.