TeX Live and MacTeXproblems of installing package revtex4 in Fedora

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
betafd
Posts: 1
Joined: Tue Jan 19, 2010 7:06 am

problems of installing package revtex4 in Fedora

Post by betafd »

Hello everyone,

I want to use package revtex4, a package from American Physical Society, in texlive. I am using Fedora, so I add the repository in http://fedoraproject.org/wiki/Features/TeXLive to install texlive, and then install texlive-revtex . But when I compile a latex file using revtex4, I still get error like "! LaTeX Error: File `revtex4.cls' not found". I give another try by downloading the revtex4 package from APS website, following the installation instructions but still I get the same error. Does anybody know how to do that in Fedora? I know in Debian people just install package texlive-publishers and everything will be okay.

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Re: problems of installing package revtex4 in Fedora

Post by php1ic »

Perhaps your texmf tree (place where all latex packages live) and/or latex hasn't updated properly, hence why revtex4.cls cannot be found. This link talks about a local texmf tree, but the commands look like they will also update the global one.

https://lists.ubuntu.com/archives/ubunt ... 79692.html

If it doesn't work, and depending on how much you need the new version, you could try finding the revtex4.cls file and copying it to the same directory as you main latex file.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

problems of installing package revtex4 in Fedora

Post by localghost »

At first you should check on the terminal if revtex4-1 is correctly installed and can be found in the directory tree of your system.

Code: Select all

kpsewhich revtex4-1.cls
The bundle should be part of TeX Live 2009. Otherwise you could create a TeX Directory Structure (TDS) in your home directory and install the package in that place. Note that you strictly have to follow the rules of the TDS. This is how I installed biblatex on my Linux system².


Best regards
Thorsten
llobocki
Posts: 1
Joined: Wed Dec 29, 2010 11:35 am

problems of installing package revtex4 in Fedora

Post by llobocki »

On Fedora 12 (assuming you have texlive-texmf-latex-2007-34 package installed), as a root, copy the contents of the revtex4.1 package (revtex4.tds.zip), directory by directory into corresponding subdirs stemming from /usr/share/texmf. The names of the files contained in the revtex4.tds.zip are different than those originally coming with the distro's revtex 4.0, so that there is no overwriting.

Next, back up the /usr/share/texmf/ls.R file, and run (still as a root)
the command

Code: Select all

mktexlsr /usr/share/texmf
This should do the job. I still experience problems with natbib and bibtex, but at least the revtex4.1 styles work fine.
Post Reply