# Longbibliography Revtex Template

## REVTeX 4 - Frequently Asked Questions

REVTeX 4 Home

The current version is REVTeX 4.1 (patch level 2), released on August 11, 2010.

## Bugs/Workarounds

March 15, 2010: A new release of REVTeX 4.1 has been made public. The following bugs were addressed:

• Using the same \affiliation more than once results in some authors not getting any affiliation at all.
• reftest was left out of the distribution
• For RMP, the \cite command doesn't enclose the citation in parentheses properly.
• For RMP, the .bst files don't properly handle several cases including a book with editors, but no authors

In addition, there were many other improvements including the handling of footnotes, compatibility with packages such as lscape and hyperref, and punctuation in bibliographies. Also, the "long" version of the BibTeX style files have been removed from the distribution. The remaining style files have been enhanced to provide the same functionality when the longbibliography class option is used.

## Changes from REVTeX 4

The current release of REVTeX 4.1 may be download directly from this site as a zipfile: revtex4-1.zip. In addition, it may be found on CTAN in the latex/contrib/revtex directory.

Where do I get a TeX installation?

• TeX Live is available for many platforms from the TeX Live home page. It is updated annually and it is a rather comprehensive distribution. REVTeX 4.1 has been part of TeX Live starting with its 2010 distribution.
• MacTeX for Mac users is made available via the MacTeX package on the TUG site.
• MiKTeX is also a free Windows TeX installation. You might be interested in downloading the up-to-date MiKTeX installer. Choose either the basic system or the complete MiKTeX system.
• Scientific Word is another option for using LaTeX on Windows. It is available from Mackichan Software.
• PCTeX is still another option for Windows available from their website.

Is REVTeX 4.0 still available?

REVTeX 4.0 may still be needed for legacy documents. Most REVTeX 4 documents should run under REVTeX 4.1 as well. Many TeX distributions remove older packages, so you may need to install REVTeX 4 yourself. It can be downloaded as the zip file revtex4.zip. REVTeX 4 and REVTeX 4.1 can be installed side-by-side on the same computer without interfering each other. New documents should be created using REVTeX 4.1, especially if you are planning on submitting to an APS journal.

## Installing REVTeX 4

I have a TeX installation. How do I install REVTeX 4.1?

Many up-to-date TeX installations already include REVTeX 4.1. Installation for TeX Live and MikTeX is fairly straightforward because both use the standard TeX Directory Structure (TDS) layout for their files. See the README file included in the REVTeX 4.1 distribution for basic instructions. REVTeX 4.1 comes as a zip file using the same TDS layout. Usually one only need unzip the revtex4-1-tds.zip file in the proper place and run a program to update where TeX looks for files. See the README and the documentation for your TeX distribution on which program to run.

For other TeX distributions, please consult that distribution's documentation.

REVTeX 4 and 4.1 can be installed side-by-side on the same computer. The files in 4.1 are all versioned.

## Using REVTeX 4.1

Are there any templates to help with producing my paper?

REVTeX 4.1 comes with template files called apstemplate.tex for APS journals and aiptemplate.tex for AIP journals. They are located in the doc/latex/revtex/sample directory.

How do I achieve a one-column, double-spaced, 12 pt document?

Using \documentclass[preprint,...]{revtex4-1} gives 12 pt., one-column, double-spaced look used for the review/production process.

How do I make my paper look like the journal?

Using \documentclass[reprint,...]{revtex4-1} gives the look and feel of the journal (whether the journal is set in one or two columns). You may use the twocolumn class option to force a two-column layout.

How do I format a one-page comment or erratum?

Just format it as a regular article. REVTeX doesn't support comments or errata directly. It will be formatted in the production stage of the processing of the manuscript.

How do I change the numbering of pages?

The standard LaTeX 2e method should work: \setcounter[page]{321}. Any standard LaTeX2e manual should be able to help you with this.

How do I remove all page numbers?

You should be able to use the standard LaTeX 2e \pagestyle{empty}. Please consult any LaTeX 2e manual.

How do I choose the square bracket or superscript style for citations?

The citation style is set by the journal option you choose. For APS journals, only the prb option gives superscript-style citations.

Why is the compiler rejecting the \Bbb command and recommending the \mathbb command?

Be sure you are using the amssymb math package by specifing the amssymb class option:
\documentclass[...,amssymb,...]{revtex4-1}

How do I format long equations in a preprint format?

If you want them typeset with a certain set of line breaks, you should force the line breaks in your preprint style submission. Our typesetter is the final arbiter of how the math is set, so it may be changed in production. You may include a note in your cover letter indicating why you prefer to have the equations typeset with the line breaks. You will also be given the opportunity to comment on the formatting at the author proofs stage.

Why is there no top margin when I print?

The bounding box is cutting off the top of the page. Be sure that your dvips is configured to use letter size and not A4 size paper. If you are running Unix, try using the texconfig command to check and fix the default size.

Can I use REVTeX 4.1 to prepare a contribution to an AIP journal?

Yes, REVTeX 4.1 introduced full support for all AIP journals. Please consult Author's Guide to AIP Substyles for REVTeX 4.1. Questions regarding AIP journals should be sent to tex@aip.org.

How do I add line numbers to my document?

Use the linenumbers class option: \documentclass[...,linenumbers,...]{revtex4-1}. This will call in lineno.sty (and patch it to work with REVTeX 4.1).

## Page Length

Can I use REVTeX 4.1 to estimate the length of my submission?

Although using the reprint option in REVTeX 4.1 typesets the text area and font sizes appropriately for each journal, the formatting in REVTeX 4.1 is not exact enough for determining the final length of an article once it goes through journal production (which involves converting the article to XML). Different fonts and figure scalings are the largest sources of error. Use of Times-Roman fonts can partially mitigate the problem. Length estimates at APS are calculated as described in our Length Guide. For AIP length requirements, please consult their web site.

## Bugs/Workarounds

Why does \tag not work with hyperref?

This isn't really a REVTeX 4.1 bug. There is an incompatibility between AMSTeX's \tag command and hyperref. We don't know of a workaround.

## BibTeX

Is there any link to the BibTeX Guide mentioned in the REVTeX 4 documentation?

This was an error in the REVTeX 4 documentation and has been addressed in REVTeX 4.1. At this point in time, there is no separate BibTeX guide. A good LaTeX book will contain an intro to BibTeX and help you through the process. We can answer specific questions if you have them.

How do I put multiple references in the same bibliography entry?

Combining multiple references into a single bibliography entry when using BibTeX was one of the most common problems authors run into. During the development of REVTeX 4.1, we worked with Patrick Daly to add enhancements to his natbib package to make this straightforward. To combine two references together, prepend an * to the argument of the \cite command. For instance, if you want the bibitems with keys feynman and bohr combined into a single entry, use \cite{feynman,*bohr}. The references will be separated by a semicolon in a single entry.

Another feature of natbib and REVTeX 4.1 is to allow the prepending or appending of text to an entry in the bibliography. This is done via \cite{*[{prepended text}][{appended text}]key}. Note the use of the curly braces within the square bracket to avoid problems with the processing of the text. See the REVTeX 4.1 documentation for more information.

The natbib.sty files are available at CTAN in the macros latex/contrib/natbib directory.

Is it necessary to have the same citation order in a .bib file?

The order in the BibTeX entries in the .bib file is irrelevant. Only the order of the \cite commands matters.

How can I make the titles of cited journal articles appear in the bibliography?

REVTeX 4.1 calls in a default BibTeX Style (.bst) file for each supported journal. The .bst files support displaying the titles of cited journal articles in the bibliography. To display the titles, simply use the "longbibliography" class option. Consult the REVTeX 4.1 documentation for more information.

How do I include an accent in an author's name?

