Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export TinyTeX bin directory to Lua filter. #11670

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Dec 12, 2024

This is useful for a filter to call tlmgr or other tools while they are not put on PATH by quarto install tinytex

Idea coming from this discussion:

We are exposing the bin dir and not the tool path like Rscript because Quarto is not looking to a path like rBinaryPath() - we are building the path only for tinytex installed version, and otherwise we call Deno.run and rely on tool being on PATH. Also the tool used depends on the configuration.

But bin dir is enough here to be useful

This is useful for a filter to call `tlmgr` or other tools while they are not put on PATH by `quarto install tinytex`
@cscheid
Copy link
Collaborator

cscheid commented Dec 12, 2024

Can you add the function declaration to src/resources/lua-types/quarto/paths.lua as well?

@cderv cderv merged commit f366f92 into main Dec 13, 2024
47 checks passed
@cderv cderv deleted the lua/expose-tinytex-path branch December 13, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants