My question is how I can group the bibliographic records using biblatex on per-year-basis. I have tried the approach
\newcounter{mycounter}
\setcounter{mycounter}{2013}
\defbibcheck{intheyear}{
\iffieldint{year}
{\ifnum \thefield{year} = \themycounter
{\skipentry}
{} }
{\skipentry}}
and then using the command
\printbibliography[title=2013
,heading=subbibliography
,type=article
,check = intheyear
]
changing the counter value manually, but this yields a result only if the command is called once. In the second calling of \printbibliography
, pdflatex
announces
! Incomplete \ifnum; all text was ignored after line <i>xx</i>. <inserted text> \fi <*> \input lpublications.tex ! Emergency stop. <*> \input lpublications.tex
What I want to achieve is that I will have structure of references as
2013
Braham, A., Edrich, B. ...
Ecilie, C., Ietrich, D. ...
2012
.....
If this was done automatically according to entries in .bib
file. It would be fine. I have really no idea how to do that.
biblatex
's concept of categories together with the\bibbycategory
.\ifnum
requires\fi
. You may use for example\ifnumequal{\thefield{year}}{\themycounter}