Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I must have the editor(s) in parentheses for source-types such as collections, proceedings and others. The relevant part of the bibliography item currently looks like

Ed. by F. Seibt

but must be

Seibt, F. (editor)

For multiple editors, the status quo is

Ed. by G. E. R. Lloyd/G. E. L. Owen

but it must be

Lloyd, G. E. R./Owen, G. E. L. (editors)

\documentclass[
12pt,
a4paper
]
{scrreprt}

\usepackage[T1]{fontenc}
\usepackage{lmodern}

\usepackage[
language=auto,
style=authoryear,
backend=bibtex,
isbn=false,
doi=false,
citereset=chapter,
maxcitenames=3,
dashed=false,
sorting=nyt,
firstinits=true,
terseinits=false
maxbibnames=99,
uniquename=init
]{biblatex}

\begin{filecontents*}{lit.bib}
@InCollection{brandt,
  options     = {useprefix=false},
  hyphenation     = {german},
  indexsorttitle  = {Nordischen Lander von der Mitte des 11. Jahrhunderts bis 1448},
  author      = {von Brandt, Ahasver and Erich Hoffmann},
  editor      = {Ferdinand Seibt},
  indextitle      = {Nordischen L{\"a}nder von der Mitte des 11.~Jahrhunderts bis 1448, Die},
  title       = {Die nordischen L{\"a}nder von der Mitte des 11.~Jahrhunderts bis 1448},
  shorttitle      = {Die nordischen L{\"a}nder},
  booktitle   = {Europa im Hoch- und Sp{\"a}tmittelalter},
  series      = {Handbuch der europ{\"a}ischen Geschichte},
  number      = {2},
  publisher   = {Klett-Cotta},
  location    = {Stuttgart},
  date        = {1987},
  pages       = {884--917},
}
@InProceedings{moraux,
  keywords    = {secondary},
  hyphenation     = {french},
  indexsorttitle  = {De Anima dans la tradition grecque},
  author      = {Moraux, Paul},
  editor      = {Lloyd, G. E. R. and Owen, G. E. L.},
  indextitle      = {\emph{De Anima} dans la tradition gr{\`e}cque, Le},
  title       = {Le \emph{De Anima} dans la tradition gr{\`e}cque},
  subtitle    = {Quelques aspects de l'interpretation du trait{\'e}, de Theophraste {\`a}
            Themistius},
  shorttitle      = {\emph{De Anima} dans la tradition gr{\`e}cque},
  booktitle   = {Aristotle on Mind and the Senses},
  booktitleaddon  = {Proceedings of the Seventh Symposium Aristotelicum},
  eventdate   = {1975},
  publisher   = cup,
  location    = {Cambridge},
  date        = {1979},
  pages       = {281--324},
  annotation      = {This is a typical \texttt{inproceedings} entry. Note the \texttt{booksubtitle},
            \texttt{shorttitle}, \texttt{indextitle}, and \texttt{indexsorttitle} fields.
            Also note the \texttt{eventdate} field.}
}
\end{filecontents*}

\addbibresource{lit.bib}

\DeclareNameAlias{sortname}{last-first}

\renewcommand{\multinamedelim}{\addslash}
\renewcommand{\finalnamedelim}{\addslash}

\begin{document}
\chapter{First Chapter}
\begin{itemize}
    \item This is for the \verb+@incollection+ type by \citeauthor{brandt}.\footcite[See][p. 12]{brandt} The bibliography item currently looks like
    \begin{verbatim}
    Ed. by F. Seibt
    \end{verbatim}
    but I must have
    \begin{verbatim}
    Seibt, F. (editor)
    \end{verbatim}
    \item Then for \verb+@inproceedings+, in the case of multiple editors: these are just some words to have a sentence.\footcite[Cp.][p. xi]{moraux}. This currently looks like
    \begin{verbatim}
    Ed. by G. E. R. Lloyd/G. E. L. Owen
    \end{verbatim}
    but I must have
    \begin{verbatim}
    Lloyd, G. E. R./Owen, G. E. L. (editors)
    \end{verbatim}
\end{itemize}
\printbibliography
\end{document}
share|improve this question

1 Answer 1

up vote 5 down vote accepted

To achieve your required result you have to do two steps:

  1. Change the order of editor names and the string editor
  2. Put parens around the editor string.

The first can be achieved by a redefinition of the bibmacro {byeditor+others}.

\renewbibmacro*{byeditor+others}{%
  \ifnameundef{editor}
    {}
    {\printnames[byeditor]{editor}%
     \setunit{\addspace}%
     \usebibmacro{byeditor+othersstrg}%
     \clearname{editor}%
     \newunit}%
  \usebibmacro{byeditorx}%
  \usebibmacro{bytranslator+others}}

The second requirement can be achieved by a redefinition too, but I prefer a more elegant way by using the package xpatch:

\usepackage{xpatch}
\xpatchbibmacro{byeditor+othersstrg}{\printtext}{\printtext[parens]}{}{}

With these setting you get the following MWE: (I load babel with ngerman)

\documentclass[
12pt,
a4paper,
ngerman,
]
{scrreprt}

\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{babel}
\usepackage[
language=auto,
style=authoryear,
backend=biber,
isbn=false,
doi=false,
citereset=chapter,
maxcitenames=3,
dashed=false,
sorting=nyt,
firstinits=true,
terseinits=false
maxbibnames=99,
uniquename=init
]{biblatex}

\begin{filecontents*}{lit.bib}
@InCollection{brandt,
  options     = {useprefix=false},
  hyphenation     = {german},
  indexsorttitle  = {Nordischen Lander von der Mitte des 11. Jahrhunderts bis 1448},
  author      = {von Brandt, Ahasver and Erich Hoffmann},
  editor      = {Ferdinand Seibt},
  indextitle      = {Nordischen L{\"a}nder von der Mitte des 11.~Jahrhunderts bis 1448, Die},
  title       = {Die nordischen L{\"a}nder von der Mitte des 11.~Jahrhunderts bis 1448},
  shorttitle      = {Die nordischen L{\"a}nder},
  booktitle   = {Europa im Hoch- und Sp{\"a}tmittelalter},
  series      = {Handbuch der europ{\"a}ischen Geschichte},
  number      = {2},
  publisher   = {Klett-Cotta},
  location    = {Stuttgart},
  date        = {1987},
  pages       = {884--917},
  annotation      = {An \texttt{incollection} entry with a \texttt{series} and a \texttt{number}.
            Note the format of the printed name and compare the \texttt{useprefix} option in
            the \texttt{options} field as well as \texttt{vangennep}. Also note the
            \texttt{indextitle, and \texttt{indexsorttitle} fields}}
}
@InProceedings{moraux,
  keywords    = {secondary},
  hyphenation     = {french},
  indexsorttitle  = {De Anima dans la tradition grecque},
  author      = {Moraux, Paul},
  editor      = {Lloyd, G. E. R. and Owen, G. E. L.},
  indextitle      = {\emph{De Anima} dans la tradition gr{\`e}cque, Le},
  title       = {Le \emph{De Anima} dans la tradition gr{\`e}cque},
  subtitle    = {Quelques aspects de l'interpretation du trait{\'e}, de Theophraste {\`a}
            Themistius},
  shorttitle      = {\emph{De Anima} dans la tradition gr{\`e}cque},
  booktitle   = {Aristotle on Mind and the Senses},
  booktitleaddon  = {Proceedings of the Seventh Symposium Aristotelicum},
  eventdate   = {1975},
  publisher   = cup,
  location    = {Cambridge},
  date        = {1979},
  pages       = {281--324},
  annotation      = {This is a typical \texttt{inproceedings} entry. Note the \texttt{booksubtitle},
            \texttt{shorttitle}, \texttt{indextitle}, and \texttt{indexsorttitle} fields.
            Also note the \texttt{eventdate} field.}
}
\end{filecontents*}

\addbibresource{lit.bib}

\DeclareNameAlias{sortname}{last-first}

\renewcommand{\multinamedelim}{\addslash}
\renewcommand{\finalnamedelim}{\addslash}


\renewbibmacro*{byeditor+others}{%
  \ifnameundef{editor}
    {}
    {\printnames[byeditor]{editor}%
     \setunit{\addspace}%
     \usebibmacro{byeditor+othersstrg}%
     \clearname{editor}%
     \newunit}%
  \usebibmacro{byeditorx}%
  \usebibmacro{bytranslator+others}}
\usepackage{xpatch}
\xpatchbibmacro{byeditor+othersstrg}{\printtext}{\printtext[parens]}{}{}



\begin{document}

\chapter{First Chapter}
\begin{itemize}
    \item This is for the \verb+@incollection+ type by \citeauthor{brandt}.\footcite[See][p. 12]{brandt} The bibliography item currently looks like
    \begin{verbatim}
    Ed. by F. Seibt
    \end{verbatim}
    but I must have
    \begin{verbatim}
    Seibt, F. (editor)
    \end{verbatim}
    \item Then for \verb+@inproceedings+, in the case of multiple editors: these are just some words to have a sentence.\footcite[Cp.][p. xi]{moraux}. This currently looks like
    \begin{verbatim}
    Ed. by G. E. R. Lloyd/G. E. L. Owen
    \end{verbatim}
    but I must have
    \begin{verbatim}
    Lloyd, G. E. R./Owen, G. E. L. (editors)
    \end{verbatim}
\end{itemize}
\printbibliography
\end{document}

With the result:

enter image description here

share|improve this answer
    
And I am using backend biber. –  Marco Daniel May 10 '13 at 9:37
    
Thank you, this works as intended. –  henry May 10 '13 at 9:52
    
I edited my last post because apparently I did not test your code enough before that edit. I was a bit confused by your mixing of renewbibmacro and xptach, but it works. –  henry May 10 '13 at 10:00
    
@henry: You need both redefinitions. –  Marco Daniel May 10 '13 at 10:01
    
Thanks once again. Would you happen to know how to use the term editor*/*editors instead of ed. by? It is a miniscule thing and can probably be looked over, but I wanted to ask. –  henry May 10 '13 at 10:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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