LaTeX forum ⇒ BibTeX, biblatex and biberrevtex4-1 | Problem with Bibliography Database File Topic 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/).
  1. ! Undefined control sequence.
  2. <argument> \@bibitemShut
  3.  
  4. l.61 \end{thebibliography}
  5. %
  6. ?

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 387 times
sample.bib
(508 Bytes) Downloaded 551 times
test.tex
(1.19 KiB) Downloaded 644 times

Tags:

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

Postby climberjc » Sat Sep 03, 2011 12:09 am

I'm also having the same problem using the same APS PRL class file and template. Any ideas?

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

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.
  1. \begin{filecontents*}{\jobname.bib}
  2. @BOOK{lamport94,
  3. author={Leslie Lamport},
  4. title={\LaTeX\ -- A Document Preparation System},
  5. note={User's Guide and Reference Manual},
  6. year={1994},
  7. publisher={Addison-Wesley},
  8. edition={Second}
  9. }
  10. \end{filecontents*}
  11. \documentclass[%
  12. 11pt,
  13. aps,
  14. prb,
  15. floatfix,
  16. twocolumn,
  17. english
  18. ]{revtex4-1}
  19. \usepackage[T1]{fontenc}
  20. \usepackage{babel}
  21. \usepackage{blindtext}
  22.  
  23. \begin{document}
  24. \title{The Title}
  25. \author{The Author}
  26. \email{e.mail@domain.com}
  27. \affiliation{Affilliation}
  28.  
  29. \begin{abstract}
  30. \blindtext\cite{lamport94}
  31. \end{abstract}
  32.  
  33. \maketitle
  34. \section{Introduction}
  35. \blinddocument
  36.  
  37. \bibliographystyle{apsrmp4-1}
  38. \bibliography{\jobname}
  39. \end{document}

If this does not work, update your TeX system.


Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.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.
  1. \begin{filecontents*}{\jobname.bib}
  2. @BOOK{lamport94,
  3. author={Leslie Lamport},
  4. title={\LaTeX\ -- A Document Preparation System},
  5. note={User's Guide and Reference Manual},
  6. year={1994},
  7. publisher={Addison-Wesley},
  8. edition={Second}
  9. }
  10. \end{filecontents*}
  11. \documentclass[%
  12. 11pt,
  13. aps,
  14. prb,
  15. floatfix,
  16. twocolumn,
  17. english
  18. ]{revtex4-1}
  19. \usepackage[T1]{fontenc}
  20. \usepackage{babel}
  21. \usepackage{blindtext}
  22.  
  23. \begin{document}
  24. \title{The Title}
  25. \author{The Author}
  26. \email{e.mail@domain.com}
  27. \affiliation{Affilliation}
  28.  
  29. \begin{abstract}
  30. \blindtext\cite{lamport94}
  31. \end{abstract}
  32.  
  33. \maketitle
  34. \section{Introduction}
  35. \blinddocument
  36.  
  37. \bibliographystyle{apsrmp4-1}
  38. \bibliography{\jobname}
  39. \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: 9204
Joined: Fri Feb 02, 2007 12:06 pm

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

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.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

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

Postby hbaromega » Fri Dec 23, 2011 12:18 pm

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
  1. \BibitemShut {NoStop}
in the bibtex-generated .bbl file and then including the .bbl file directly in the main .tex file and commenting before the
  1. \bibliography
.

The problem is solved.

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
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

Postby cluracan » Sun Apr 29, 2012 3:06 pm

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

Postby sbalian » Mon Apr 15, 2013 3:48 pm

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

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

  1. \newcommand{\BibitemShut}[1]{}


i.e., define \BibitemShut to do nothing.

- SB


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 11 guests