I'm working on my assignments for Study and unfortunately I'm too silly to understand the library... Currently the authoryear context is declared:
--> See executable
I already figured out how to change some basic things like the comma in the citation and how to change the url to display without monospace and without prefix. Unfortunately now, the hypenation is damaged and no linefeed is inserted. Here is my code for customizing (file modsBiblatex.tex):
% Optionen für Biblatex
\ExecuteBibliographyOptions{%
giveninits=false,
isbn=true,
url=true,
doi=false,
eprint=false,
maxbibnames=7, % Alle Autoren (kein et al.)
maxcitenames=1, % Kürzel nur aus 1. Autor
backref=false, % Rückverweise auf Zitatseiten
bibencoding=utf8, % wenn .bib in utf8, sonst ascii
bibwarn=true, % Warnung bei fehlerhafter bib-Datei
}%
%Autoren (Nachname, Vorname)
\DeclareNameAlias{default}{last-first}
\renewcommand*{\nameyeardelim}{\addcomma\addspace} % insert a comma between author and year in-text citations
%Titel nicht kursiv anzeigen
\DeclareFieldFormat{title}{\mkbibquote{#1\isdot}}
% Sourcecode nicht in codecoloumn anzeigen
\DeclareFieldFormat{url}{\url{#1}}
\DeclareFieldFormat{urldate}{#1}
\renewcommand*{\newunitpunct}{\addcomma\space}
% Definiert @Online Eintrag
\DeclareBibliographyDriver{www}{%
\newunit\newblock
\printnames{author}%
\setunit*{\addcomma\space}%
\newunit\newblock
\printfield{title}%
\newunit\newblock
% \setunit*{\space}%
\printfield{url}%
\newunit\newblock
\setunit*{\addcomma\space accessed \space}%
\printfield{urldate}%
\finentry}
The part \DeclareBibliographyDriver is not working for me. I already gave up to find information how to customize this. May someone know a page where this function is explained so a noob like me can understand it?
Nethertheless my most important question is: How can I change the url field to include an automatic linebreak again?
Bib example (file economics.bib):
@online{EuropeanCentralBank.2017,
abstract = {The three official interest rates the ECB sets every six weeks as part of its monetary policy to steer the provision of liquidity to the banking sector.},
author = {{European Central Bank}},
year = {2017},
title = {Key ECB interest rates},
url = {https://www.ecb.europa.eu/stats/policy_and_exchange_rates/key_ecb_interest_rates-/html/index.en.html},
address = {Frankfurt am Main},
urldate = {12.08.2017}
}
@online{EuropeanCentralBank.2017b,
author = {{European Central Bank}},
editor = {{European Central Bank}},
year = {2017},
title = {Why are stable prices important?},
url = {https://www.ecb.europa.eu/explainers/tell-me-more/html/stableprices.en.html},
urldate = {14.08.2017}
}
@online{EuropeanCentralBank.2017c,
abstract = {Information on the scope of the ECB's monetary policy.},
author = {{European Central Bank}},
year = {2017},
title = {Scope of monetary policy},
url = {https://www.ecb.europa.eu/mopo/intro/role/html/index.en.html},
address = {Frankfurt am Main},
urldate = {14.08.2017}
}
@online{EuropeanCentralBank.2017d,
abstract = {Maintaining price stability: Learn more about the objective of the ECB's monetary policy.},
author = {{European Central Bank}},
year = {2017},
title = {Objective of monetary policy},
url = {https://www.ecb.europa.eu/mopo/intro/objective/html/index.en.html},
address = {Frankfurt am Main},
urldate = {14.08.2017}
}
@online{EuropeanCentralBank.2017e,
author = {{European Central Bank}},
year = {2017},
title = {Monetary policy decisions},
url = {https://www.ecb.europa.eu/press/pr/date/2017/html/ecb.mp170720.en.html},
address = {Frankfurt am Main},
urldate = {12.08.2017}
}
@online{EuropeanCentralBank.2017f,
abstract = {Monetary aggregates and counterparts are derived from the euro area banks' (MFIs') consolidated balance sheet. Monetary aggregates comprise short-term liabilities vis-{\`a}-vis the money holding sector, i.e. non-bank euro area residents excluding central government.},
author = {{European Central Bank}},
year = {2017},
title = {Monetary aggregates},
url = {https://www.ecb.europa.eu/stats/money_credit_banking/monetary_aggregates/html/index.en.html},
address = {Frankfurt am Main},
urldate = {12.08.2017}
}
This is the executable (I deleted as much as possible):
\documentclass[12pt,oneside,titlepage,listof=totoc,bibliography=totoc]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman,USenglish]{babel}
\usepackage[autostyle,english=british]{csquotes}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\usepackage{fancybox}
\usepackage[a4paper, left=4cm, right=2cm, top=2.8cm, bottom=2.3cm]{geometry}
\usepackage{graphicx}
\usepackage{refstyle}
\usepackage{colortbl}
\usepackage{array}
\usepackage{float} %Positionierung von Abb. und Tabellen mit [H] erzwingen
\usepackage{footnote}
\usepackage{caption}
\usepackage{enumitem}
\usepackage{amssymb}
\usepackage{mathptmx}
\usepackage{amsmath}
\usepackage[table]{xcolor}
\usepackage{marvosym} % Verwendung von Symbolen, z.B. perfektes Eurozeichen
\usepackage[colorlinks=true,linkcolor=black]{hyperref}
\definecolor{darkblack}{rgb}{0,0,0}
\hypersetup{colorlinks=true, breaklinks=true, linkcolor=darkblack, menucolor=darkblack, urlcolor=darkblack}
\usepackage{times}
\usepackage{eurosym} % Einbinden von offiziellen Eurosymbolen
%\usepackage{nth} % Bibliothek um das th (eg. 4th of ...) an Datumangaben hochzustellen.
\fontfamily{ptm}\selectfont
% Biblatex
\usepackage[
backend=biber,
style=authoryear,
citestyle=authoryear,
url=false,
isbn=false,
%notetype=footonly,
hyperref=false,
sortlocale=de]{biblatex}
%weitere Anpassungen für BibLaTex
\input{skripte/modsBiblatex}
%Bib-Datei einbinden
\addbibresource{literatur/economics.bib}
%-----------------------------------
% Start the document here:
%-----------------------------------
\begin{document}
This is a text referencing the bib entrys \parencite{EuropeanCentralBank.2017,EuropeanCentralBank.2017b,EuropeanCentralBank.2017c,EuropeanCentralBank.2017d,EuropeanCentralBank.2017e,EuropeanCentralBank.2017f}
\pagenumbering{Roman} % Seitennumerierung auf römisch umstellen
\renewcommand{\refname}{Literature} % "Literatur" in
%"Literaturverzeichnis" umbenennen
\newcolumntype{C}{>{\centering\arraybackslash}X} % Neuer Tabellen-Spalten-Typ:
%Zentriert und umbrechbar
%-----------------------------------
% Literaturverzeichnis
%-----------------------------------
\newpage
%\addcontentsline{toc}{section}{Literatur}
\printbibliography
\end{document}
My Questions:
- Do you know any easy documentation for customizing of the bibliography and the drivers?
- Do you know how to get the hypenation in an URL without displaying in monospace? (I need Roman)
- What is the reason, the field urldate and the prefix "accessed" is not displayed?




onlineinstead ofwwwin your\DeclareBibliographyDriver? Even thoughwwwis indeed defined as an alias ofonlineby biblatex, I'm not sure it expects the alias for the driver definitions. – gusbrs Aug 17 '17 at 11:56\urlcommand in the field format. Use\DeclareFieldFormat{url}{\url{#1}}. – Ulrike Fischer Aug 17 '17 at 11:59\urlstyle{rm}should work (untested). – Ulrike Fischer Aug 17 '17 at 13:20\documentclass{...}and ending with\end{document}, that illustrates your problem. You can edit your question to include it. – gusbrs Aug 17 '17 at 13:24urldatefields are not formatted correctly. Regardless of what you want the output to be, the date input must be in the formYYYY-MM-DD, so onlyurldate = {2017-08-17}would be correct. – moewe Aug 17 '17 at 13:57style=authoryear, citestyle=authoryear,is equivalent to, the shorterstyle=authoryear. In newer versions ofbiblatex(>=3.3, current version is 3.7),\DeclareNameAlias{default}{last-first}should be\DeclareNameAlias{default}{family-given}. – moewe Aug 17 '17 at 13:58\DeclareBibliographyDriver{www}won't work, because@wwwis just an alias for@online. Internallybiblatexonly knowsonline. Biber actually converts all@wwws to@onlines. So you must use\DeclareBibliographyDriver{online}in your customisation code. – moewe Aug 17 '17 at 14:01\input{skripte/modsBiblatex}, so we still don't have a code that is compilable from our point of view. Also, I'm not sure what you mean by\DeclareBibliographyDriver"doesn't work", you'll have to be more specific than that. Taking your code (after adjustments) and using\DeclareBibliographyDriver{online}as already suggested here, it does work as intended, in the sense that the formating does follow what's contained there (to see, delete some of the lines, if you wish). – gusbrs Aug 17 '17 at 14:05biblatexuser that wants to apply modifications and customisations in English. There are some great introductory texts linked in biblatex in a nutshell (for beginners), a few of them cover more than just the basics, but they don't explain all the customisation options. In German there is the classic http://biblatex.dominik-wassenhoven.de/nutzungsbedingungen.shtml?biblatex1 and http://biblatex.dominik-wassenhoven.de/nutzungsbedingungen.shtml?biblatex2 – moewe Aug 17 '17 at 14:05giveninits=false, isbn=true, url=true,are all the default, so you don't have to set them explicitly. – moewe Aug 17 '17 at 14:17