Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > Latex > FAQ > Extra > How to install latex package ?

How to install latex package ?

All the versions of this article: <English> <français>


First you must be root ! We want to install the package My_package. Create a directory My_package and copy all style files in:

sudo mkdir /usr/share/texmf/tex/latex/My_package
sudo cp My_package.sty /usr/share/texmf/tex/latex/My_package

Update your database with

texhash

or

mktexlsr

In your latex file, add

\usepackage{My_package}

Enjoy !!!

Also in this section

  1. How to install latex package ?
  2. Comment installer un package Latex ?