1

I have seen the answer to biblatex filter on arbitrary field.

But, how can I filter biblatex entries based on a time span, for instance to select papers published before and after 2015?

Many thanks in advance

leparc
  • 163
  • 1
    Have a look at https://tex.stackexchange.com/q/84020/35864. The setup there is slightly more complex, because it also deals with origdate, but you should be able to adapt it to your situation by dropping that bit of the logic. – moewe Jul 28 '22 at 19:07
  • 1
    Also relevant: https://tex.stackexchange.com/q/346270/35864, https://tex.stackexchange.com/q/444095/35864, https://tex.stackexchange.com/q/426247/35864 – moewe Jul 28 '22 at 19:10

1 Answers1

2

Here's a simplified version of the answer linked in the comments.

\documentclass{article}
\usepackage[style=authoryear]{biblatex}
\addbibresource{biblatex-examples.bib}
\defbibcheck{recent}{
\iffieldint{year}
  {\ifnumless{\thefield{year}}{2000}
     {\skipentry}
     {}}
  {\skipentry}}
 \defbibcheck{older}{
\iffieldint{year}
  {\ifnumgreater{\thefield{year}}{2000}
     {\skipentry}
     {}}
  {\skipentry}}
\begin{document}
\textcite{cms,coleridge,companion,cotton,ctan,doody,gaonkar,gaonkar:in,geer,gerhardt,gillies}
\printbibliography[check=recent,title=Recent]
\printbibliography[check=older,title=Older]
\end{document}

output of code

Alan Munn
  • 218,180