-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Given this typst file exported using ox-typst:
#let _ = ```typ
exec typst c "$0" --root "$(readlink -f "$0" | xargs dirname)/./" --input "file-0=/diagram.svg"
```
#set document(title: "Documentation")
#set text(lang: "en")
#outline()
#set heading(numbering: "1.")
Can we include a diagram?!
#figure([#image(sys.inputs.file-0)]) #label("org2e24fd7")On compilation I get this error:
typst compile documentation.typ ./documentation.pdf
error: dictionary does not contain key "file-0"
┌─ \\?\C:\Users\LeimgruberF\lg\documentation.typ:10:27
│
10 │ #figure([#image(sys.inputs.file-0)]) #label("orgce6fa23")
│ ^^^^^^
This is on Windows so I assume I am seeing the workaround not working, as mentioned in #20 (comment).
But it seems the issue is with the input key and not with the value?
Metadata
Metadata
Assignees
Labels
No labels