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:
sudo apt install texlive-bibtex-extra
,sudo apt install texlive-full
,- uploading the file from Lyx (import from plain latex file), without being able to open the file,
- downloading the package
ioplatexguidelines.tar.gz
then unzipping it in a directory like/usr/share/texlive/texmf-dist/tex/latex
- same as above but uncompressing in
/usr/share/texmf/tex/latex/
after last two points I tried alsosudo 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!
Best Answer
I moved along the lines of the suggestions given by daleif.
Like that works.