Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
\documentclass{article}
\usepackage{biblatex}
\makeatletter
\newrobustcmd*{\ProvideBibliographyCategory}[1]{%
\ifcsundef{blx@catg@#1}
{\global\cslet{blx@catg@#1}\@empty
\listgadd\blx@categories{#1}}
{}}
\AtEveryCitekey{%
\ifcsstring{blx@delimcontext}{fullcite}
{}
{\ProvideBibliographyCategory{inbib\therefsection}%
\addtocategory{inbib\therefsection}{\thefield{entrykey}}}}
\defbibcheck{inbib}{%
\edef\mytmp{\ifentrycategory{\thefield{entrykey}}{inbib\therefsection}}%
\mytmp
{}
{\skipentry}}
\makeatother
\addbibresource{biblatex-examples.bib}
\begin{document}
Chemists deserve numbers: \cite{cotton}. But historians get a full citation in the text and are excluded from the bibliography: \fullcite{reese}.
\printbibliography[check=inbib, title=\therefsection]
\newrefsection
Chemists deserve numbers: \cite{cotton}. But historians get a full citation in the text and are excluded from the bibliography: \fullcite{reese}.
But may reach the bibliography if cited with a standard cite command: \cite{reese}.
\printbibliography[check=inbib, title=\therefsection]
\newrefsection
Chemists deserve numbers: \cite{cotton}. But historians get a full citation in the text and are excluded from the bibliography: \fullcite{reese}.
\printbibliography[check=inbib, title=\therefsection]
\printbibliography[check=inbib, section=1, title={1 (manual)}]
\printbibliography[check=inbib, section=2, title={2 (manual)}]
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.