Try surrounding the entire name in an additional set of braces. Or, try isolating the accented letter as {\"u}.

How do I keep footnotes in order of appearance within the text instead of having them appear at the end of the bibliography?

REVTeX 4.1 uses the footnote style appropriate for the chosen journal. You can override the journal default by using the 'footinbib' or 'nofootinbib' options (see the command summary documentation included with REVTeX 4.1).

I received warning messages about missing references when I ran LaTeX on my file.

While in the directory containing the TeX files, run the following:

• latex file.tex
• bibtex file (creates the .bbl file)
• latex file.tex (runs latex on the .tex and .bbl files together)
• latex file.tex (second run of latex corrects the citations)

BibTeX will have created a .bbl file. When submitting to APS or AIP journals, we ask that you include the final .bbl directly into the main .tex file.

How do I get a truncated reference, e.g., "Ann Author et al." when there are 5 or more authors?

The BibTeX style files distributed with REVTeX 4.1 no longer truncate the author lists of references (REVTeX 4's .bst files would truncate the list if there were more than 10 authors). APS editors prefer full author lists be used for references with 15 or less authors. For longer lists, use the phrase "and others" in place of the authors you want to omit.

I received a fatal error: Warning--I didn't find a database entry for "endnote 1" ... you've exceeded BibTeX's wizard-defined function space 3000.

The REVTeX 4.1 BibTeX style files are fairly demanding but most up-to-date TeX installations come with a big enough space for BibTeX. Your TeX distrubtion's BibTeX may have have a command line flag or configuration parameter to increase this space.

## Figures

How do I include PostScript figures?

Assuming you are using REVTeX 4.1:

\usepackage{graphics} (or graphicx)
...
\begin{figure}
\caption{\label{foo} ....}
\includegraphics{foo.eps}
\end{figure}

Please see the "Documentation" section of the REVTeX 4 Home Page or any good book on LaTeX2e.

How do I generate a page that shows a list of figures with their captions?

Use the endfloats option and leave out the \includegraphics - this will list all of the figures at the end of the paper. APS no longer requires this so we don't support it particularly well. It is not needed for production or editorial purposes. It is better to have the figures in the text for the referees to see.

Can I place a caption in the second column next to a long, full-column-wide figure?

No, unfortunately the REVTeX 4.1 layout isn't that sophisticated.

When there are two figures on the same page, the second one doesn't seem to appear.

Please check your log file. You should be receiving error messages; i.e., could not place figure, or something similar. It should not just be ignoring the figure. You can try the floatfix option and see if that helps.

Is there a way to convert .jpg (.jpeg) files to .ps or .eps?

You can convert it to a similarly sized EPS file via a program called 'jpeg2ps.' The jpeg2ps program puts a simple PostScript Level II wrapper around the JPEG. The size shouldn't change at all. (You might try making sure that exporting Level II EPS.)

How do I get the LaTeX compiler to recognize the command \includegraphics?

You need to either use \usepackage{graphics} or \usepackage{graphicx}
Somewhere in your TeX distribution is a file called grfguide.ps or grfguide.dvi. You may want to read it to learn how to resize and reposition your graphics. Alternatively, search at CTAN for "grfguide" to locate a copy of the guide.

## Changes from REVTeX 4

What changes were made with upgrading from REVTeX 4 to REVTeX 4.1?

A complete list of specific differences between REVTeX 4 and REVTeX 4.1 is given in the REVTeX documentation included in the REVTeX 4.1 distribution. The file is whatsnew4-1.pdf in the doc/latex/revtex/auguide directory.

## Help with REVTeX 4.1

How can I get more help with REVTeX 4.1?

## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ revtex4-1 | Problem with Bibliography Database FileTopic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.

hbaromega
Posts:48
Joined: Mon Mar 07, 2011 8:21 pm

### revtex4-1 | Problem with Bibliography Database File

Postby hbaromega » Wed Aug 17, 2011 10:18 pm

I'm trying to compile a tex file (called test.tex) with a bib file (sample.bib). I'm using a bibliography style file apsrmp4-1.bst and a class file revtex4-1.cls, downloaded/installed from the APS site (http://www.aps.org/).

However, if I ignore the errors and compile forcefully, I don't see any error in the citation!

Hope I could explain the problem. I'm attaching the .tex, .bib and the .log files. Hope the class and style files, that I have mentioned, are familiar to you.

Thank you.

PS. I need this particular class/style files in order to publish article in their journals.
Attachments
test.log
sample.bib
test.tex

Tags:
localghost
Site Moderator
Posts:9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Sat Sep 03, 2011 7:57 pm

If I comment the obsolete fancyheadings package and this self-built »mycommand« package, the example given by the OP works fine for me. I only get a negligible warning by the caption package due to an unsupported document class. Probably a matter of outdated packages. For testing you can try the below example.

If this does not work, update your TeX system.

Thorsten
1. \begin{filecontents*}{\jobname.bib}
2. title={\LaTeX\ -- A Document Preparation System},
3. note={User's Guide and Reference Manual},
5. \email{e.mail@domain.com}
6. \affiliation{Affilliation}
7. \blindtext\cite{lamport94}
8. \bibliographystyle{apsrmp4-1}
hbaromega
Posts:48
Joined: Mon Mar 07, 2011 8:21 pm

Postby hbaromega » Mon Sep 05, 2011 1:05 am

localghost wrote:If I comment the obsolete fancyheadings package and this self-built »mycommand« package, the example given by the OP works fine for me. I only get a negligible warning by the caption package due to an unsupported document class. Probably a matter of outdated packages. For testing you can try the below example.

If this does not work, update your TeX system.

Thorsten
1. \begin{filecontents*}{\jobname.bib}
2. title={\LaTeX\ -- A Document Preparation System},
3. note={User's Guide and Reference Manual},
5. \email{e.mail@domain.com}
6. \affiliation{Affilliation}
7. \blindtext\cite{lamport94}
8. \bibliographystyle{apsrmp4-1}

I'm still getting the same problem. Did you compile with bibtex command as well?

And for what package I need an update?

Thanks.
localghost
Site Moderator
Posts:9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Mon Sep 05, 2011 10:21 am

hbaromega wrote:[…] Did you compile with bibtex command as well? […]

Certainly. And I obtained a complete document including references.
hbaromega wrote:[…] And for what package I need an update? […]

In the worst case for every package that you include. With the \listfiles command added as very first line to your example I get the following list of used files from the log file.

Compare with yours and you know which packages need an update. On my system all packages are present in their current versions. In general you should keep your TeX installation up to date by regular updates using the package manager of your TeX distribution.
1. revtex4-1.cls 2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ for documentation)
2. textcase.sty 2004/10/07 v0.07 Text only upper/lower case changing (DPC)
3. url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
4. natbib.sty 2010/09/13 8.31b (PWD, AO)
5. revsymb4-1.sty 2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ for documentation)
6. graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
7. keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
8. graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
9. trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
10. graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
11. dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
12. hyperref.sty 2011/08/19 v6.82h Hypertext links for LaTeX
13. hobsub-hyperref.sty 2011/04/23 v1.4 Bundle oberdiek, subset hyperref (HO)
14. hobsub-generic.sty 2011/04/23 v1.4 Bundle oberdiek, subset generic (HO)
15. hobsub.sty 2011/04/23 v1.4 Subsetting bundle oberdiek (HO)
16. infwarerr.sty 2010/04/08 v1.3 Providing info/warning/message (HO)
17. ltxcmds.sty 2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
18. ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
19. ifvtex.sty 2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
20. intcalc.sty 2007/09/27 v1.1 Expandable integer calculations (HO)
21. ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
22. etexcmds.sty 2011/02/16 v1.5 Prefix for e-TeX command names (HO)
23. kvsetkeys.sty 2011/04/07 v1.13 Key value parser (HO)
24. kvdefinekeys.sty 2011/04/07 v1.3 Defining keys (HO)
25. pdftexcmds.sty 2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)
26. pdfescape.sty 2011/04/04 v1.12 Provides string conversions (HO)
27. bigintcalc.sty 2011/01/30 v1.2 Expandable big integer calculations (HO)
28. bitset.sty 2011/01/30 v1.1 Data type bit set (HO)
29. uniquecounter.sty 2011/01/30 v1.2 Provides unlimited unique counter (HO)
30. letltxmacro.sty 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
31. hopatch.sty 2011/01/30 v1.0 Wrapper for package hooks (HO)
32. xcolor-patch.sty 2011/01/30 xcolor patch
33. atveryend.sty 2011/04/23 v1.7 Hooks at very end of document (HO)
34. atbegshi.sty 2011/01/30 v1.15 At begin shipout hook (HO)
35. refcount.sty 2010/12/01 v3.2 Data extraction from references (HO)
36. hycolor.sty 2011/01/30 v1.7 Color options of hyperref/bookmark (HO)
37. ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
38. kvoptions.sty 2010/12/23 v3.10 Keyval support for LaTeX options (HO)
39. pd1enc.def 2011/08/19 v6.82h Hyperref: PDFDocEncoding definition (HO)
40. hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
41. hdvips.def 2011/08/19 v6.82h Hyperref driver for dvips
42. pdfmark.def 2011/08/19 v6.82h Hyperref definitions for pdfmark specials
43. rerunfilecheck.sty 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
44. fancybox.sty 2010/05/15 1.4
45. amsfonts.sty 2009/06/22 v3.00 Basic AMSFonts support
46. amsmath.sty 2000/07/18 v2.13 AMS math features
47. amstext.sty 2000/06/29 v2.01
48. amsgen.sty 1999/11/30 v2.0
49. amsbsy.sty 1999/11/29 v1.2d
50. amsopn.sty 1999/12/14 v2.01 operator names
51. mathtools.sty 2011/04/06 v1.11 mathematical typesetting tools
52. calc.sty 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
53. mhsetup.sty 2010/01/21 v1.2a programming setup (MH)
54. amssymb.sty 2009/06/22 v3.00
55. verbatim.sty 2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
56. eucal.sty 2009/06/22 v3.00 Euler Script fonts
57. enumerate.sty 1999/03/05 v3.00 enumerate extensions (DPC)
58. color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
59. dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
60. pstricks.sty 2011/04/23 v0.50 LaTeX wrapper for PSTricks' (RN,HV)
61. pstricks.tex 2011/06/07 v2.21 PSTricks' (tvz,hv)
62. pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
63. xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
64. xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
65. pst-fp.tex 2011/06/07 v2.21 `PST-fp' (hv)
66. xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
67. color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
68. caption.sty 2011/08/18 v3.2b Customizing captions (AR)
69. caption3.sty 2011/08/18 v1.3b caption3 kernel (AR)
70. nameref.sty 2010/04/30 v2.40 Cross-referencing by name of section
71. gettitlestring.sty 2010/12/03 v1.4 Cleanup title references (HO)
72. umsa.fd 2009/06/22 v3.00 AMS symbols A
73. umsb.fd 2009/06/22 v3.00 AMS symbols B
alex170872
Posts:6
Joined: Fri Jan 14, 2011 4:13 pm

Postby alex170872 » Wed Jan 25, 2012 6:34 pm

Hi,

I encountered the very same problem, i.e. the error message

! Undefined control sequence.
<argument> \@bibitemShut

when trying to compile some latex file. I tried all of the suggestions above, but NONE worked.

1 - In my bbl file there is no line "\BibitemShut {NoStop}" I could comment out
2 - I have checked the used latex file by using \listfiles. But I cannot tell which files are too old or so.
3- I tried to update my ubuntu system as follows

but I am not sure if any file got updated. Anyway it did no change the latex behavior.
4 - In the list of used files I could not find any reference to natbib. So I cannot say which version is used.

So in general I am lost here, and would appreciate any help regarding this problem.

Thanks
Alex

• LaTeX Community
•    Announcements
•    Community talk
•    New Members
• LaTeX
•    Text Formatting
•    Graphics, Figures & Tables
•    Math & Science
•    Fonts & Character Sets
•    Page Layout
•    Document Classes
•    General
• LaTeX's Friends
•    BibTeX, biblatex and biber
•    MakeIndex, Nomenclature, Glossaries and Acronyms
•    Conversion Tools
•    Viewers for PDF, PS, and DVI
•    XeTeX
•    Others
• LaTeX Distributions
•    Decision Guidance
•    MiKTeX and proTeXt
•    TeX Live and MacTeX
•    Others
• LaTeX Editors
•    Decision Guidance
•    AUCTeX
•    Kile
•    LEd
•    LyX
•    Scientific Word/Workplace
•    Texmaker and TeXstudio
•    TeXnicCenter
•       Announcements
•       General
•       Templates, Wizards & Tools
•       Feature Suggestions
•       Development
•    TeXShop
•    TeXworks
•    WinEdt
•    WinShell
•    Others
• LaTeX Templates
•    Articles, Essays, and Journal Templates
•    Theses, Books, Title pages
•    Letters
•    Presentations and Posters
•    Curricula Vitae / Résumés
•    Assignments, Laboratory books and reports
•    Calendars and Miscellaneous

### Who is online

Users browsing this forum: No registered users and 2 guests