von MoeWe » Sa 5. Okt 2019, 12:43
In dem Beispieleintrag fehlt der booktitle. Eigentlich spielt das für das Format des "Hrsg." keine Rolle. Aber es wäre interessant zu wissen, in welcher Reihenfolge editor und booktitle erscheinen sollen.
Wenn Du "In: <editor> (Hrsg.). <booktitle>" möchtest, dann bieten sich die biblatex-ext-Stile und ihre Option innamebeforetitle an
\documentclass[ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=ext-authortitle, innamebeforetitle]{biblatex}
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
\DeclareDelimFormat{editortypedelim}{\addspace}
\DeclareFieldAlias{translatortype}{editortype}
\DeclareDelimAlias{translatortypedelim}{editortypedelim}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson,westfahl:space,gaonkar:in,pines}
\printbibliography
\end{document}
Wenn Du die Reihenfolge der Standardstile beibehalten möchtest und gern "In: <booktitle>. <editor> (Hrsg.)" hättest, dann kann biblatex-ext uns nicht weiter helfen. Da bräuchte man in etwa so etwas
\documentclass[ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authortitle]{biblatex}
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
\DeclareDelimFormat{editortypedelim}{\addspace}
\DeclareFieldAlias{translatortype}{editortype}
\DeclareDelimAlias{translatortypedelim}{editortypedelim}
\makeatletter
\newbibmacro*{editorx+othersstrg}[1]{%
\iffieldundef{#1type}
{\ifboolexpr{
test {\ifnumgreater{\value{#1}}{1}}
or
test {\ifandothers{#1}}
}
{\def\abx@tempa{editors}}
{\def\abx@tempa{editor}}}
{\ifboolexpr{
test {\ifnumgreater{\value{#1}}{1}}
or
test {\ifandothers{#1}}
}
{\edef\abx@tempa{\thefield{#1type}s}}
{\edef\abx@tempa{\thefield{#1type}}}}%
\let\abx@tempb=\empty
\ifnamesequal{#1}{translator}
{\appto\abx@tempa{tr}%
\appto\abx@tempb{\clearname{translator}}}
{}%
\ifnamesequal{#1}{commentator}
{\appto\abx@tempa{co}%
\appto\abx@tempb{\clearname{commentator}}}
{\ifnamesequal{#1}{annotator}
{\appto\abx@tempa{an}%
\appto\abx@tempb{\clearname{annotator}}}
{}}%
\ifnamesequal{#1}{introduction}
{\appto\abx@tempa{in}%
\appto\abx@tempb{\clearname{introduction}}}
{\ifnamesequal{#1}{foreword}
{\appto\abx@tempa{fo}%
\appto\abx@tempb{\clearname{foreword}}}
{\ifnamesequal{#1}{afterword}
{\appto\abx@tempa{af}%
\appto\abx@tempb{\clearname{afterword}}}
{}}}%
\ifbibxstring{\abx@tempa}
{\printtext[editortype]{\bibstring{\abx@tempa}}\abx@tempb}
{\usebibmacro{editorstrg}}}
\newbibmacro{editorx:x}[1]{%
\ifnameundef{#1}
{}
{\printnames{#1}%
\setunit{\printdelim{editortypedelim}}%
\usebibmacro{editorx+othersstrg}{#1}%
\clearname{#1}%
\newunit}}
\newbibmacro*{editorx}{%
\usebibmacro{editorx:x}{editora}%
\usebibmacro{editorx:x}{editorb}%
\usebibmacro{editorx:x}{editorc}}
\renewbibmacro*{byeditor+others}{%
\ifnameundef{editor}
{}
{\printnames{editor}%
\setunit{\printdelim{editortypedelim}}%
\usebibmacro{editorstrg}%
\clearname{editor}}%
\usebibmacro{editorx}%
\usebibmacro{translator+others}}
\makeatother
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson,westfahl:space,gaonkar:in,pines}
\printbibliography
\end{document}
In dem Beispieleintrag fehlt der [tt]booktitle[/tt]. Eigentlich spielt das für das Format des "Hrsg." keine Rolle. Aber es wäre interessant zu wissen, in welcher Reihenfolge [tt]editor[/tt] und [tt]booktitle[/tt] erscheinen sollen.
Wenn Du "In: <[tt]editor[/tt]> (Hrsg.). <[tt]booktitle[/tt]>" möchtest, dann bieten sich die [p]biblatex-ext[/p]-Stile und ihre Option [tt]innamebeforetitle[/tt] an
[code]\documentclass[ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=ext-authortitle, innamebeforetitle]{biblatex}
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
\DeclareDelimFormat{editortypedelim}{\addspace}
\DeclareFieldAlias{translatortype}{editortype}
\DeclareDelimAlias{translatortypedelim}{editortypedelim}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson,westfahl:space,gaonkar:in,pines}
\printbibliography
\end{document}[/code]
Wenn Du die Reihenfolge der Standardstile beibehalten möchtest und gern "In: <[tt]booktitle[/tt]>. <[tt]editor[/tt]> (Hrsg.)" hättest, dann kann [tt]biblatex-ext[/tt] uns nicht weiter helfen. Da bräuchte man in etwa so etwas
[code]\documentclass[ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authortitle]{biblatex}
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
\DeclareDelimFormat{editortypedelim}{\addspace}
\DeclareFieldAlias{translatortype}{editortype}
\DeclareDelimAlias{translatortypedelim}{editortypedelim}
\makeatletter
\newbibmacro*{editorx+othersstrg}[1]{%
\iffieldundef{#1type}
{\ifboolexpr{
test {\ifnumgreater{\value{#1}}{1}}
or
test {\ifandothers{#1}}
}
{\def\abx@tempa{editors}}
{\def\abx@tempa{editor}}}
{\ifboolexpr{
test {\ifnumgreater{\value{#1}}{1}}
or
test {\ifandothers{#1}}
}
{\edef\abx@tempa{\thefield{#1type}s}}
{\edef\abx@tempa{\thefield{#1type}}}}%
\let\abx@tempb=\empty
\ifnamesequal{#1}{translator}
{\appto\abx@tempa{tr}%
\appto\abx@tempb{\clearname{translator}}}
{}%
\ifnamesequal{#1}{commentator}
{\appto\abx@tempa{co}%
\appto\abx@tempb{\clearname{commentator}}}
{\ifnamesequal{#1}{annotator}
{\appto\abx@tempa{an}%
\appto\abx@tempb{\clearname{annotator}}}
{}}%
\ifnamesequal{#1}{introduction}
{\appto\abx@tempa{in}%
\appto\abx@tempb{\clearname{introduction}}}
{\ifnamesequal{#1}{foreword}
{\appto\abx@tempa{fo}%
\appto\abx@tempb{\clearname{foreword}}}
{\ifnamesequal{#1}{afterword}
{\appto\abx@tempa{af}%
\appto\abx@tempb{\clearname{afterword}}}
{}}}%
\ifbibxstring{\abx@tempa}
{\printtext[editortype]{\bibstring{\abx@tempa}}\abx@tempb}
{\usebibmacro{editorstrg}}}
\newbibmacro{editorx:x}[1]{%
\ifnameundef{#1}
{}
{\printnames{#1}%
\setunit{\printdelim{editortypedelim}}%
\usebibmacro{editorx+othersstrg}{#1}%
\clearname{#1}%
\newunit}}
\newbibmacro*{editorx}{%
\usebibmacro{editorx:x}{editora}%
\usebibmacro{editorx:x}{editorb}%
\usebibmacro{editorx:x}{editorc}}
\renewbibmacro*{byeditor+others}{%
\ifnameundef{editor}
{}
{\printnames{editor}%
\setunit{\printdelim{editortypedelim}}%
\usebibmacro{editorstrg}%
\clearname{editor}}%
\usebibmacro{editorx}%
\usebibmacro{translator+others}}
\makeatother
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson,westfahl:space,gaonkar:in,pines}
\printbibliography
\end{document}[/code]