Closed nickw2066 closed 1 year ago
It's reasonable and I'll prioritize this feature.
I've just added the type
, nottype
, keyword
, notkeyword
, category
, and notcategory
options to \printbibliography
as well as \DeclareBibliographyCategory
and \addtocategory
commands (see the test file bib-filter.lvt). All of them work in the same way as in biblatex
. The filter
and \defbibfilter
in biblatex
are not implemented at the moment.
@zepinglee Could you add a capability to define title
when selecting by category
? For example: there's an overleaf example here using package biblatex
.
Unfortunately, with citation-style-language
package there is an (ignored) error due to title
option:
! LaTeX Error: The key 'csl/bibliography/title' is unknown and is being (LaTeX) ignored.
The rendered PDF simply repeats "References" (when using \documentclass[11pt]{article}
) per each \printbibliography[category={phys}, title={test}]
.
So as a minimum working example re-using the OP's code:
\documentclass{article}
\usepackage[style=ieee]{citation-style-language}
\addbibresource{/path/to/references.bib}
\DeclareBibliographyCategory{ignore}
\addtocategory{ignore}{johnson2015}
\addtocategory{ignore}{doe1986}
\begin{document}
\cite{johnson2015},
\cite{smith2015},
\cite{doe1986},
\cite{samson2012}
\printbibliography[notcategory=ignore]
\printbibliography[category=ignore, title={Ignored References}]
\end{document}
@bemilton I've just added the heading
and title
options and the above example works fine. The related documentation will be added later.
@zepinglee Brilliant, thank you for rapid solution. By the way -- it is an excellent tex package!
Hi, Is there an option to cite something but stop it appearing in the bibliography? Like this Biblatex feature?
I need to cite a book review but it's not meant to appear in my bibliography. Thanks, Nick