[Tex/LaTex] Installing latex standalone in ubuntu for humans

standaloneUbuntu

Ubuntu is the most popular Linux flavour around, Latex is the gold standard for scientific writing and printing a standalone figure, table, whatever should be a nobrainer. And yet, installing the standalone package in Ubuntu is a Kafkian endeavour.

I've browsed through a dozen webpages suggesting different routes, ranging from the horribly complicated that might work but require a PhD to understand (How to install "vanilla" TeXLive on Debian or Ubuntu?) to others which are understandable but that simply don't work (How to install the documentclass standalone in Ubuntu?).

Now, Latex tells me '! LaTeX Error: File `standalone.cls' not found.' so I want to have .cls file. This is where I want to go.

I couldn't find one anywhere, only the CTAN package which has an .ins and .dtx pair.

Extracting to a texmf local folder pdflatex'ing either of them didn't help because I am prompted for a multitude of .sty's, so this is probably wrong.

Can you provide a sequence of steps that will take me from point A (.ins/.dtx) to point B (.cls) and that can actually be followed by a human?

Many thanks

Best Answer

The standalone latex package is included in the Ubuntu package texlive-latex-extra. You can install it through the terminal with the command:

sudo apt-get install texlive-latex-extra

or with any other graphical package manager you use in Ubuntu.