[Tex/LaTex] LyX and TeX Live Ubuntu 12.04 LTS

installinglyxtexliveUbuntu

When I had installed LyX on Windows 7, it had installed MiKTeX along with it. On Ubuntu 12.04 LTS, I had been using TeX Live and TexStudio together. However, I would like to use LyX as I am more used to it.

I was wondering if it would be possible to use LyX along with TeX Live 2013 that I have already installed? Are there some specific steps to be followed? Will there be a problem in using TeX Live 2013 which has been updated recently along with LyX that has not been updated recently?

Best Answer

If you working from TeX Live installed with .deb official Ubuntu packages, or you have not TeX Live installed, then you only need:

sudo apt-get install lyx

If you are working with TeX Live 2013 installed from the DVD or the with install-tl-unx.tar.gz, the anterior method is not convenient, because the lyx package dependencies, apt-get wish install also many texlive-* packages with a older version.

To solve this problem with LyX (or any LaTeX editor), you have two approaches:

  1. Make a dummy texlive-local.deb package and install so that apt believe that all dependencies of lyx package already are satisfied, and you can install with apt-get. This is explained in Integrating vanilla TeX Live with Debian.

  2. Download source code or a binary version of LyX and install in /usr/local

If PATH is correct, with both methods LyX will work without problems with the vanilla TeX Live. Although this is not as trivial as just run apt-get. Your mileage may vary.