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.

Update to code:

\documentclass[11pt,fleqn]{book}
\usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry} \usepackage{xcolor}
\definecolor{ocre}{RGB}{243,102,25}
\usepackage{avant}
\usepackage{mathptmx}
\usepackage{microtype}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{calc}

\usepackage[refsection=chapter,sorting=nyt,sortcites=true,autopunct=true,babel=hyphen,hyperref=true,abbreviate=false,backref=true,backend=biber]{biblatex}
\defbibheading{bibempty}{}
\usepackage{empheq}
\usepackage{calc}
\usepackage{makeidx}
\makeindex
\newcommand*{\refname}{Bibliography}
\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@book{book1,
    address = {New York},
    publisher = {John Wiley \& Sons},
    author = {Egan, Willian F.},
    title = {Phase-Lock Basics},
    year = {1998},
    %volume = {3},
    %series = {2},
    edition = {1},
    pages = {3--4},
    %month = {January}
}

@article{art1,
    address = {City},
    publisher = {Myself},
    author = {Doe, John},
    title = {Synthesizer Modulation},
    year = {1979},
    %volume = {14},
    %number = {6},
    %pages = {1--8},
    month = {June}
}

@book{book2,
    address = {New York},
    publisher = {John Wiley \& Sons},
    author = {Gardner, Floyd M.},
    title = {Phaselock Techniques},
    year = {2005},
    %volume = {14},
    %number = {6},
    pages = {6--28},
    %month = {June}
}

@book{book3,
    address = {California},
    publisher = {Benjamin/Cummings},
    author = {Norman S.},
    title = {Control Systems Engineering},
    year = {1995},
    %volume = {3},
    %series = {2},
    edition = {2},
    pages = {231--232},
    %month = {February}
}

@article{art2,
    address = {Plantation},
    publisher = {Myself},
    author = {Me.},
    title = {Lock Time Performance},
    year = {1990},
    %volume = {14},
    %number = {6},
    %pages = {1--8},
    month = {June}
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\chapter{Chapter 1}
Some  text \autocite{book1,art1}.


\section{Second}

Some  text \autocite{book2}.

Some  text \autocite{art1}.

Some  text \autocite{art2}.

Some  text \autocite{book2}.

\chapter*{Bibliography}
\addcontentsline{toc}{chapter}{\textcolor{ocre}{Bibliography}}
\section*{Books}
\addcontentsline{toc}{section}{Books}
\printbibliography[heading=bibempty,type=book,prefixnumbers={B}]
\section*{Articles}
\addcontentsline{toc}{section}{Articles}
\printbibliography[heading=bibempty,type=article,prefixnumbers={A}]

\chapter{Chapter 2}
Some  text \autocite{art1}
\chapter*{Bibliography}
\addcontentsline{toc}{chapter}{\textcolor{ocre}{Bibliography}}
\section*{Books}
\addcontentsline{toc}{section}{Books}
\printbibliography[heading=bibempty,type=book,prefixnumbers={B}]
\section*{Articles}
\addcontentsline{toc}{section}{Articles}
\printbibliography[heading=bibempty,type=article,prefixnumbers={A}]

\end{document}

but this is output that I get:

enter image description here

instead of B1, B2...then A1, A2... How do I get consecutive numbering for Books, then restart the number to get consecutive numbering for Articles?

share|improve this question
1  
You can use: \printbibliography[heading=bibempty,type=article,prefixnumbers={A}] –  Marco Daniel Sep 6 '13 at 15:59
    
I tried your suggestion and I am half way there. Thanks. The number continues and goes like B1, then A2. How to get the numbering to restart as I switch from Books to Articles? –  Joe Sep 6 '13 at 16:04
    
Nothing to do with your question, but seeing your code, isn't refsection=chapter more appropriate than refsection=section in your case? –  karlkoeller Sep 6 '13 at 16:11
    
Yes. You are correct. I fixed that. –  Joe Sep 6 '13 at 16:26
    
@karlkoeller I added '@misc' to show under the Articles heading and after [A2], the numbering starts back up at [A1]. Although I included the '@misc' (for a hyperlink reference), how can I continue the numbering under the articles section....[A1], [A2], [A3]... –  Joe Sep 6 '13 at 21:17

1 Answer 1

up vote 2 down vote accepted

Adding defernumbers=true in the options of biblatex is enough to achieve what you want.

So the call to biblatex should be in your case:

\usepackage[%
refsection=chapter,
defernumbers=true,
sorting=nyt,
sortcites=true,
autopunct=true,
babel=hyphen,
hyperref=true,
abbreviate=false,
backref=true,
backend=biber]{biblatex}

I'm not adding the full MWE but the result is:

enter image description here

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.