I am running Ubuntu 12.04 which came with TeX Live 2009 pre-installed.
I want to create a local texmf tree at the location ~/Dropbox/mylocaltexmf/
,
so that I can place my own .sty
files in my Dropbox which automatically syncs across multiple computers.
How do I make a local texmf tree visible to TeX Live?
Note that I do not want to place the .sty
files in the default TEXMFHOME.
Similar questions but on different operating systems:
I tried to follow the solution in How to make LaTeX see local texmf tree,
but when I ran the command tlmgr
it seems that there is no such command on my system.
$ tlmgr
No command 'tlmgr' found, did you mean:
Command 'vlmgr' from package 'qdbm-util' (universe)
Command 'rlmgr' from package 'qdbm-util' (universe)
tlmgr: command not found
~/mylocaltexmf
going to be better than~/texmf
(= normalTEXMFHOME
)? But, anyway, look intexmf.cnf
for these settings. Or install TeX Live from TUG, as suggested. Or use symlinks.texmf.cnf
, namely the one you should/can edit. Since you are using the Debian-based TeX Live, I'm not sure where that is. Try to find it withkpsewhich
orlocate
. The one you should edit says it should contain (only) your personal changes. Add this line:TEXMFHOME = ~/Dropbox/texmf
(ormylocaltexmf
). Now -- important! -- domkdir ~/Dropbox/texmf/tex/latex
and put your.sty
files there.TEXMF*
folders must mimic the TeX Live Directory Structure (TDS). Thus a.bib
file should go in~/Dropbox/texmf/bibtex/bib
; etc., etc.cd; mv texmf texmf.orig; ln -s ~/Dropbox/mylocaltexmf/ ~/texmf