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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- 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}