-
Notifications
You must be signed in to change notification settings - Fork 76
Define a main file and only compile the main file. #328
Comments
I'm very new to typst, so please excuse if something about the request is stupid. |
Hey i think that there is no solution for this at the moment. Its related to this issue i think: #285 my workflow at the moment is just to use the typst cli typst watch <filename> Additionally there seems to be an issue in disabling the lsp to generate a pdf: #265 To work around this i just add Hope that helps |
Thanks for the answer and the link to the other issue. |
hm as long as the template is included in "main" it should work. |
Ah sorry, my bad. I didn't try it out, I just read the help
and inferred from that that it wouldn't recompile on changes of imported files. Well thanks a lot for the help. I'll close since there is already another issue. |
Feature Request
It would be really nice if it would be possible to define a main file per project.
At the moment if I write for example a
template.typ
file it will be compiled on save. This just results in an empty pdf which is useless. In turn I will have to change back to mymain.typ
and save it manually to see the changes in mytemplate.typ
take effect.I would also suggest that if there is a
main.typ
in the root folder that it will be recognized as the main file by default. Or is there a more common filename for the main file? Maybe there is also some other mechanism from which the main file could be deteremined.The text was updated successfully, but these errors were encountered: