Closed aditya-sengupta closed 1 year ago
I believe this could be considered mostly a web app suggestion (since this is already technically possible when compiling locally, e.g. by using symlinks).
Though, I guess some sort of TYPST_PATH
env var to be able to specify more common roots for import
would also be nice.
I'd appreciate more explicit support for compiling locally as well, so the user doesn't have to be in charge of managing their own symlinks and/or so there's a standard way to install a system-wide template, if that'd be possible!
On Mon, May 22, 2023 at 5:30 PM Pg Biel @.***> wrote:
I believe this could be considered mostly a web app suggestion (since this is already technically possible when compiling locally, e.g. by using symlinks).
— Reply to this email directly, view it on GitHub https://github.com/typst/webapp-issues/issues/51, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIK476RK2HQCMYXYJDTHQILXHQAKTANCNFSM6AAAAAAYLDEQ6Q . You are receiving this because you authored the thread.Message ID: @.***>
I'd appreciate more explicit support for compiling locally as well, so the user doesn't have to be in charge of managing their own symlinks and/or so there's a standard way to install a system-wide template, if that'd be possible!
Yeah, I believe a TYPST_PATH
env var or config of sorts could solve this.
I believe this can be closed since packages are supported in both the cli and web app, I've gone ahead an opened typst/webapp-issues#119, related to some degree.
Closing in favor of https://github.com/typst/webapp-issues/issues/119
Description
I'd like behaviour similar to LaTeX's predefined + user-definable .cls/.sty files at a user/root level, so they can be automatically imported into any project. I tried to do this by putting a
template.typ
at~/.typst/template.typ
and importing from there, but#import
seems to only look at relative paths and not absolute ones. So this could be resolved for users that want it by allowing for absolute imports.Use Case
This wold allow reusable templates like LaTeX's (article, book, chapter, etc) without having to copy template files or long preambles from other projects.