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

Allow to customize installation directory for TinyTeX installed with quarto #11800

Open
cderv opened this issue Jan 6, 2025 · 0 comments
Open
Assignees
Labels
enhancement New feature or request latex LaTeX engines related libraries and technologies

Comments

@cderv
Copy link
Collaborator

cderv commented Jan 6, 2025

Discussed in #11748

Originally posted by averms December 28, 2024

Use quartoDataDir for TinyTeX (Original Title)

Description

On Linux, Quarto already follows the XDG Base Directory spec, which is very nice. It results in a clean $HOME. However, the one place it doesn't is when installing TinyTeX. It would be great if TinyTeX was also installed following the XDG Base Directory spec just like everything else. This would put it in XDG_DATA_HOME/quarto, right next to chromium.

I understand that upstream TinyTeX already has defaults and there is value in sticking to them. However, I noticed that you guys don't even use the upstream script and don't add the binaries to the user's PATH so you're already deviating from upstream.

Note about TinyTeX and its ecosystem

Default install path

  • TinyTeX can be installed its install scripts, through R tinytex::install_tinytex() or through quarto install tinytex
  • For now defaults installed path are aligned
  • Linux: ~/.TinyTeX
  • Mac: ~/Library/TinyTeX
  • Windows: %APPDATA%/TinyTeX

Quarto does install by default in the same place is no existing version if found in those default place. This allows for Quarto to re-use an existing install done with R or using install script.

Custom install path

  • Install script allows to customize using TINYTEX_DIR
  • R install can be customized using tinytex::install_tinytex()
  • For now quarto install tinytex can't be customized.

In case of customization, quarto won't be found

I believe we should at least offer a way to customize installation, either through TINYTEX_DIR env var, or through command line flag to quarto install tinytex

@cderv cderv added enhancement New feature or request latex LaTeX engines related libraries and technologies labels Jan 6, 2025
@cderv cderv self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request latex LaTeX engines related libraries and technologies
Projects
None yet
Development

No branches or pull requests

1 participant