Se você precisar instalar arquivos de estilo do LaTeX (.sty), considerando que você está usando o Ubuntu, siga os passos a seguir:
Pra quem usa o Tetex, os pacotes devem ser instalados em:
/usr/share/texmf-tetex/tex/latex
Pra quem usa o TexLive, os pacotes devem ser instalados em:
/usr/share/texmf-texlive/tex/latex
Primeiro crie um diretório com o nome do pacote que irá instalar (você pode procurar os pacotes em www.ctan.org) e copie o conteúdo do pacote neste diretório (obviamente já descompactado).
Finalmente, rode o programa mktexlsr para criar as bases de dados ls-R.
O exemplo a seguir mostra como instalar o pacote eurosym, considerando o TexLive.
a) Crie um diretório chamado eurosym em /usr/share/texmf-texlive/tex/latex ($ mkdir /usr/share/texmf-texlive/tex/latex/eurosym);
b) Copie o arquivo eurosym.sty e outros arquivos que vêm no pacote para o diretório criado;
c) Digite o comando $sudo mktexlsr.
Agora, para usar o pacote, adicione uma chamada no preâmbulo do seu arquivo .tex (\usepackage{eurosym}).
Enjoy it!
——————— English ——————–
Sometimes we have to install LaTeX Style Files (.sty) to use a new feature.
The directory we should install these .sty LaTeX files, on Ubuntu, depends on the distribution you are using.
For the ones who are using TeTeX, it is:
/usr/share/texmf-tetex/tex/latex
For the ones who are using TeX Live, it is:
/usr/share/texmf-texlive/tex/latex
First of all, create a directory for your new package (that you can download from www.ctan.org) and copy the package’s contents there (untarred/unzipped).
Thereafter, you have to run the program mktexlsr as root to create ls-R databases.
This is an example on how to install the eurosym package, using the TexLive:
a) Create a directory named eurosym on /usr/share/texmf-texlive/tex/latex ($ mkdir /usr/share/texmf-texlive/tex/latex/eurosym);
b) Copy the file eurosym.sty and the other files that come with the package to the directory /usr/share/texmf-texlive/tex/latex/eurosym;
c) run the command $sudo mktexlsr.
To make use of the package, include \usepackage{eurosym} on the .tex file preamble.
Enjoy it!