Untested, since I don't have the setup that you do. Try the following:
tlmgr conf texmf TEXMFHOME "~/Library/texmf:~/texmf"
And see if that works. Normally this would be run with sudo
but since you don't have admin access, I'm assuming that running it without will work for you.
Firstly, you need to tell tex to look in your ~/Dropbox/mylocaltexmf
folder as the user texmf
, instead of in the default, ~/texmf
. To do this, you need to create the file 10localtexmf.cnf
(or some similarly named file) in /etc/texmf/texmf.d
, and tell it your custom value of your home texmf
:
cd /etc/texmf/texmf.d
sudo touch 10localtexmf.cnf
sudo echo "TEXMFHOME = ~/Dropbox/mylocaltexmf" > 10localtexmf.cnf
Next, you need to tell Ubuntu to generate the texmf.cnf
file in /etc/texmf/web2c
from the contents of the /etc/texmf/texmf.d
directory:
sudo update-texmf
Great! Now test to see whether this has worked by running:
kpsexpand \$TEXMFHOME
If that outputs ~/Dropbox/mylocaltexmf
, then it's worked, and you're set. If it outputs ~/texmf
, it means it's still set on the default. If this is the case, check the contents of /etc/texmf/web2c/texmf.cnf
to check whether update-texmf
has successfully appended your custom TEXMFHOME
.
I personally use this to sync my custom beamer
themes. Oh, and remember that as jon said, the contents of your localtexmf
must mirror the standard texmf
structure, so custom latex
styles and themes should be put in ~/Dropbox/mylocaltexmf/tex/latex
. Also, remember to run sudo texhash
whenever you update your local texmf
.
Best Answer
Here is how I arrived at the solution.
First, I tried to run
tlmgr
but I got an error:Based on Joseph Wright's comment, I realized that
tlmgr
must be installed. The question then was: where is it located in the file system?Based on tlmgr is not accessible after installing TeX Live 2011 on a Ubuntu system, I found that on my system,
tlmgr
is located atTherefore, to add the folder
~/Dropbox/computer/localtexmf
to the LaTeX search path, I ran the command: