Using REVTeX 4.1 on Ubuntu

In howto on Oct 30, 2011 by theoryl Tagged: , , , , , , ,

At the time of writing, the \LaTeX package is provided by texlive or texlive-full (version 2009-7) in Ubuntu Lucid Lynx 10.04 (see community Ubuntu documentation, TeX Live homepage). American Physical Society (APS) and American Institute of Physics (AIP) require that submissions to their journals are typeset in \LaTeX using the REVTeX package. REVTeX has dependencies on AMS-LaTeX and natbib, both of which should come with the default installation of texlive-full. Moving on to install REVTeX 4.1 (released in August 2010), first download the .zip file from the APS page (or from its CTAN directory). Inside the .zip file, there is a README file (take a look at it) and yet another .zip file:

The files and directories inside follow the standard TeX Directory Structure (TDS) layout. Assuming that texlive was installed from the Ubuntu repository, then the local TeX distribution should sit at /usr/share/texmf-texlive. All you need to do is unzipping:

sudo unzip -d /usr/share/texmf-texlive/

Then update the \LaTeX package cache:

sudo texhash

The APS page has a section “Common Problems When First Using REVTeX 4.1”. In particular, REVTeX requires natbib 8.31a or later. The latest natbib can be easily downloaded from CTAN. Unzip the file you downloaded, cd into the directory, and do latex bibentry.ins. This will produce natbib.sty. Now copy the full directory to overwrite the one at /usr/share/texmf-texlive/tex/latex/natbib. Remember to update the \LaTeX package cache again:

sudo texhash

To start using REVTeX, insert the following commands into your .tex file:

\documentclass[aps,preprint,amsmath,amssymb]{revtex4-1}% APS journal style
\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{hyperref}% add hypertext capabilities
\bibliography{basename of .bib file}

You can find other useful information on the REVTeX FAQ page.


5 Responses to “Using REVTeX 4.1 on Ubuntu”

  1. Very useful, thanks!

  2. I had trouble with numbering of affiliation. This blog helped me to overcome it. Thaks a lot!

  3. Aliter: If you are using Ubuntu 10.04 with texlive, try installing texlive-publishers package under Synaptic.

  4. Even simpler:

    $ sudo apt-get install texlive-publishers

  5. thanks, worked like charm! @Atul & strpeter: revtex4-1 in texlive-publishers contains several bugs, it is probably not the most recent version. I’ve head major problems with footnotes with the version from the repo, now after installing the most recent version everything works :-)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: