This is the system I currently have:


This should exclude anything except entries in 2016. I then use it with:


I want to know if it is possible to make variables for the ranges of years I want to list, so I can change the ranges when needed. I wanted to do something in the preamble like:


And then in the document have:


So if I want to change my range to:


I wouldn't have to change or update the code in the preamble.

  • I noticed that you have answers to some old questions of yours that have not been accepted. Please consider voting on and accepting answers to your questions. That way you show other people which answer(s) helped you. See tex.stackexchange.com/help/someone-answers. If you think the answers were not helpful, leave a comment and as for clarification. – moewe Aug 1 '18 at 5:48

Bibchecks are not designed to take an argument, even less so in an arbitrary format. You can work around this limitation by using placeholder macros in the definition of the bibcheck and setting these placeholders with a second macro before the application of the check.


\usepackage[style=authoryear, backend=biber]{biblatex}




  author  = {Humphrey Appleby},
  title   = {On the Importance of the Civil Service},
  date    = {1980},
  author  = {Humphrey Appleby},
  title   = {On the Ablative in Greek},
  date    = {1981},
  author  = {Humphrey Appleby},
  title   = {On Honours},
  date    = {1982},
  author  = {Humphrey Appleby},
  title   = {Theory on Brontosauruses},
  date    = {1983},




The document features two bibliographies. One titled "All" with works from 1980, 1981, 1982 and 1983. The second bibliography is titled "1981-1982" and only features the two works from 1981 and 1982.

Remember that the fromto settings are not reset automatically, they are simple local assignments.

| improve this answer | |
  • I tried to create an author category (shown below) and then use a [check=byauthor] in the \printbibliography but it isn't recognized anymore. \newcommand*{\generateauthorcategory}[3]{% \DeclareBibliographyCategory{by#1}% \DeclareIndexNameFormat{cat#1}{% \ifboolexpr{test {\ifdefstring{\namepartfamily}{#2}} and test {\ifdefstring{\namepartgiven}{#3}}} {\addtocategory{by#1}{\thefield{entrykey}}} {}}% \AtDataInput{\indexnames[cat#1][1-999]{author}}} \printbibliography[check=fromto, catergory=byauthor, title={2014--2016}] – Michael Aug 1 '18 at 15:03
  • @Michael If you are talking about the code from tex.stackexchange.com/q/406061/35864 the combination of the two works just fine for me. There is one tiny thing off in your comment: You have a typo in \printbibliography[check=fromto, catergory=byauthor, title={2014--2016}] it should be category not catergory. If it doesn't work when you fix that typo, please ask a new question with an MWE and an exact description of what does not work and how it does not work (with log output and pictures of the PDF). – moewe Aug 1 '18 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.