Open blackjyn opened 7 months ago
How do you launch typst-live and what arguments do you pass?
simply typst-live source.typ
with no arguments
Yea I guess one solution would be to separate typst
and typst-live
args with --
, like cargo run
does it, but I don't know how to do it with clap yet.
With https://github.com/ItsEthra/typst-live/commit/cfdb60dbc9bff2b22e843e0abc139b9cc4e59c97 you should now be able to pass extra args like this typst-live file.typ -- --root=...
, could you verify if it works?
@ItsEthra It does not work
Until I fix it I recommend using typst watch
to output a pdf file which you can serve with typst-live -R
Okay, sure. I'll use this command temporarily.
https://github.com/malkoG/dotfiles/blob/main/private_dot_config/mise/tasks/executable_typst
Thank you for creating this useful tool.
So, I create a template file called template.typ that contains settings for fonts, colors etc. The template is fine no errors. It is located at the root dir.
Then I tried to import the template to my page:
I encountered error with
typst-live
:with
typst w dir\src.typs --root="path\to\root"
, it works just fine.the
--root
arg is owned bytypst
but nottypst-live
.perhaps we need a way to bypass args to the typst?
Thank you