BibTeX, biblatex and biberrevtex4-1 | Problem with Bibliography Database File

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
hbaromega
Posts: 48
Joined: Mon Mar 07, 2011 8:21 pm

revtex4-1 | Problem with Bibliography Database File

Post by hbaromega »

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/).

Code: Select all

! Undefined control sequence.
<argument> \@bibitemShut 
                         
l.61 \end{thebibliography}
                          %
?
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
(19.68 KiB) Downloaded 640 times
sample.bib
(508 Bytes) Downloaded 745 times
test.tex
(1.19 KiB) Downloaded 847 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

climberjc
Posts: 1
Joined: Sat Sep 03, 2011 12:03 am

Re: revtex4-1 | Problem with Bibliography Database File

Post by climberjc »

I'm also having the same problem using the same APS PRL class file and template. Any ideas?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

revtex4-1 | Problem with Bibliography Database File

Post by localghost »

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.

Code: Select all

\begin{filecontents*}{\jobname.bib}
@BOOK{lamport94,
  author={Leslie Lamport},
  title={\LaTeX\ -- A Document Preparation System},
  note={User's Guide and Reference Manual},
  year={1994},
  publisher={Addison-Wesley},
  edition={Second}
}
\end{filecontents*}
\documentclass[%
  11pt,
  aps,
  prb,
  floatfix,
  twocolumn,
  english
]{revtex4-1}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{blindtext}

\begin{document}
  \title{The Title}
  \author{The Author}
  \email{e.mail@domain.com}
  \affiliation{Affilliation}

  \begin{abstract}
    \blindtext\cite{lamport94}
  \end{abstract}

  \maketitle
  \section{Introduction}
    \blinddocument

  \bibliographystyle{apsrmp4-1}
  \bibliography{\jobname}
\end{document}
If this does not work, update your TeX system.


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

revtex4-1 | Problem with Bibliography Database File

Post by hbaromega »

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.

Code: Select all

\begin{filecontents*}{\jobname.bib}
@BOOK{lamport94,
  author={Leslie Lamport},
  title={\LaTeX\ -- A Document Preparation System},
  note={User's Guide and Reference Manual},
  year={1994},
  publisher={Addison-Wesley},
  edition={Second}
}
\end{filecontents*}
\documentclass[%
  11pt,
  aps,
  prb,
  floatfix,
  twocolumn,
  english
]{revtex4-1}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{blindtext}

\begin{document}
  \title{The Title}
  \author{The Author}
  \email{e.mail@domain.com}
  \affiliation{Affilliation}

  \begin{abstract}
    \blindtext\cite{lamport94}
  \end{abstract}

  \maketitle
  \section{Introduction}
    \blinddocument

  \bibliographystyle{apsrmp4-1}
  \bibliography{\jobname}
\end{document}
If this does not work, update your TeX system.


Thorsten

Sorry for the late response. I didn't receive any notification of your reply !!!

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

And for what package I need an update?

Thanks.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

revtex4-1 | Problem with Bibliography Database File

Post by localghost »

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.

Code: Select all

 *File List*
revtex4-1.cls    2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ for documentation)
  aps4-1.rtx
aps12pt4-1.rtx
textcase.sty    2004/10/07 v0.07 Text only upper/lower case changing (DPC)
     url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
  natbib.sty    2010/09/13 8.31b (PWD, AO)
revsymb4-1.sty    2010/07/25/20:33:00 4.1r (http://publish.aps.org/revtex4/ for documentation)
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
hyperref.sty    2011/08/19 v6.82h Hypertext links for LaTeX
hobsub-hyperref.sty    2011/04/23 v1.4 Bundle oberdiek, subset hyperref (HO)
hobsub-generic.sty    2011/04/23 v1.4 Bundle oberdiek, subset generic (HO)
  hobsub.sty    2011/04/23 v1.4 Subsetting bundle oberdiek (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)
 ltxcmds.sty    2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
  ifvtex.sty    2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
 intcalc.sty    2007/09/27 v1.1 Expandable integer calculations (HO)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
etexcmds.sty    2011/02/16 v1.5 Prefix for e-TeX command names (HO)
kvsetkeys.sty    2011/04/07 v1.13 Key value parser (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Defining keys (HO)
pdftexcmds.sty    2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)
pdfescape.sty    2011/04/04 v1.12 Provides string conversions (HO)
bigintcalc.sty    2011/01/30 v1.2 Expandable big integer calculations (HO)
  bitset.sty    2011/01/30 v1.1 Data type bit set (HO)
uniquecounter.sty    2011/01/30 v1.2 Provides unlimited unique counter (HO)
letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
 hopatch.sty    2011/01/30 v1.0 Wrapper for package hooks (HO)
xcolor-patch.sty    2011/01/30 xcolor patch
atveryend.sty    2011/04/23 v1.7 Hooks at very end of document (HO)
atbegshi.sty    2011/01/30 v1.15 At begin shipout hook (HO)
refcount.sty    2010/12/01 v3.2 Data extraction from references (HO)
 hycolor.sty    2011/01/30 v1.7 Color options of hyperref/bookmark (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
kvoptions.sty    2010/12/23 v3.10 Keyval support for LaTeX options (HO)
  pd1enc.def    2011/08/19 v6.82h Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
  hdvips.def    2011/08/19 v6.82h Hyperref driver for dvips
 pdfmark.def    2011/08/19 v6.82h Hyperref definitions for pdfmark specials
rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
fancybox.sty    2010/05/15 1.4
amsfonts.sty    2009/06/22 v3.00 Basic AMSFonts support
 amsmath.sty    2000/07/18 v2.13 AMS math features
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
mathtools.sty    2011/04/06 v1.11 mathematical typesetting tools
    calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
 mhsetup.sty    2010/01/21 v1.2a programming setup (MH)
 amssymb.sty    2009/06/22 v3.00
verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
   eucal.sty    2009/06/22 v3.00 Euler Script fonts
enumerate.sty    1999/03/05 v3.00 enumerate extensions (DPC)
   color.sty    1999/02/16
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks.sty    2011/04/23 v0.50 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2011/06/07 v2.21 `PSTricks' (tvz,hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
  pst-fp.tex    2011/06/07 v2.21 `PST-fp' (hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
 caption.sty    2011/08/18 v3.2b Customizing captions (AR)
caption3.sty    2011/08/18 v1.3b caption3 kernel (AR)
 nameref.sty    2010/04/30 v2.40 Cross-referencing by name of section
gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)
test-tmp.out
test-tmp.out
    umsa.fd    2009/06/22 v3.00 AMS symbols A
    umsb.fd    2009/06/22 v3.00 AMS symbols B
test-tmp.bbl
 ***********
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.
hbaromega
Posts: 48
Joined: Mon Mar 07, 2011 8:21 pm

revtex4-1 | Problem with Bibliography Database File

Post by hbaromega »

I just realized that my natbib version was older. It was 8.31a . Latest one is 8.31 b. Once I upgrade, the errors go away.


For people who cannot upgrade immediately, an alternative quick fix could be removing the phrase

Code: Select all

\BibitemShut {NoStop}
in the bibtex-generated .bbl file and then including the .bbl file directly in the main .tex file and commenting before the

Code: Select all

\bibliography
.

The problem is solved.
alex170872
Posts: 6
Joined: Fri Jan 14, 2011 4:13 pm

revtex4-1 | Problem with Bibliography Database File

Post by alex170872 »

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
sudo apt-get update
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
cluracan
Posts: 1
Joined: Sun Apr 29, 2012 3:01 pm

revtex4-1 | Problem with Bibliography Database File

Post by cluracan »

alex170872 wrote: 3- I tried to update my ubuntu system as follows
Unfortunately, Ubuntu still uses an old natbib version. So updating via Ubuntu doesn't work. Moreover, each time there is a new Ubuntu version, this error reappears as Ubuntu reinstalls its own (older) version.

So you have to manually download and install natbib. Here's the thread I always seem to come back to when the error appears:

http://ubuntuforums.org/showthread.php?t=1443556

Cheers!
cluracan
sbalian
Posts: 1
Joined: Mon Apr 15, 2013 3:43 pm

revtex4-1 | Problem with Bibliography Database File

Post by sbalian »

Here is another fix if you can't update natbib.

Just add this to your preamble (in the main .tex file):

Code: Select all

\newcommand{\BibitemShut}[1]{}
i.e., define \BibitemShut to do nothing.

- SB
Post Reply