BibTeX, biblatex and biber ⇒ Number of Items in Publications/Bibliography
Number of Items in Publications/Bibliography
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,
Hanibal
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
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Number of Items in Publications/Bibliography
Code: Select all
\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}