BibTeX, biblatex and bibercounter in bibtex

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
aeven
Posts: 2
Joined: Wed Apr 28, 2010 1:51 pm

counter in bibtex

Post by aeven »

Hi

We modified bst file in order to present our bibliography ordered by document type (we have defined our own classification). We would like to count the number of references for each document type : is it possible to do that in the bst file ? if yes, how can we do that ?

Thanks

A. Even

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

Re: counter in bibtex

Post by olofos »

Yes it is possible. The attached patch to the unsrt.bst style shows how to count the number of articles and books in the bibliography. It should be simple to extend this to any other entry types you need. If you use the patched style in a document you should see something like "There were 6 articles and 3 books." right after the references.
Attachments
my-unsrt.bst.txt
(16.92 KiB) Downloaded 476 times
my-unsrt.diff.txt
(1.14 KiB) Downloaded 348 times
aeven
Posts: 2
Joined: Wed Apr 28, 2010 1:51 pm

Re: counter in bibtex

Post by aeven »

thanks you very much for your help, we managed to adapt your counter to our bst file
Post Reply