[Tex/LaTex] Texlive Full installation on Solus Linux

installingtexlive

The official Solus repository provides only texlive-base (current version: 20160523b-6) for installation. How can one install texlive-full (current version: 2016) on Solus Linux?

Best Answer

texlive-full installation

The following provides a step-by-step guide for installing texlive-full on Solus Linux. Plase see this texlive-full quick install for detailed instructions.

There are a number of ways to install texlive-full like network install, iso install, etc. A more detailed description can be found in above link. Assuming network install, the first step is to download the installer and run the install-tl script.

After the installation is done, the next step is setup the PATH variable. Add the following two lines to your bashrc file located in your home directory. Full path of the bashrc file is: /home/username/.bashrc.

PATH=/usr/local/texlive/2016/bin/x86_64-linux:$PATH

export PATH

Note

  1. Please do not set the PATH variable as PATH=$PATH:/usr/local/texlive/2016/bin/x86_64-linux. The reason for this will be explained later.
  2. Choose the syntax appropriate for your shell, your installation directory, and your platform for setting up the PATH variable. For example if you have a 32-bit platform use PATH=/usr/local/texlive/2016/bin/i386-linux:$PATH

Next, logout and then after login check if the the PATH variable is properly set or not, run this command: echo $PATH. This should output something similar to:

/usr/local/texlive/2016/bin/x86_64-linux:/usr/local/bin:/usr/bin:/bin

This is it, check if latex is properly installed by running the command latex. This should output something like:

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=latex) restricted \write18 enabled. **

Setting up TeXstudio in Solus linux

The above was the easy part. Most of us work with an integrated editor such as TeXstudio when working with latex. The following guide shows how to setup an editor such as TeXstudio to work with texlive-full in Solus linux. Although the following is written for TeXstudio in mind, it should work with other editors also with appropriate changes.

Install TeXstudio from the software center. The problem is that this will also install the texlive-base package present in the Solus repository. The reason is that TeXstudio depends upon the texlive-base package and the Solus software center does not recognize the texlive-full installation that is already installed on the system (if you followed the guide till now, that is). I couldn't find a workaround this. No worries though, proceed with the installation of both TeXstudio and texlive-base package.

After the install is done, you would have two different versions of texlive installed on the system.

  1. texlive-full which was installed manually.
  2. texlive-base which was installed along with TeXstudio.

Now, if you compile a latex document via the terminal it will compile via the texlive-full package. (Hence the reason for setting up the PATH variable as PATH=/usr/local/texlive/2016/bin/x86_64-linux:$PATH). But if you compile your document using TeXstudio, then it will compile via the texlive-base package.

Hence, the next step is to manually configure TeXstudio to use the texlive-full package.

  1. Open TeXstudio and go to Options -> Configure TeXstudio -> Commands
  2. There you will see the different programs available in the texlive package.
  3. Click on the Select Program icon on the right side of the pane, and browse to the texlive-full installation directory. in my case, this is : /usr/local/texlive/2016/bin/x86_64-linux/. Find and select the appropriate program for each of: latex, pdflatex, xelatex, lualatex and you are done

That's it !!!