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

texpath needs to be before $PATH in LaTeXTools.sublime-settings on linux? #1587

Open
mcharleston opened this issue Jun 25, 2023 · 0 comments

Comments

@mcharleston
Copy link

I'm running ST3 on Ubuntu 22.04, texlive 2023.

Summary

I had to my texlive path before $PATH in the LaTeXTools.sublime-settings, else packages were not found.

Issue

I've followed the great diagnostic instructions on https://latextools.readthedocs.io/en/latest/troubleshooting/ and found that launching ST3 from my default login shell (fish) or from bash works fine, but when I launch it from an app launcher (in this case Albert) it cannot find some packages.

My shell path: /usr/local/texlive/2023/bin/x86_64-linux /home/<myusername>/.local/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin /snap/bin

and when I launch from the shell the os.environ['PATH'] is '/usr/local/texlive/2023/bin/x86_64-linux:/home/mac/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin'

My LaTeXTools.sublime-settings relevant bit:

"linux" : {
		// Path used when invoking tex & friends; MUST include $PATH
		"texpath" : "$PATH:/usr/local/texlive/2023/bin/x86_64-linux",

but LaTeXTools SystemCheck shows it's not looking in the right place.

Here's the System Check for launching from the shell:

Program      Location                                            Status     Version
-------      --------                                            ------     -------
sublime      /usr/bin/subl                                       available  Sublime Text Build 4143
latexmk      /usr/local/texlive/2023/bin/x86_64-linux/latexmk    available  Latexmk, John Collins, 4 Apr. 2023. Version 4.80
pdflatex     /usr/local/texlive/2023/bin/x86_64-linux/pdflatex   available  pdfTeX 3.141592653-2.6-1.40.25 (TeX Live 2023)
xelatex      /usr/local/texlive/2023/bin/x86_64-linux/xelatex    available  XeTeX 3.141592653-2.6-0.999995 (TeX Live 2023)
lualatex     /usr/local/texlive/2023/bin/x86_64-linux/lualatex   available  This is LuaHBTeX, Version 1.17.0 (TeX Live 2023)
biber        /usr/local/texlive/2023/bin/x86_64-linux/biber      available  biber version: 2.19
bibtex       /usr/local/texlive/2023/bin/x86_64-linux/bibtex     available  BibTeX 0.99d (TeX Live 2023)
bibtex8      /usr/local/texlive/2023/bin/x86_64-linux/bibtex8    available  This is 8-bit Big BibTeX version 0.99d-x4.00 (TeX Live 2023)
kpsewhich    /usr/local/texlive/2023/bin/x86_64-linux/kpsewhich  available  kpathsea version 6.3.5
convert      /usr/bin/convert                                    available  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
ghostscript  /usr/bin/gs                                         available  GPL Ghostscript 9.55.0 (2021-09-27)

Packages for equation preview  Status
-----------------------------  ------
standalone                     available
preview                        available
xcolor                         available
amsmath                        available
amssymb                        available
latexsym                       available
mathtools                      available

And here is is having launched from GUI / Albert:

Program      Location            Status     Version
-------      --------            ------     -------
sublime      /usr/bin/subl       available  Sublime Text Build 4143
latexmk      /usr/bin/latexmk    available  Latexmk, John Collins, 20 November 2021. Version 4.76
pdflatex     /usr/bin/pdflatex   available  pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
xelatex                          missing    unavailable
lualatex     /usr/bin/lualatex   available  This is LuaHBTeX, Version 1.14.0 (TeX Live 2022/dev/Debian)
biber                            missing    unavailable
bibtex       /usr/bin/bibtex     available  BibTeX 0.99d (TeX Live 2022/dev/Debian)
bibtex8      /usr/bin/bibtex8    available  This is 8-bit Big BibTeX version 0.99d
kpsewhich    /usr/bin/kpsewhich  available  kpathsea version 6.3.4/dev
convert      /usr/bin/convert    available  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
ghostscript  /usr/bin/gs         available  GPL Ghostscript 9.55.0 (2021-09-27)

Packages for equation preview  Status
-----------------------------  ------
standalone                     missing
preview                        missing
xcolor                         available
amsmath                        available
amssymb                        available
latexsym                       available
mathtools                      available

Solution

However, when I put /usr/local/texlive/... in before the $PATH in LaTeXTools.sublime-settings it works fine:

	"linux" : {
		// Path used when invoking tex & friends; MUST include $PATH
		"texpath" : "/usr/local/texlive/2023/bin/x86_64-linux:$PATH",

Not sure if others have encountered this but I thought you should know that at least for this situation putting the texpath before $PATH in the settings was the fix.

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

No branches or pull requests

1 participant