I've installed texlive-publishers
; but, still I'm getting the error in kile: file revtex4-2.cls not found
on Ubuntu 18.04.1 LTS system.
How to use revtex4-2
with Ubuntu?
I've installed texlive-publishers
; but, still I'm getting the error in kile: file revtex4-2.cls not found
on Ubuntu 18.04.1 LTS system.
How to use revtex4-2
with Ubuntu?
From the CTAN website, the procedure for installing revtex4-1 in TeXLive 2018 (also works for 4.2) is as follows:
The following method works if you have installed TexLive distributions from the installer, and not from official Ubuntu repositories.
Download the revtex4-2 archive anywhere.
Run this command to unzip the archive in the appropriate place:
sudo unzip revtex4-1-tds.zip -d /usr/local/texlive/texmf-local/
Update the TexLive distribution with:
sudo mktexlsr /usr/local/texlive/texmf-local
The following method works if you have installed TexLive distributions from the official Ubuntu repositories.
Download the revtex4-2 archive anywhere.
Run this command to unzip the archive in the appropriate place:
sudo unzip revtex4-1-tds.zip -d /usr/local/share/texmf
Update the TexLive distribution with:
sudo mktexlsr /usr/local/share/texmf
Now, if you open a revtex template in an appropriate editor (kile, texstudio etc.) it should work without a problem.
/usr/local/share/texmf
, as found from this answer on stackexchange. This works on my Ubuntu 18.04 installation at least, while the directory you suggested does not.
– poomerang
Dec 17 '19 at 13:18
texlive-publishers
package for 18.04 appears to containrevtex4.cls
andrevtex4-1.cls
- if you needrevtex4-2.cls
you will need to install it manually from the APS website I think – steeldriver Jan 31 '19 at 13:39.cls
file directly into the directory containing your.tex
document – steeldriver Feb 02 '19 at 17:45