von MoeWe » Fr 11. Sep 2020, 16:47
Mhh, beim zweiten Draufsehen würde es mir natürlicher erscheinen, eine @collection nicht durch Anwesenheit eines editors, sondern durch Abwesenheit eines authors zu charakterisieren. Es gibt ja durchaus @books, bei denen man author und editor angeben möchte.
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=authoryear, backend=biber]{biblatex}
\DeclareSourcemap{
\maps{
\map{
\step[notfield=author, final]
\step[typesource=book, typetarget=collection]
}
}
}
\begin{filecontents}{\jobname.bib}
@book{appleby,
editor = {Humphrey Appleby},
title = {On the Importance of the Civil Service},
date = {1980},
}
@book{bppleby,
author = {Humphrey Bppleby},
title = {On the Importance of the Civil Service},
date = {1981},
}
@book{cppleby,
author = {Humphrey Cppleby},
editor = {Humphrey Dppleby},
title = {On the Importance of the Civil Service},
date = {1982},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{appleby,bppleby,cppleby}
\printbibliography
\end{document}
Mhh, beim zweiten Draufsehen würde es mir natürlicher erscheinen, eine `@collection` nicht durch Anwesenheit eines `editor`s, sondern durch Abwesenheit eines `author`s zu charakterisieren. Es gibt ja durchaus `@book`s, bei denen man `author` und `editor` angeben möchte.
```latex
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=authoryear, backend=biber]{biblatex}
\DeclareSourcemap{
\maps{
\map{
\step[notfield=author, final]
\step[typesource=book, typetarget=collection]
}
}
}
\begin{filecontents}{\jobname.bib}
@book{appleby,
editor = {Humphrey Appleby},
title = {On the Importance of the Civil Service},
date = {1980},
}
@book{bppleby,
author = {Humphrey Bppleby},
title = {On the Importance of the Civil Service},
date = {1981},
}
@book{cppleby,
author = {Humphrey Cppleby},
editor = {Humphrey Dppleby},
title = {On the Importance of the Civil Service},
date = {1982},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{appleby,bppleby,cppleby}
\printbibliography
\end{document}
```