0

I cannot find the exact commands to type in the terminal to find my latex configuration files and where I should put additional downloaded latex packages in case I needed them (I do not even know where they appear when you download them from the web). I am sorry for my ignorance, but could someone help me about it? Thank you for your attention and have a nice day!

1

There is a nice tool kpsewhich. On my machine I have

kpsewhich -var-value=TEXMFLOCAL
/usr/local/texlive/texmf-local

This means that my "local" TeX tree is /usr/local/texlive/texmf-local. A downloaded (local in Unix parlance) LaTeX package on this machine would go into /usr/local/texlive/texmf-local/tex/latex/PACKAGE directory.

You can find more information about the way TeX searches for files here: https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-530007

| improve this answer | |
  • Thank you! If i install a package manually,should I then copy it via: cp <package_name> /usr/local/texlive/texmf-local/tex/latex/PACKAGE ? – lgotta Feb 26 at 16:20
  • You need to extract .sty from .dtx first following the installation instructions, and after installation run mktexlsr-sys as root – Boris Feb 26 at 16:27
  • @Igotta Install manually? Bad idea. Learn first about the use of tlmgr and the improbable case that this is not enough, use TEXMFHOME, not TEXMFLOCAL – Fran Feb 26 at 17:50
  • @Igotta, BTW, unlike miktex, a vanilla texlive installation by default is complete. Work in your console the command pdflatex? whereis pdflatex pointed to the right directories? Is so, congratulations, you have already installed almost any relevant latex package in the world. – Fran Feb 26 at 18:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.