TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am updating my cv and the answer biblatex continuous reverse numbering... to my previous question solved my problem, until I realized that I should not count my unpublished articles (which I would like to show right after the published ones), the problem thus is:

**Articles (3)**
[6] great Article 2
[5] great Article 2
[4] great Article 1

**Submitted but unpublished Articles (2)**
- hopefully soon published Article 2
- hopefully soon published Article 1

**Presentations (2)**
[3] great Presentation 2
[2] great Presentation 1

[1] great Thesis

I figured out by following this idea count references in \AtDataInput how to count just the items in a given category \iscategory{article} does the trick in the \ifboolexpr{}{}{} - which works great!

share|improve this question
up vote 4 down vote accepted

The general approach taken in the linked questions can be used here, but you'll have to adjust the labelnumber format for unpublished works. For published works, the item total needs to be corrected once the list of unpublished works is printed.

Here is an example that extends to various stages before publication, as indicated by the pubstate field.



% Print labelnumber as item total, minus actual number, plus one


% Add entries to categories, increment entry totals
  \ifboolexpr{ test {\ifentrytype{#1}} and not test {\ifskipbib} }




\defbibheading{bibliography}{\section*{Publications and Presentations}}
\defbibtitle{unpublished}{Unpublished articles}

  author = {Last, First},
  title = {Title},
  journaltitle = {Journal},
  date = {2012},
  pubstate = {submitted}}
  author = {Last, First},
  title = {Title},
  date = {2012},
  pubstate = {inpreparation}}

enter image description here

Some notes:

  • This approach is suited only for use with \nocite in one reference section. Some extensions have been demonstrated in related questions.

  • The document will typically require an extra LaTeX run to compile, even if biblatex doesn't generate a "rerun LaTeX" warning in the log.

  • A localization key should be used in the pubstate field. Keys can be redefined in the preamble using \DefineBibliographyStrings. For further details refer to the biblatex manual.

  • A descending labelnumber emphasizes the total number of works, but here you're counting apples and oranges. This format is probably best suited for CVs with a list of peer-reviewed articles that spans more than one page.

share|improve this answer
Thanks Audrey, exactly what I needed, took me a while to get through your approach with automatic section labeling - I had to revise my own code, 'cause yours is better. – harry Sep 5 '12 at 20:24
@harry No problem. About your code - it's usually a good idea to post what you have so far in your question. Answering your own question is OK, too. – Audrey Sep 5 '12 at 22:42

Your Answer


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.