3

I am using chapterbib and everything seems to be working, but I would like my citations to appear as [x.1], [x.2], etc. where x is the chapter number. I cannot find how to do this, but I have a book set it Latex where (I think) it was done. Is is possible?

example: instead of

[1] Jones, "Anteaters, journal of diet, 1999.

I would like

[9.1] Jones, "Anteaters, journal of diet, 1999.

I am using documentclass book and bibliographystyle{plain}

3

To achieve what you want with the chapterbib package, you have to add the following command to your preamble

\CitationPrefix{\thechapter.}

All your citations and bibliography items in the bibliographies will be numbered as you want.

Obviously it won't affect an overall bibliography, but only chapter-bibliographies.

  • Thanks, but something doesn't work I get:Undefined control sequence 1.6 \CitationPrefix{\thechapter} – Wesley Jun 6 '13 at 15:15
  • What is your document class? – karlkoeller Jun 6 '13 at 15:19
  • I am using \usepackage{chapterbib} with no arguments. Do you think I need a [\sectionbib] or other argument? – Wesley Jun 6 '13 at 15:22
  • document class is book – Wesley Jun 6 '13 at 15:24
  • @Wesley It shouldn't depend on this, anyway try to use \usepackage[sectionbib]{chapterbib} – karlkoeller Jun 6 '13 at 15:29
1

After much work, I figured out that my platform had the 2004 version of chapterbib.sty, and the CitationPrefix function is not defined. I downloaded the 2010 version of chapterbib.sty and it runs fine. Problem closed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.