参考书目的编号是否从不同于 1 的数字开始?

参考书目的编号是否从不同于 1 的数字开始?

我正在使用 BibTeX。我想从 1 以后的数字开始对参考书目进行编号。我可以\thebibliography在序言中重新定义(经常被引用的“解决方案”)。一个最小的例子(bla.tex):

\documentclass{article}
\let\oldthebibliography=\thebibliography
\let\oldendthebibliography=\endthebibliography
\renewenvironment{thebibliography}[1]{%
    \oldthebibliography{#1}%
    \setcounter{enumiv}{77}%
}{\oldendthebibliography}

\begin{document}
This is a test.  Some newer thing
about a canonical quantum gravity approach\cite{rovelli2004}.
\bibliographystyle{plain}
\bibliography{biblio-physics}
\end{document}

参考书目文件biblio-physics.bib仅包含一个条目:

@BOOK{rovelli2004,
    author = {Rovelli, Carlo},
    citeulike-article-id = {469595},
    howpublished = {Hardcover},
    isbn = {0521837332},
    keywords = {quantum\_gravity},
    month = {November},
    posted-at = {2007-05-06 15:26:19},
    priority = {3},
    publisher = {Cambridge University Press},
    address = {Cambridge},
    title = {Quantum Gravity},
    url = {http://www.amazon.ca/exec/obidos/redirect?tag=citeulike09-20\&path=ASIN/0521837332},
    year = {2004}
}

这应该从 78 开始编号,但是,使用 TeX Live 2012 的一个最小示例,我收到以下错误pdflatex

marco@gluon test $ ls
biblio-physics.bib  bla.tex
marco@gluon test $ pdflatex bla
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
 restricted \write18 enabled.
entering extended mode
(./bla.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, du
tch, nynorsk, bokmal, indonesian, esperanto, coptic, welsh, irish, interlingua,
 serbian, serbianc, slovenian, friulan, romansh, estonian, romanian, armenian, 
uppersorbian, turkish, afrikaans, icelandic, kurmanji, loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
No file bla.aux.

LaTeX Warning: Citation `wald1984' on page 1 undefined on input line 10.


LaTeX Warning: Citation `rovelli2004' on page 1 undefined on input line 11.

No file bla.bbl.
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./bla.aux)

LaTeX Warning: There were undefined references.

 )</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></us
r/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on bla.pdf (1 page, 24290 bytes).
Transcript written on bla.log.
marco@gluon test $ bibtex bla
This is BibTeX, Version 0.99d (TeX Live 2012/Debian)
The top-level auxiliary file: bla.aux
The style file: plain.bst
Database file #1: biblio-physics.bib
marco@gluon test $ pdflatex bla
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
 restricted \write18 enabled.
entering extended mode
(./bla.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, du
tch, nynorsk, bokmal, indonesian, esperanto, coptic, welsh, irish, interlingua,
 serbian, serbianc, slovenian, friulan, romansh, estonian, romanian, armenian, 
uppersorbian, turkish, afrikaans, icelandic, kurmanji, loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (./bla.aux)

LaTeX Warning: Citation `wald1984' on page 1 undefined on input line 10.


LaTeX Warning: Citation `rovelli2004' on page 1 undefined on input line 11.

(./bla.bbl

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.3 \bibitem{rovelli2004}

?

如果没有重新定义\thebibliography,文档就可以很好地编译,但当然要从一开始参考书目项目。

所有文件都可以在这里找到:http://d-brane.net/pub/StackExchange/TeX_100184/

相关内容