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.
TeX Live and MacTeX ⇒ problems of installing package revtex4 in Fedora
NEW: TikZ book now 40% off at Amazon.com for a short time.
Re: problems of installing package revtex4 in Fedora
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.
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.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
problems of installing package revtex4 in Fedora
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.
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
Code: Select all
kpsewhich revtex4-1.cls
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
problems of installing package revtex4 in Fedora
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
This should do the job. I still experience problems with natbib and bibtex, but at least the revtex4.1 styles work fine.
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