Installing Latex Packages in Linux

Install LaTeX packages in Linux is quite simple. Lemme say we want to install the package called booktabs. So you have to:

  • Download the .zip
  • Extract its content somewhere (for example ~/booktabs)
  • Enter in /booktabs directory, and generate the .sty file trough the command latex booktabs.ins
  • Copy the just generated file booktabs.sty to /usr/share/texmf-tetex/tex/latex/booktabs (if you are using tetex), or to /usr/share/texmf-texlive/tex/latex/booktabs (if you are using texlive). Probably you have to create the “booktabs” directory.
  • It is necessary to “tell” to LaTeX that you just installed a new package, just enter this command sudo mktexlsr in the console.
  • In your .tex file, just add \usepackage{booktabs}

and voilà.

[Versão em Português]

2 Responses to Installing Latex Packages in Linux

  1. luis says:

    isso vale para instalar fontes?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: