Installing LaTeX Packages(LINUX)

Kiprono Elijah Koech
3 min readJun 19, 2020

In most cases if not all, we always need packages to run .tex files in TexStudio. We will always import packages with \usepackage{package_name} function and if the package being imported is not available then the .tex file won’t compile.

In this particular blog we will learn how to install Latex packages in Linux and we will get the packages from CTAN. There are two cases. You may go to CTAN and find:

  1. .ins file for the package or
  2. zipped file with .ins file already build.

Let us talk about the two cases and things will be clear:

Case 1: Downloaded .ins file for the package

We will use the package multibib package as an example in this case.

  • Download the zipped file of the package from CTAN site and unzip the file into a multibib folder.
After unzipping. Note the .ins file.
  • Run the latex to build .insfile, that is, run:

latex multibib.ins

  • After running that you will have .sty file namely multibib.sty.Take a look below:
.sty file now in the folder.
  • Make a new directory in your texmf tree so that…

--

--