5

The LaTeX in my system cannot support Sweave compilation to pdflatex, it warns for missing .sty files. I want to clean my system and reinstall a more complete LaTeX. What is the better way for doing so?

Werner
  • 603,163
  • 2
    There are a few post on installing vanilla TeXLive on Ubuntu floating around. My post here http://tex.stackexchange.com/questions/120120/does-texlive2013-need-any-special-install-instructions has a link to how you uninstall the older version and install the new one. The information is in the first answer. – dustin Jul 07 '13 at 04:36
  • Note that Sweave has to be installed separately. It is a part of every R installation. See its homepage – karlkoeller Jul 07 '13 at 05:39
  • Again, that is the penalty of not using knitr. – Yihui Xie Jul 07 '13 at 06:28

1 Answers1

5

Requirements : Ubuntu 13.04 and previous versions.

Uninstalling Latex:

Open your terminal and past the following commands :

sudo apt-get remove texlive
sudo apt-get autoremove
sudo apt-get remove tex-common --purge

Installing Latex:

They are currently 2 possibilities. You can first decide to install latex via official repository. Be aware that this version has not been updated recently.

sudo apt-get install texlive-full  

Or, you can download the last updated texlive source tar.gz at this

< link >


Then I suggest you to install a good editor, like texmaker :

sudo apt-get install texmaker  

Let me know if you encounter any problem.

Header12
  • 639
  • It's a bad idea to install TeX Live by apt-get. The version is outdated. It's always the best to install TeX Live from here: http://www.tug.org/texlive/ – Marco Daniel Jul 07 '13 at 08:44
  • @MarcoDaniel You are definitely right. It was just for the record. – Header12 Jul 07 '13 at 08:53