von Rednepali » Sa 15. Jun 2013, 23:59
Hallo,
bin gerade dabei mir einen Bibliographiestil mit biblatex/biber zu erstellen und habe alles eigentlich wie es sein soll. Bin mit Hilfe dieses Forums auch schon relativ weit gekommen, aber ein Problem besteht:
(Hrsg.) wird einmal in Klammern(so wie ich es will und brauche) dargestellt aber dann nochmal default als "Hrsg. von…", also doppelt dargestellt.
Wie bekomme ich "Hrsg. von…" weg?
Hier mein Minimalbeispiel:
\documentclass[12pt,a4paper]{article}
\usepackage[ngerman]{babel}
\usepackage[applemac]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[bibstyle=authoryear,citestyle=authoryear,maxnames=3,backend=biber,language=ngerman]{biblatex}
%\renewcommand*{\labelnamepunct}{\addcolon\addspace}=Doppelpunkt nach letztem Athor
\renewcommand{\postnotedelim}{\addcolon\addspace} %Doppelpunkt nach Author
%%%%%%%%%%%%%%%%%%%%%%% Hrsg.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}%S.weg
\DeclareBibliographyDriver{incollection}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/translator+others}%
\setunit{\labelnamepunct}\newblock
\usebibmacro{title}%
\newunit
\printlist{language}%
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{in:}%
\begingroup% NEU
\renewbibmacro*{date+extrayear}{}% NEU
\usebibmacro{editor+others}% NEU
\newunit\newblock% NEU
\endgroup% NEU
\usebibmacro{maintitle+booktitle}%
\newunit\newblock
\usebibmacro{byeditor+others}%
\newunit\newblock
\printfield{edition}%
\newunit
\iffieldundef{maintitle}
{\printfield{volume}%
\printfield{part}}
{}%
\newunit
\printfield{volumes}%
\newunit\newblock
\usebibmacro{series+number}%
\newunit\newblock
\printfield{note}%
\newunit\newblock
\usebibmacro{publisher+location+date}%
\newunit\newblock
\usebibmacro{chapter+pages}%
\newunit\newblock
\iftoggle{bbx:isbn}
{\printfield{isbn}}
{}%
\newunit\newblock
\usebibmacro{doi+eprint+url}%
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\newunit\newblock
\usebibmacro{pageref}%
\usebibmacro{finentry}}
\DefineBibliographyStrings{ngerman}{andothers={et \addabbrvspace al\adddot},editor = {(Hrsg.)},editors = {(Hrsg.)}}
%%%%%%%%%%%%%%%%%%%%% (Hrsg.) %%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%% Komma vor (Hrsg) weg%%%%%%%%%%%%%%%%%%%%%%
\renewbibmacro*{editor+others}{%
\ifboolexpr{
test \ifuseeditor
and
not test {\ifnameundef{editor}}
}
{\printnames{editor}%
%\setunit{\addcomma\space}%ersetzen durch:
\setunit{\space}%
\usebibmacro{editor+othersstrg}%
\clearname{editor}}
{}}
%%%%%%%%%%%%% Komma vor (Hrsg) weg%%%%%%%%%%%%%%%%%%%%%%
\addbibresource{/Users/christophpontius/Documents/Literatur/JabRef/Database.bib}
\usepackage[autostyle,
german=guillemets,
english=british,
french=guillemets
]{csquotes}
\begin{document}
teufefhsuf \cite[237]{Wessels2008} jfhne\\
feijfueh \parencite[vgl.][153]{diedrichs2011} fvferuferu
\printbibliography
\end{document}
Ich hoffe Ihr könnt mir wieder helfen.
Beste Grüße,
Christoph.
Hallo,
bin gerade dabei mir einen Bibliographiestil mit biblatex/biber zu erstellen und habe alles eigentlich wie es sein soll. Bin mit Hilfe dieses Forums auch schon relativ weit gekommen, aber ein Problem besteht:
(Hrsg.) wird einmal in Klammern(so wie ich es will und brauche) dargestellt aber dann nochmal default als "Hrsg. von…", also doppelt dargestellt.
Wie bekomme ich "Hrsg. von…" weg?
Hier mein Minimalbeispiel:
[code]
\documentclass[12pt,a4paper]{article}
\usepackage[ngerman]{babel}
\usepackage[applemac]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[bibstyle=authoryear,citestyle=authoryear,maxnames=3,backend=biber,language=ngerman]{biblatex}
%\renewcommand*{\labelnamepunct}{\addcolon\addspace}=Doppelpunkt nach letztem Athor
\renewcommand{\postnotedelim}{\addcolon\addspace} %Doppelpunkt nach Author
%%%%%%%%%%%%%%%%%%%%%%% Hrsg.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}%S.weg
\DeclareBibliographyDriver{incollection}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/translator+others}%
\setunit{\labelnamepunct}\newblock
\usebibmacro{title}%
\newunit
\printlist{language}%
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{in:}%
\begingroup% NEU
\renewbibmacro*{date+extrayear}{}% NEU
\usebibmacro{editor+others}% NEU
\newunit\newblock% NEU
\endgroup% NEU
\usebibmacro{maintitle+booktitle}%
\newunit\newblock
\usebibmacro{byeditor+others}%
\newunit\newblock
\printfield{edition}%
\newunit
\iffieldundef{maintitle}
{\printfield{volume}%
\printfield{part}}
{}%
\newunit
\printfield{volumes}%
\newunit\newblock
\usebibmacro{series+number}%
\newunit\newblock
\printfield{note}%
\newunit\newblock
\usebibmacro{publisher+location+date}%
\newunit\newblock
\usebibmacro{chapter+pages}%
\newunit\newblock
\iftoggle{bbx:isbn}
{\printfield{isbn}}
{}%
\newunit\newblock
\usebibmacro{doi+eprint+url}%
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\newunit\newblock
\usebibmacro{pageref}%
\usebibmacro{finentry}}
\DefineBibliographyStrings{ngerman}{andothers={et \addabbrvspace al\adddot},editor = {(Hrsg.)},editors = {(Hrsg.)}}
%%%%%%%%%%%%%%%%%%%%% (Hrsg.) %%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%% Komma vor (Hrsg) weg%%%%%%%%%%%%%%%%%%%%%%
\renewbibmacro*{editor+others}{%
\ifboolexpr{
test \ifuseeditor
and
not test {\ifnameundef{editor}}
}
{\printnames{editor}%
%\setunit{\addcomma\space}%ersetzen durch:
\setunit{\space}%
\usebibmacro{editor+othersstrg}%
\clearname{editor}}
{}}
%%%%%%%%%%%%% Komma vor (Hrsg) weg%%%%%%%%%%%%%%%%%%%%%%
\addbibresource{/Users/christophpontius/Documents/Literatur/JabRef/Database.bib}
\usepackage[autostyle,
german=guillemets,
english=british,
french=guillemets
]{csquotes}
\begin{document}
teufefhsuf \cite[237]{Wessels2008} jfhne\\
feijfueh \parencite[vgl.][153]{diedrichs2011} fvferuferu
\printbibliography
\end{document}
[/code]
Ich hoffe Ihr könnt mir wieder helfen.
Beste Grüße,
Christoph.