I'm using biblatex, and I would like to leave out those entries from the bibliography, where a specific person is an author (it's a PhD thesis and my own publications should come in a separate bibliography).

  • It can be done with using a special keyword in those bib entries, and later filter out that keyword, but I would prefer not to modify the bib entries.
  • I was able to manage it with creating a category (with \DeclareBibliographyCategory), and then manually adding the item in question to them, but an automatic and dynamic solution would be much better.
  • \defbibcheck seems to be exactly the feature I was looking for, but I'm having problems with the substring checking code.

Author names are a name list, and inside the \defbibcheck it can be accessed with \thename{author}. It returns a raw form string with hashes, author first and last names, initials. Now only a substring check is needed.


  % IfSubStr is from xstring package

prints all the references, even those, where Author1 is among the authors.

The substring search and the skipping works, if I use a constant instead of \thename{author}, thus I thought maybe it is an expansion problem. My Tex/Latex knowledge is very limited when it comes to more than the usual formatting commands, but I tried the following (among other random variants with \fullexpand and \expandafter, etc.):


but the result is the same, none of the entries are skipped.

I tried other various checks which include custom macros returning strings, or macros using other fields from the actual bib entry (like year), so maybe the problem is not with expansion but with \thename.

UPDATE: a full minimal example



    author = {D.E. Knuth},
    title = {The {\TeX}book},
    publisher = {Addison Wesley},
    year = 1986

  author =       "Leslie Lamport",
  title =        "{\LaTeX} - A Document Preparation System - User's Guide and Reference Manual",
  publisher =    {Addison Wesley},  
  year =         "1985"  



% document body

Cite something, this should go in the references \cite{texbook}.

Full citation of other, this should appear only here, and not in the references: \fullcite{latexbook}


  • You forgot a pair of curly brackets after \IfSubStr: Syntax: \IfSubStr{input1}{input2}{TRUE}{FALSE}. If that doesn't work please provide a full minimal example. Sep 15, 2011 at 12:39
  • Adding the second curly brackets does not make a difference. Sep 15, 2011 at 13:03
  • And the minimal example ;-) We don't know whether you called \printbibliography[check=ownpublications] or not ;-) Sep 15, 2011 at 13:06
  • Added. Sorry, I'm new, and took some time for figuring out where to put it:) Sep 15, 2011 at 13:08

1 Answer 1


Unless you require partial string matching in names, xstring isn't necessary. With backend=biber you can identify matching entries based on the source data (e.g. the bib file) using the source map feature. It supports regular expressions. An example from PLK can be found here.

With any BibTeX implementation as the backend, matching can be done on data in the bbl file via \ifdefstring (from etoolbox) and \indexnames. The latter is a biblatex command that applies an index formatting directive to each item in a name list. Here is an example.


% Variants of each could be added


\DeclareIndexNameFormat{byname}{% Test could be refined
  \ifboolexpr{ test {\ifdefstring{\lastname}{#1}}
               and ( test {\ifdefstring{\firstname}{#3}}
                     or test {\ifdefstring{\firstinit}{#4}} ) }


\section{Knuth's books}
\section{Not Knuth's books}

enter image description here

The argument references (#1, #3, etc.) in \DeclareIndexNameFormat correspond to different parts of a name. Further details can be found in the biblatex manual or this post by domwass. The data corresponding to each name element can be found in the bbl file. In the above example, the field author = {Knuth, Donald E.} is parsed as follows.

  • By the way, I tried with
    – Pascal
    Jul 29, 2012 at 9:53
  • 2
    I get the following error, when using this solution: ! Illegal parameter number in definition of \blx@defformat@d. […] ... and ( test {\ifdefstring{\firstname}{#3 }} Mar 15, 2018 at 9:15
  • The argument #1 obviously has changed to family=Knuth, familyi=K., given=Donald~E., giveni=D.~E.. How can I do substring matching in this? Mar 15, 2018 at 10:17
  • The arguments #1, #3 and #4 have to be replace by \namepartfamily, \namepartgiven and \namepartgiveni respectively and \ifdefstrequal has to be used instead of \ifdefstring. Mar 15, 2018 at 10:45
  • In my case this macro does not put entries to the category if the specified author is truncated by an "et al." :-\ Mar 15, 2018 at 10:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .