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:
I have used the amsmath package before, so I checked where on my system it's located and found this:
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).
As recommended in some forums, I checked my
$kpsewhich -var-value TEXMFLOCAL
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.