von MoeWe » Fr 20. Nov 2020, 08:59
Die Änderungswünsche, die Du beschreibst klingen für mich sehr nach dem APA-Stil. Vielleicht suchst Du einfach nur
\documentclass[listof=totoc]{scrreprt}
\usepackage[english,ngerman]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,
style=apa]{biblatex}
\usepackage[
hidelinks, %
bookmarks=true,
breaklinks=true,
]{hyperref}
\urlstyle{same}
\DefineBibliographyStrings{ngerman}{
retrieved = {Abgerufen am},
from = {von},
}
\begin{filecontents}{\jobname.bib}
@book{elk,
author = {Anne Elk},
title = {A Theory on Brontosauruses},
year = {1972},
publisher = {Monthy \& Co.},
location = {London},
url = {https://example.com/~elk/bronto.pdf},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{ctan}
\cite{brandt}
\cite{markey}
\citeauthor{brandt}
\parencite{ctan}
\parencite{brandt}
\parencite{markey}
\nocite{westfahl:space,gaonkar:in,elk}
\printbibliography
\end{document}
Eventuell plus-minus ein paar kleine Änderungen. (Obligatorische Warnung: biblatex-apa implementiert die komplexen Vorgabe des APA-Manual [7. Aufl.] so gut wie möglich. Da die Vorgaben teilweise nicht trivial sind, muss biblatex-apa einige Tricks anwenden. Der Stil ist nicht dafür gedacht, so leicht anpassbar zu sein wie etwa die Standard-biblatex-Stile oder die biblatex-ext-Stile. biblatex-apa eignet sich nur als Grundlage für einen eigenen Stil, wenn der nah genug an den APA-Vorgaben dran ist. Für die 6. Auflage des APA-Manuals gibt es biblatex-apa6.)
---
Wenn das nicht der Fall ist, ist hier ein Anfang für Punkt 1 mit Deinem bisherigen Ansatz. Die Sache mit den Seitenzahlen ist natürlich auch möglich, aber etwas aufwendiger, da man dort wesentlich mehr Code hin- und herschieben muss. Daher hab ich mir das heute Morgen noch nicht angesehen.
\documentclass[listof=totoc]{scrreprt}
\usepackage[english,ngerman]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,
style=ext-authoryear,
maxcitenames=4,
maxbibnames=4,
giveninits=true,
uniquename=init,
dashed=false,
innamebeforetitle=true,
isbn=false, doi=true, url=true,
alldates=short,
block=space,
citecounter=true,
autocite=inline,]{biblatex}
\usepackage[
hidelinks, %
bookmarks=true,
breaklinks=true,
]{hyperref}
\urlstyle{same}
\DefineBibliographyStrings{ngerman}{
andothers = {et\addabbrvspace al\adddot},
urlseen = {Abgerufen am},
urlfrom = {von}
}
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1\space\bibstring{urlfrom}}
\DeclareFieldFormat{url}{\url{#1}}
\renewbibmacro*{url+urldate}{%
\usebibmacro{urldate}%
\setunit*{\addspace}%
\usebibmacro{url}%
}
\DeclareNameAlias{sortname}{family-given}
\DeclareNameAlias{ineditor}{sortname}
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
\DeclareDelimFormat{editortypedelim}{\addspace}
\DeclareDelimFormat[bib,cite,parencite]{finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\&\space}
% \AfterBibliographyPreamble{\raggedright}
% hat bei biblatex keine Wirkung,
% wenn die Bibliographie \raggedright sein soll
% nutzt \bibsetup:
%\appto\bibsetup{\raggedright}
\begin{filecontents}[overwrite]{\jobname.bib}
@book{elk,
author = {Anne Elk},
title = {A Theory on Brontosauruses},
year = {1972},
publisher = {Monthy \& Co.},
location = {London},
url = {https://example.com/~elk/bronto.pdf},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{ctan}
\cite{brandt}
\cite{markey}
\citeauthor{brandt}
\parencite{ctan}
\parencite{brandt}
\parencite{markey}
\nocite{westfahl:space,gaonkar:in,elk}
\printbibliography
\end{document}
Die Änderungswünsche, die Du beschreibst klingen für mich sehr nach dem APA-Stil. Vielleicht suchst Du einfach nur
```latex
\documentclass[listof=totoc]{scrreprt}
\usepackage[english,ngerman]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,
style=apa]{biblatex}
\usepackage[
hidelinks, %
bookmarks=true,
breaklinks=true,
]{hyperref}
\urlstyle{same}
\DefineBibliographyStrings{ngerman}{
retrieved = {Abgerufen am},
from = {von},
}
\begin{filecontents}{\jobname.bib}
@book{elk,
author = {Anne Elk},
title = {A Theory on Brontosauruses},
year = {1972},
publisher = {Monthy \& Co.},
location = {London},
url = {https://example.com/~elk/bronto.pdf},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{ctan}
\cite{brandt}
\cite{markey}
\citeauthor{brandt}
\parencite{ctan}
\parencite{brandt}
\parencite{markey}
\nocite{westfahl:space,gaonkar:in,elk}
\printbibliography
\end{document}
```
Eventuell plus-minus ein paar kleine Änderungen. (Obligatorische Warnung: `biblatex-apa` implementiert die komplexen Vorgabe des APA-Manual [7. Aufl.] so gut wie möglich. Da die Vorgaben teilweise nicht trivial sind, muss `biblatex-apa` einige Tricks anwenden. Der Stil ist nicht dafür gedacht, so leicht anpassbar zu sein wie etwa die Standard-`biblatex`-Stile oder die `biblatex-ext`-Stile. `biblatex-apa` eignet sich nur als Grundlage für einen eigenen Stil, wenn der nah genug an den APA-Vorgaben dran ist. Für die 6. Auflage des APA-Manuals gibt es `biblatex-apa6`.)
---
Wenn das nicht der Fall ist, ist hier ein Anfang für Punkt 1 mit Deinem bisherigen Ansatz. Die Sache mit den Seitenzahlen ist natürlich auch möglich, aber etwas aufwendiger, da man dort wesentlich mehr Code hin- und herschieben muss. Daher hab ich mir das heute Morgen noch nicht angesehen.
```latex
\documentclass[listof=totoc]{scrreprt}
\usepackage[english,ngerman]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,
style=ext-authoryear,
maxcitenames=4,
maxbibnames=4,
giveninits=true,
uniquename=init,
dashed=false,
innamebeforetitle=true,
isbn=false, doi=true, url=true,
alldates=short,
block=space,
citecounter=true,
autocite=inline,]{biblatex}
\usepackage[
hidelinks, %
bookmarks=true,
breaklinks=true,
]{hyperref}
\urlstyle{same}
\DefineBibliographyStrings{ngerman}{
andothers = {et\addabbrvspace al\adddot},
urlseen = {Abgerufen am},
urlfrom = {von}
}
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1\space\bibstring{urlfrom}}
\DeclareFieldFormat{url}{\url{#1}}
\renewbibmacro*{url+urldate}{%
\usebibmacro{urldate}%
\setunit*{\addspace}%
\usebibmacro{url}%
}
\DeclareNameAlias{sortname}{family-given}
\DeclareNameAlias{ineditor}{sortname}
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
\DeclareDelimFormat{editortypedelim}{\addspace}
\DeclareDelimFormat[bib,cite,parencite]{finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\&\space}
% \AfterBibliographyPreamble{\raggedright}
% hat bei biblatex keine Wirkung,
% wenn die Bibliographie \raggedright sein soll
% nutzt \bibsetup:
%\appto\bibsetup{\raggedright}
\begin{filecontents}[overwrite]{\jobname.bib}
@book{elk,
author = {Anne Elk},
title = {A Theory on Brontosauruses},
year = {1972},
publisher = {Monthy \& Co.},
location = {London},
url = {https://example.com/~elk/bronto.pdf},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{ctan}
\cite{brandt}
\cite{markey}
\citeauthor{brandt}
\parencite{ctan}
\parencite{brandt}
\parencite{markey}
\nocite{westfahl:space,gaonkar:in,elk}
\printbibliography
\end{document}
```