TeX Live and MacTeX ⇒ Texdoc not found
Texdoc not found
I installed a small version of TL. Then later I did tlmgr install texdoc. Texdoc was installed, but still isn’t found in the PATH. What am I missing? (Same happens with texdoctk.)
Linux Mint 19, 64 bit
Cheers, H.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Texdoc not found
tlmgr installs binaries under $TEXMFROOT/bin/<architecture>, AFAIUI.
For $TEXMFROOT you can ask kpsewhich (assuming it's installed):
Code: Select all
kpsewhich -var-value TEXMFROOT
If tlmgr's sys_bin option is set, it will also attempt to create a symbolic link in the directory specified (which is usually part of a user's $PATH variable, like /usr/local/bin).
Then again, if this sys_bin option is not set, the binaries directory should be part of the $PATH variable..unless you have to prepend the path to pdflatex & friends to begin with.
What does
Code: Select all
which pdflatex
BTW: if you're unable to open the documentation to package x, maybe you don't have its documentation installed...
What is the output of
Code: Select all
tlmgr option docfiles
KR
Rainer
Texdoc not found
Thanks for the explanation. Indeed, there is texdoc(tk) in /usr/local/texlive/2018/bin/x86_64-linux/, but not in /usr/local/bin (pdflatex etc. are there indeed and work).
tlmgr option show tells me docfiles are installed (1), and sys_bin is set to /usr/local/bin. So somehow it knows where to put the symlinks, but it doesn’t.
Ok, reading a bit further in man tlmgr, the only thing I had to do was:
Code: Select all
$ sudo tlmgr path add
Thanks.
Texdoc not found
OTOH, if you already know your problem's caused by a missing symbolic link, you could either create such a link yourself or include `kpsewhich -var-value TEXMFROOT`/bin/`tlmgr --print-arch` to your $PATH environment variable, omitting the need for such a symbolic link altogether.
KR
Rainer