I am trying to achieve the following bibliography style for websites (@misc):
Editor (Hrsg.) (2015): Title, Location. Verfügbar unter: http://some.kind.of.url (letzter Zugriff: 05.09.2015).
And I would like to add a field "downloaded" to the bibliography to get bibliography entries for publicly available PDF files:
Editor (Hrsg.) (2015): Title, Location. Verfügbar unter: http://some.kind.of.url/file.pdf (Download am: 05.09.2015).
This is my example what I did so far:
\documentclass[12pt, oneside]{Thesis}
\usepackage[babel, german=quotes]{csquotes}
\usepackage[backend=biber,%
citestyle=authoryear-icomp,%
bibstyle=authoryear,%
dashed=false,%
sorting=nyvt,%
autocite=footnote,%
autopunct=true,%
backrefstyle=three+,%
isbn=false,%
doi=false,%
pagetracker=true,%
useprefix=true,%
uniquename=init,%
firstinits=true,%
maxcitenames=2,%
]{biblatex}
\addbibresource{Bibliography.bib}
\setlength{\bibitemsep}{1em}
\setlength{\bibhang}{2em}
\setlength{\footnotesep}{0.6\baselineskip}
\renewcommand{\mkcitation}[1]{\space#1}
\renewcommand{\mkblockquote}[4]{\singlespace\emph{#1}#2#4#3}
\urlstyle{same}
\renewcommand*{\nameyeardelim}{\addcomma\space}
\renewcommand*{\labelnamepunct}{\addcolon\space}
\renewcommand{\multinamedelim}{\addsemicolon\space}
\renewcommand{\finalnamedelim}{\addsemicolon\space}
\DeclareNameAlias{author}{last-first}
\DeclareNameAlias{labelname}{last-first}
\DeclareFieldFormat{title}{#1}
\DeclareFieldFormat{url}{verf{\"u}gbar unter\addcolon\space\url{#1}}
\DefineBibliographyStrings{ngerman}{urlseen = letzter Zugriff\addcolon}
\DeclareFieldFormat[article]{title}{#1}
\DeclareFieldFormat{journaltitle}{#1}
\renewcommand{\bibfootnotewrapper}[1]{\bibsentence#1\addspace}
\DefineBibliographyStrings{ngerman}{
editor = {(Hrsg\adddot)},
editors={(Hrsg\adddot)}
}
\renewbibmacro*{editor+others}{
\ifboolexpr{
test \ifuseeditor
and
not test {\ifnameundef{editor}}
}
{
\printnames{editor}%
\setunit{\space}%
\usebibmacro{editor+othersstrg}%
\clearname{editor}
\usebibmacro{date+extrayear}
}
{
}
}
\begin{document}
Some Text\blockquote[{\autocite[][]{WwwSource.2015}}]{with citation}{}.
\end{document}
This is my .bib entry for the first:
@misc{WwwSource.2015,
editor = {{Editor}},
year = {{2015}},
title = {Title},
url = {http://some.kind.of.url},
keywords = {Quelle},
address = {Location},
urldate = {2015-09-05},
}
This is my .bib entry for the second:
@misc{WwwSource.2015,
editor = {{Editor}},
year = {{2015}},
title = {Title},
url = {http://some.kind.of.url/file.pdf},
keywords = {Quelle},
address = {Location},
urldate = {2015-09-05},
downloaded = {2015-09-05}
}
The problem I am currently encountering is that with the redefinition of the macro editor+others in my bibliography the entries containing an editor are indented:
For the second part with the download date I don't have an idea how to do that.
Any help appreciated.
Thanks a lot in advance.
\DefineBibliographyStrings{ngerman}
, you can achieve the same output by\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
.\renewbibmacro*{editor+others}
has the potential to cause lots of unwanted space. Read What is the use of percent signs (%) at the end of lines?labelname
format if you don't know exactly what you are doing, it can destroy a lot - why did you change the format?\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
- thanks for that.\renewbibmacro*{editor+others}
or put everything in one line, correct?