You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a large document that I would like to compile and see the results of some labeled content. Currently, I query and compile separately for 2 total calls to typst. It would be ideal to allow querying during compilation and print the query result to stdout while exporting files as usual.
Use Case
Any documents where both metadata and outputs are equally desirable. A common use case is slideshows. In one compilation, the svg slides can be generated and their metadata for transitions, speaker notes, etc. will also be available.
Reacted by Wenzhuo Liu, emilylime, Andrew Voynov, Clemens Koza, lublak, Y.D.X., aualbert, David, Julius Krumbiegel and shelvacu
I think there are many generalizations that are worth considering from the start:
compile and do one query (the initial feature request)
(compile and) do multiple queries
do multiple compilations, e.g. with different --inputs or output formats
do any of these, even with different input documents (presumably, the input documents would be similar enough that a lot of memoized information would be reused between them)
I think the last one may be attainable, but may also have the fewest legitimate use cases and/or it might be an anti-pattern to structure one's workflow in a way where this saves a lot of work.
Activity
ensko commentedon Jun 1, 2024
I think there are many generalizations that are worth considering from the start:
--inputs or output formatsI think the last one may be attainable, but may also have the fewest legitimate use cases and/or it might be an anti-pattern to structure one's workflow in a way where this saves a lot of work.
There has been some discussion on Discord in this direction: https://discord.com/channels/1054443721975922748/1245821833308012614
One of the suggestions was the option to start Typst as a agent and access it using an ID:
this would allow the first three scenarios in a natural way.