6

I am using biblatex/biber and would like to have separate maxnames values for author and editor lists. What is the cleanest way to do this?

10

Unfortunately I don't know what style you are using, but for the standard ones you may try to patch 4 macros (I hope I didn't forget any):

\usepackage{xpatch}
\xpretobibmacro{author}{\defcounter{maxnames}{2}}{}{}
\newcommand*{\defeditorcounter}{\defcounter{maxnames}{3}}
\xpretobibmacro{editor}{\defeditorcounter}{}{}
\xpretobibmacro{editor+others}{\defeditorcounter}{}{}
\xpretobibmacro{byeditor+others}{\defeditorcounter}{}{}

Not sure this is the cleanest way though.

| improve this answer | |
  • It works like a charm and is very clean thanks to the use of xpatch. – equaeghe Jul 23 '13 at 14:10
  • 1
    @netzaffin your edit was ok, but it would be better to post it as an additional answer instead of an edit to the existing answer. Edits are just for formatting and rephrasing/clarification, we try to avoid substantial contributions to an answer written by different people, because it makes it more difficult to vote or comment on the different parts of the answer. – Marijn Apr 5 at 12:08
1

As suggested, I will post my edit as answer:

\usepackage{xpatch}
\newcommand*{\defauthorcounter}{\defcounter{maxnames}{2}}
\newcommand*{\defeditorcounter}{\defcounter{maxnames}{3}}
\xpretobibmacro{author}{\defauthorcounter}{}{}
\xpretobibmacro{author+others}{\defauthorcounter}{}{}
\xpretobibmacro{editor}{\defeditorcounter}{}{}
\xpretobibmacro{editor+others}{\defeditorcounter}{}{}
\xpretobibmacro{byeditor+others}{\defeditorcounter}{}{}
  • I've added a variable for the authors counter
  • I've added author+others to match multiples authors
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.