-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
TinyTeX's TEXMFHOME
configuration not deleted
#433
Comments
Are you using the bat script or The scoop installation is just downloading the release bundle from https://github.com/rstudio/tinytex-releases/releases/tag/v2024.01 I don't think we do anything specific regarding configuration at https://github.com/cderv/r-bucket/blob/master/bucket/tinytex.json Which is the version of TinyTeX you have install in scoop ? I need to check what is the windows default.. |
I don't use scoop install but install using the R package tinytex and I still get this
I got this as configuration:
|
Fresh installation after uninstalling and reinstalling give me the same configuration
|
I am using scoop install
v2024.01
Yes, it is. If installing it manually according to the texlive official website, TEXMFHOME should be the default, which is ~/texmf. So where might tinytex change when packaging? |
That is the question :) Looking into it |
@yihui some questions about how it is supposed to work I think the issue relies in We correctly use the profile for installation in CI (https://github.com/rstudio/tinytex/actions/runs/7469845614/job/20327605730#step:8:61)
So it seems the values are correctly passed and should be read so no override of default... It seems TinyTeX is not overriding this value 🤔 I am trying to understand how texlive installation sets it. Related topic while reading source code: tinytex/tools/install-windows.bat Lines 26 to 27 in 48d0843
Is this suppose to write the content of
into the file ? Because if the latter, it needs quotes -echo TEXMFCONFIG $TEXMFSYSCONFIG>> tinytex.profile
+echo 'TEXMFCONFIG $TEXMFSYSCONFIG' >> tinytex.profile
- echo TEXMFVAR $TEXMFSYSVAR>> tinytex.profile
+echo 'TEXMFVAR $TEXMFSYSVAR' >> tinytex.profile |
OK so I think I found it. The content we see if from installer Specifically this : if ($vars{'instopt_portable'}) {
print TMF "TEXMFHOME = \$TEXMFLOCAL\n";
print TMF "TEXMFVAR = \$TEXMFSYSVAR\n";
print TMF "TEXMFCONFIG = \$TEXMFSYSCONFIG\n";
} And this is activated because do set portable in the profile we pass Line 13 in 48d0843
So I guess
is the default for portable installation. From man page:
@yihui I don't know if you knew that. This probably means that 170d914 |
@cderv Thanks for the diagnosis! I didn't know that (or perhaps I knew once but forgot later). @auryouth I think the solution is |
This can be done with tinytex using I think we should keep TeX Live default for portable as a default for tinytex but definitely allow helpers on how to change. |
I also think this can be included as an option in the scoop app manifest or bat script. |
Then verify by
Oddly, it returns
~/texmf
instead of~/Library/texmf
on my macOS. I'm not sure if this is a bug, but you can definitely change it:Originally posted by @yihui in #377 (comment)
As shown in the screenshot, after I installed tinytex with scoop and after each update, the default location of TEXMFHOME became $TEXMFLOCAL instead of ~/texmf, which is the default location of texlive on Windows systems. Could you please make some modifications in install-windows.bat?
The text was updated successfully, but these errors were encountered: