Closed landmancline closed 12 months ago
Install-Quarto.tex.txt I add the Quarto.tex file, if that should provide any insight into this issue.
@landmancline just a note that you should try to format correctly your post so that this is readable: https://yihui.org/issue/#please-format-your-issue-correctly
i'll look into the files
Looking at your .qmd
Don't try to run some TinyTeX update or installation from within a Quarto Render or a R Markdown render. More generally, don't install anything from within a document render. This is not suitable and can cause issue. The commands should be run in R console or terminal.
As you are using Quarto, know that you can use Quarto to install TinyTeX using a terminal command : https://quarto.org/docs/output-formats/pdf-engine.html#installing-tex
Otherwise, from R, you should indeed run tinytex::install_tinytex()
However, I understand you have C:\texlive\2023\bin\windows
which is a probably a global TeX Live installation. Either uninstall it manually, or if you want to keep that, be sure that you have but tlmgr
into the PATH. See TeX live doc: https://tug.org/texlive/doc/tlmgr.html#path
In your can it should be
C:\texlive\2023\bin\windows\tlmgr.bat path add
Maybe you need some command line flags from the doc link just before.
Aim is to add tlmgr.bat
into the PATH.
However know that
Hope it helps clean up your environment installations
Can I just add the tlmgr.exe file to see if it will then run? Could you email me that fike to see if it can be added manually? Installation process is not creating it.
I think that just deleting the livetex folder leaves evidence of a prior installation, or it could be the texlive path in the Environmental Variable that is detected and is somehow preventing the tlmgr.exe file from being created during the installation.
All of the install chunks were set to eval=false, and the install commands were commented out so they would only execute manually.
I did this to document what I had done. Rendering the qmd does not execute any of the install codes.
I have uninstalled and installed texlive four times. I have had to manually delete the texlive folder. The control panel does not show the existence of a texlive installation.
When reinstalling, tlmgr.bat is installed and is in the path. Tlmgr.exe is not anywhere on my machine. tlmgr.exe is not added during the install.
My Environmental Variable Path: C:\texlive\2023\bin\win64
During quarto render a process:
(running xelatex - 1 This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode updating tlmgr *) *
tries to add tlmfr.exe but it doesn't; and the whole render process fails because of the missing tlmgr.exe file.
running xelatex - 1 This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode
updating tlmgr
updating existing packages
compilation failed- error Undefined control sequence. l.275 \textbf{Delete the entire C:}\texlive directory. This will remove all
see Install-Quarto.log for more information.
On Fri, Sep 22, 2023, at 03:59, Christophe Dervieux wrote:
Looking at your .qmd
Don't try to run some TinyTeX update or installation from within a Quarto Render or a R Markdown render. More generally, don't install anything from within a document render. This is not suitable and can cause issue. The commands should be run in R console or terminal.
As you are using Quarto, know that you can use Quarto to install TinyTeX using a terminal command : https://quarto.org/docs/output-formats/pdf-engine.html#installing-tex
Otherwise, from R, you should indeed run
tinytex::install_tinytex()
However, I understand you have
C:\texlive\2023\bin\windows
which is a probably a global TeX Live installation. Either uninstall it manually, or if you want to keep that, be sure that you have buttlmgr
into the PATH. See TeX live doc: https://tug.org/texlive/doc/tlmgr.html#pathIn your can it should be
C:\texlive\2023\bin\windows\tlmgr.bat path add Maybe you need some command line flags from the doc link just before.
Aim is to add
tlmgr.bat
into the PATH.However know that
• Installing TinyTeX with quarto can live with a system TeX Live, and quarto will choose TinyTeX • A system install can be used if you prefer it though. Hope it helps clean up your environment installations
— Reply to this email directly, view it on GitHub https://github.com/rstudio/tinytex/issues/422#issuecomment-1731149514, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCXQQ3KHG53QRSD3OZICG2DX3VOQPANCNFSM6AAAAAA5CCPOW4. You are receiving this because you were mentioned.Message ID: @.***>
RESOLVED: Christophe Dervieux suggested adding a path to the tlmgr.bat file.
The Environmental variable path was set during installation to C:\texlive\2023\bin\win64
By adding a new PATH = C:\texlive\2023\bin\win64\tlmgr.bat rendering the PDF in Quarto no longer fails. I am now able to render without errors. THANK YOU.
Tlmgr.exe is not anywhere on my machine. tlmgr.exe is not added during the install.
FWIW tlmgr.exe
does not exist. It is tlmgr.bat
only.
C:\texlive\2023\bin\windows\tlmgr.bat path add
This should be how you manage to add the bat file to PATH. However, doing it manually works too !
Glad it works now