Hello there,
So, I prepared my CV in latex, and arranged my publications in three sections (using bibtopic): book chapters, journal papers and conference proceedings. Since the items in every section are not numbered, I would like to include near every heading the total number of items displayed below it. For exmaple:
Journal Papers (3)
...
Conference Proceedings (4)
....
Your help will be appreciated,
Thanks,
BibTeX, biblatex and biber ⇒ Number of Items in Publications/Bibliography
Number of Items in Publications/Bibliography
If there is no way, we will make one...
Hanibal
Hanibal
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Number of Items in Publications/Bibliography
The following is a hack; there may be a more official way to do it. I've never used bibtopic, so I didn't want to learn how to use that before testing this, but you should be able to at least get something going from here. I'm guessing, but you probably want to put some of these commands in a re-definition of the thebibliograpy environment (or similar) instead of defining a new environment, and renewing the commands \refname and \bibitem instead of the \section and \item as I've done.
Code: Select all
Code, edit and compile here:
\documentclass{article}\begin{document}\newcounter{secnum}\newenvironment{totlist}[2]{\stepcounter{secnum}\section{#2 (\ref{totlist:\thesecnum})}\newcounter{#1}\begin{itemize}\let\olditem\item\renewcommand\item{\olditem\refstepcounter{#1}}}{\label{totlist:\thesecnum}\end{itemize}}%% Replace the following with your list of references\begin{totlist}{articles}{Articles}\item Paper 1\item Paper 2\item Paper 3\end{totlist}\begin{totlist}{chapters}{Book Chapters}\item Paper 1\item Paper 2\end{totlist}\end{document}