User Tools

Site Tools


en:latex-linux

Latex Installation

LaTeX is installed by default in all CIRRELT Linux machines.

However, you can load a recent version of Latex and access TeXstudio a latex editor by load the 2 following modules in a linux terminal :

module load texlive
module load texstudio

Adding modules with tlmgr

With texlive, there's a tool called tlmgr that allows you to search install and remove additionnal packages.

The first step is to initialize your personal directory with this command:

tlmgr init-usertree

After that, you can search packages:

tlmgr search --global algorithm

To install a module:

tlmgr --usermode install algorithmicx

To remove a module:

tlmgr --usermode remove algorithmicx

Add additional modules manually

If a module isn't available with tlmgr, you can add it in the same directory when you will edit your latex document. Or you can use tlmgr directory structure to add the module, this way you can use that module in multiple documents.

  • Create the structured directory in your home directory :
cd ~
mkdir -p texmf/tex/latex
  • Place the module in a new subdirectory, for example algo :
mkdir texmf/tex/latex/algo
mv algo.cls texmf/tex/latex/algo

You can use this organisation for your biography files too.

As we've seen for the module you create the same directory structure with bibtex as a subdirectory for biography files.

cd ~
mkdir -p texmf/bibtex/bib
mkdir -p texmf/bibtex/bst

You can put bibtex files in bibtex/bib and if you have bst (biography style files) in bibtex/bst.

en/latex-linux.txt · Last modified: 2018/09/25 12:40 by admin