I am using TexMaker on ubuntu 12.04 to edit my Latex-documents. Lately, I needed to create a chemical structure with 'chemfig'. However, this package is not included in the 'TexLive-all'-package and thus, I had to install it manually. Here's how I did it:
Asked
Active
Viewed 3,371 times
0
-
Possible Related/Duplicate of http://tex.stackexchange.com/questions/38978/how-can-i-manually-install-a-latex-package-debian-ubuntu-linux?lq=1 or http://tex.stackexchange.com/questions/73016/how-do-i-install-an-individual-package-on-a-linux-system?lq=1 – texenthusiast Nov 25 '13 at 23:20
1 Answers
1
- Download the required package online (for e.g. on CTAN).
- If it's zipped, unzip the archive to a place where it's easily accessible such as your desktop.
- Open a terminal (
ctrl+alt+t) and type:sudo nautilus - Hit enter and type in your password and confirm with enter.
- This will open a window in which you have administrator-rights, meaning you can copy or move files in your system-directory.
- In this window, navigate to
/usr/share/texmf-texlive/tex/latexand create a folder with the name of your package (for e.g.Chemfigif your package is calledchemfig.sty). - Copy the files
chemfig.sty,chemfig.texandt-chemfig.texto your freshly created folder and assure the files were really copied. If they weren't go back to step 3 and make sure you run the command correctly. - Open another terminal (ctrl+alt+t) and run the following command: texhash
You should now be able to use the package in your Latex-editor. If not, a restart should help.
Jurg
- 567
- 1
- 7
- 18