I have trouble understanding how LaTex deals with packages, so this is a rather general question that arose from my specific problem with the commath package.
I want to use the commath package, and so I downloaded it from CTAN. In order to install it I tried two different things:
First Try
I have used the amsmath package before, so I checked where on my system it's located and found this:
/usr/share/texmf-dist/tex/latex/amsmath
/usr/share/texmf-dist/tex/latex/amsmath/amsmath.sty
So I created a folder /usr/share/texmf-dist/tex/latex/commath
and placed the file commath.sty
in it. I restarted my computer. It didn't work (with both kile and texmaker).
Second Try
As recommended in some forums, I checked my TEXMFLOCAL
path:
$kpsewhich -var-value TEXMFLOCAL
/usr/local/share/texmf:/usr/share/texmf
Neither of these folders existed on my computer, so I created a folder /usr/share/texmf
, created the folder commath
in it, placed file commath.sty
in the commath folder. I restarted my computer. Also didn't work.
So can someone please tell me what I am doing wrong? Why does kile/ texmaker use one package (amsmath) but not another, if they are in the same parent directory? How can I find out specifically which directories the editors search?
I use TexLive on Manjaro Linux.
commath
see tex.stackexchange.com/search?q=commath+user%3A4427 for reasons about not using it.