katvan
katvan copied to clipboard
Question according Compiler Settings: Allowed Path
Either I don't understand it correctly or it's not working as intended.
As far as I understand, you can specify the project path under “allowed path”, which you would otherwise pass to typst with --root.
An example might explain it better (OS: Windows):
Structure:
test
|
└── lib
| └─ include.typ
└── doc
└─ main.typ
Files: include.typ:
#let myvar = "Hello World"
main.typ
#import "/lib/include.typ": *
#context myvar
In additon set the root directory (c:\test) in Compiler settings - allowed path
If I now open the file "main.typ" in Katvan, I do get the compiler error:
file not found (searched at C:/Test/doc\lib\include.typ)
If I compile with typst, it is working:
c:\Test\doc
typst compile --root=C:\Test main.typ
Might this be a bug?