Monthly Archives: November 2013

Adding LaTex styles to user directory

I just learned the following tricks about how to add LaTex styles to a user directory (with no admin privileges).

1) Use the following command in shell to check out TeX variable $TEXINPTUS:

$ kpsewhich -expand-var ‘$TEXINPUTS’
, which generates output likes the following:

{/users/biobeat/.texlive2007/texmf-config,/users/biobeat/.texlive2007/texmf-var,/users/biobeat/texmf,/etc/texmf,!!/var/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf,!!/usr/share/texmf}/tex/{kpsewhich,generic,}//

Please notice that that “/users/biobetat/texmf” is used.

2) Now we can add all the style file collections there, or a subdirectory of that path. Below is where I put my files.

$ ls ~/texmf/tex/latex/mycls/
spbasic.bst spmpsci.bst spphys.bst svind.ist svmono.cls