31

I found this page which suggests to install TexStudio with the following commands:

sudo apt-get update
sudo apt-get install texstudio

Is it enough? Don't I need a package manager like MiKTeX in Windows?

jeff
  • 943

6 Answers6

26

First, install texstudio with

sudo apt install texstudio

Then, you have to install texlive-full, it is around 3.5 GB. To install it, run the following command in the terminal:

sudo apt install texlive-full

Then you can install texstudio or texmaker.

Source here

Jeril
  • 378
13

When I installed Texmaker then that was all I needed to do. Any dependencies should be automatically installed when you use apt-get. I remember being surprised how much more work I had to do to install it on Windows.

4

Texstudio is merely an IDE. To get the full advantage of installing latex, you will have to use the command:

sudo apt install texlive-full  // for ubuntu 16.04 and above

However, the above command can most often be a temptation. It installs so many extra (language) packages, most of which will be unnessary for your purpose. Therefore, it is recommended to use the command without the "full":

sudo apt install texlive   // for ubuntu 16.04 and above
Anas
  • 41
4

It is also possible to install it via the Ubuntu Software program, which might be easier for people that are new to Ubuntu.

  1. Open Ubuntu Software
  2. Search TeXstudio
  3. Press install and wait
Mefaso
  • 41
3

BRIEF

I've seen 2 types of answers here. Both answers are actually OK. You could just do as you say or install first texlive-full.

  • Option 1: sudo apt-get install texstudio will have texstudio using texlive-base.
  • Option 2: sudo apt install texlive-full + sudo apt-get install texstudio will have texstudio using texlive-full

Both will have texstudio up and running and for most cases, the first option will be enough to compile. Option 2 will install every package so you'll never have to install any extra package when compiling.

I guess if you don't have space issues the second option is better. However, I am using Ubuntu on a live persistent USB drive without much space so I go for option 1.

You could check packages differences running apt-cache search texlive (you'll see that there are actually more than 2 options).

3

When installing texstudio, you need to install texlive first, since texstudio is solely the "IDE"