There are two ways of installing it:
- in TEXMFLOCAL, which is usually /usr/local/share/texmf (you can check this with
kpsewhich -var-value=TEXMFLOCAL
)
- or in TEXMFHOME (which is usually ~/texmf)
The instruction provided in http://ww.tug.org/texlive/devsrc/Master/texmf-dist/doc/fonts/opensans/opensans.pdf ONLY works if you choose to install the files in TEXMFLOCAL. So if you move your files to TEXMFLOCAL, you should be able to follow those instructions.
However if that doesn't work for you (eg because you don't have administrator rights), you can install the files in TEXMFHOME.
To do this create the directory 'texmf' in your home directory.
You can now download the zip from http://www.ctan.org/tex-archive/fonts/opensans, and unzip it in '~/texmf/', the directory you just created.
You should now have a directory ~/texmf/tex/latex/opensans, which contains the .sty files you need.
Now you need to tell Latex that you have installed new files, you can do this by opening a terminal and typing
texhash ~/texmf/
Now you need to tell updmap that there are new fonts installed, so we need to create a file $HOME/texmf/web2c/updmap.cfg which contains the line Map opensans.map
.
Do this by executing the following commands:
mkdir ~/texmf/web2c
echo 'Map opensans.map' >> ~/texmf/web2c/updmap.cfg
updmap
At the bottom of the output you should now verify that it processed opensans.map, now we need to tell latex again that we have changed some files:
texhash ~/texmf
and that should do the trick!
EDIT: changed the answer based on feedback from OP
lmtt9
font is in the Latin modern package (http://www.ctan.org/tex-archive/fonts/lm/) Are you by any chance using that package as well? Maybe you can try a minimum example with\usepackage{default}[opensans]
? – Gerhard Burger Jul 03 '12 at 13:03