liantze / AltaCV

Yet another alternative curriculum vitae/résumé class with LaTeX
Other
1.26k stars 329 forks source link

magazine/newspaper publication subtypes? #86

Closed step21 closed 2 years ago

step21 commented 2 years ago

Hi, thank you for this cool template again and for taking such great care of it! Recently, I stumbled upon the fact that both journal articles and magazine/newspaper articles are typed as @article by better biblatex for zotero and according to the extension author this is also as the biblatex spec defines it. (https://github.com/retorquere/zotero-better-bibtex/issues/1952#issuecomment-940726285) Specifically, I think it would be more hones to put magazine articles separately from academic articles, to not give the impression that I have more peer reviewed articles than I have.

In citations, this is probably handled by the specific style, and as another commenter pointed out biblatex adds a separate field to differentiate between them. ( entrysubtype = {magazine} or entrysubtype = {newspaper}). I tried just adding this as an option to \printbibliography in the CV latex, but it gives errors and just displays the whole article list like before. Do you maybe have any ideas how to filter on subtype (and on no subtype, as regular articles do not have entrysubtype)?

liantze commented 2 years ago

Perhaps try defining filters?

\defbibfilter{newsarticle}{type=article and subtype=newspaper}
\defbibfilter{normalarticle}{type=article and not subtype=newspaper}

\printbibliography[heading=pubtype,
  title={\printinfo{\faFile*[regular]}{Journal Articles}},
  filter=normalarticle]

\printbibliography[heading=pubtype,
  title={\printinfo{\faFile*[regular]}{Newspaper Articles}},
  filter=newsarticle]
step21 commented 2 years ago

Thanks, that did indeed work!