Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}

share|improve this question
1  
Welcome to TeX.SX! You can have a look on our starter guide to familiarize yourself further with our format. –  Claudio Fiandrino Jun 6 '13 at 12:57

2 Answers 2

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.

share|improve this answer
    
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

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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