I have three .bib files with the bibliography of my CV split into "journals", "conferences" and "thesis". I count the amount of entries for each .bib file following this method for the three types:
\newtotcounter{no_journals}
\AtEveryBibitem{
\ifkeyword{journal}{\stepcounter{no_journals}}{}%
}
\defbibheading{journals}{International Journals}
\addbibresource[label=journals]{journals}
... and thenn I print the result in a specific section as follows:
\begin{refsection}[journals.bib]
\nocite{*}
\begin{refcontext}
\printbibliography
\end{refcontext}
\end{refsection}
\begin{itemize}
\item Number of International Journals: \total{no_journals}\
\end{itemize}
For my long CV it works fine; however for the résumé, I only want to put the total amount of journals, conferences and thesis WITHOUT printing the full bibliography. For this purpose, I have the following command:
\begin{refsection}[journals.bib]
\nocite{*}
\begin{refcontext}
\printbibliography
\end{refcontext}
\end{refsection}
\begin{itemize}
\item International Journals: \total{no_journals}\, International Conferences: \total{no_conferences}\, Thesis Conducted: \total{no_thesis}\
\end{itemize}
As you can see in the command itself, if I do not invoke "\printbibliography" for each of the types (journals, conferences and thesis), the entries in the bibliography files are not counted.
- Is there any way in which I can count them without invoking "\printbibliography"?
- If there is no other chance than having to invoke "\printbibliography" mandatory, can I make it not print the bibliography? Like a "dry-run" method?
\setbox0\vbox{\printbibliography}
doesn't print anything and still evaluates\printbibliography
. – Skillmon Dec 2 '17 at 23:00