I would like to produce multiple bibliographies in a CV, separating papers that have no dates from those with dates (one way to tell if they are 'under review' or 'published' - I realise there are other ways to do this, such as keywords etc.). The same for conference papers.
With the changes to biblatex, my old code no longer works. I managed to make some progress using the solution here, ie, I do have separate bibliographies for journals papers and conferences with descending numbering, if I don't filter the empty-date entries.
I am filtering the entries produced by \printbibligraphy using 'check', which works, but is not compatible with the counters used for the descending numbering (ie, it does not exclude the 'filtered' papers).
How do I go about modifying the code below to fix the counters?
Thank you in advance!
\documentclass[10pt, a4paper]{article}
\usepackage[czech,english]{babel}
\usepackage[backend=biber,style=ieee,defernumbers=true,sorting=keysort]{biblatex}
%%%%%%%%%%%%
% From https://tex.stackexchange.com/questions/367163/separate-biblatex-bibliographies-with-newest-entry-and-highest-reference-number:
% does not work correctly due to 'check' in bibliographies...
% Count total number of entries in each refsection
\AtDataInput{%
\ifcsundef{bbx@processedentries:\therefsection}
{\csgdef{bbx@processedentries:\therefsection}{}}
{}%
\xifinlistcs{\thefield{entrykey}}{bbx@processedentries:\therefsection}{}{%
\listcsxadd{bbx@processedentries:\therefsection}{\thefield{entrykey}}%
\csnumgdef{bbx@entrycount:\therefsection:\thefield{entrytype}}{%
\csuse{bbx@entrycount:\therefsection:\thefield{entrytype}}+1}}}
% Print the labelnumber as the total number of entries in the
% current refsection, minus the actual labelnumber, plus one
\DeclareFieldFormat{labelnumber}{\mkbibdesc{#1}}
\newrobustcmd*{\mkbibdesc}[1]{%
\number\numexpr\csuse{bbx@entrycount:\therefsection:\thefield{entrytype}}+1-#1\relax}
%%%%%%%%%%%%
\DeclareSortingScheme{keysort}{
\sort[direction=descending]{\field{entrykey} }
}
\addbibresource{pubs1.bib}
\addbibresource{pubs2.bib}
\begin{document}
\defbibcheck{confnoyear}{ \ifentrytype{inproceedings} {\iffieldundef{year}{}{\skipentry}} {\skipentry} }
\defbibcheck{journoyear}{ \ifentrytype{article} {\iffieldundef{year}{}{\skipentry}} {\skipentry} }
\defbibcheck{confwyear}{ \ifentrytype{inproceedings} {\iffieldundef{year}{\skipentry}{}} {\skipentry} }
\defbibcheck{jourwyear}{ \ifentrytype{article} {\iffieldundef{year}{\skipentry}{}} {\skipentry} }
% Journal papers under review (w/out years)
\newrefcontext[labelprefix=JS,sorting=keysort]
\printbibliography[check=journoyear] \nocite{*}
% Journals published
\newrefcontext[labelprefix=J,sorting=keysort]
\printbibliography[check=jourwyear] \nocite{*}
% Conf papers under review (w/out years)
\newrefcontext[labelprefix=CS,sorting=keysort]
\printbibliography[check=confnoyear] \nocite{*}
% Conf papers published
\newrefcontext[labelprefix=C,sorting=keysort]
\printbibliography[check=confwyear] \nocite{*}
\end{document}
![Bibliography 1 shows "[CS2] E. Euthor, “B title”.//[CS1] D. Duthor, “A title”." Bibliography 2 has "[C3] C. Buthor, “C title”, 1980.//[C2] B. Buthor, “B title”, 1980.//[C1] A. Author, “A title”, 1980."](../../images/68c38fcf47299c26e26b83afd2103ab7.webp)