# Installing iopart class files on Ubuntu 16.04

I'm using a latex distribution installed on a Ubuntu 16.04.

I'm using a set of files which currently works on another workstation where Ubuntu together with the packages for the document style where installed.

To be specific, I'm trying to compile this set of files for IOP. The prreamble looks like this:

\documentclass[12pt]{iopart}

\usepackage[left, pagewise]{lineno}

\bibliographystyle{iopart-num}

\begin{document}


etc

Upon trying pdflatex myfile.tex I got the usual error:

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./myfile.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 81 language(s) loaded.

! LaTeX Error: File iopart.cls' not found.


I tried, in different stages, and not in chronological order:

1. sudo apt install texlive-bibtex-extra,
2. sudo apt install texlive-full,
3. uploading the file from Lyx (import from plain latex file), without being able to open the file,
4. downloading the package ioplatexguidelines.tar.gz then unzipping it in a directory like /usr/share/texlive/texmf-dist/tex/latex
5. same as above but uncompressing in /usr/share/texmf/tex/latex/ after last two points I tried also sudo texhash.

Needless to say, I cleaned up everything before passing from one attempt to the other.

• Still everything works with another workstation.
• Everything else works fine on my laptop, and I've been able to apt update and apt install many packages before.
• Even now, it seems I've installed the packages mentioned above, but with no change in the outcome.
• The file compiles well with the revtex4-1 class (if I change that in the preamble, of course).

Currently I have a directory iopart-num with only the following files:

-rwxrwxr-x 1 root 3.6K Jan 22  2009 iopart-num.bib
-rwxrwxr-x 1 root  36K Jan 23  2009 iopart-num.bst
-rwxrwxr-x 1 root 7.1K Jan 23  2009 iopart-num.tex
-rwxrwxr-x 1 root  66K Jan 23  2009 iopart-num.pdf
-rwxrwxr-x 1 root  849 Jan 23  2009 README


I can't solve this problem and it looks highly frustrating. Can anybody help in finding the right path for the installation of the package?

Thank you in advance!

• (1) welcome, (2) are you sure your Linux actually takes LaTeX from /usr/share/texlive/texmf-dist/tex/, e see many users that end up having two latex installations and they think LaTeX is in one place but it is actually in another. – daleif Nov 7 '16 at 14:35
• (3) I don't think you downloaded the correct files. Those seems to be a template, they do not include the .cls` you need. – daleif Nov 7 '16 at 14:43
• Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Martin Schröder Nov 7 '16 at 14:55