0

I am trying to specify the citation of a data base. Consider the following MWE with two entrances:`

\documentclass[12pt, bibliography=totocnumbered, listof=totoc]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{csquotes}

\usepackage{filecontents}

%Bibliotheken
\usepackage
[style=ext-authoryear,labelnumber, useprefix=true,
sorting=nyt,maxbibnames=9,maxcitenames=3,uniquelist=false, backend=biber, 
doi=false,isbn=false,url=false,
uniquename=false,bibencoding=utf8, date=year, giveninits=true, terseinits=false, dashed=false]
{biblatex}


%Doppelpunkt nach Jahr
\renewcommand{\labelnamepunct}{\addcolon\space}

%Remove Dot after volume
\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
%  \setunit*{\adddot}% DELETED
 % \setunit*{\addnbspace}% NEW (optional); there's also \addnbthinspace
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}

% Number of articles in parentheses
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}

%Dot after journal title
\DeclareFieldFormat{journaltitle}{{#1}\isdot}

\renewbibmacro*{journal+issuetitle}{%
  \usebibmacro{journal}%
  \setunit*{\addcomma\space}%
  \iffieldundef{series}
    {}
    {\newunit
     \printfield{series}%
     \setunit{\addspace}}%
  \usebibmacro{volume+number+eid}%
  \setunit{\addspace}%
  \usebibmacro{issue+date}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \newunit}


%Dort und Sorting Last-First
\DeclareNameAlias{sortname}{first-last-bold}

\DeclareNameFormat{first-last-bold}{\mkbibbold{%
  \ifgiveninits
    {\usebibmacro{name:last-first}{\namepartfamily}{\namepartgiveni}{\namepartprefix}{\namepartsuffix}}
    {\usebibmacro{name:last-first}{\namepartfamily}{\namepartgiven}{\namepartprefix}{\namepartsuffix}}%
  \usebibmacro{name:andothers}}}

%Change to Zugriff am
\DefineBibliographyStrings{german}{% 
urlseen = {Zugriff am}, 
}

%URL date without parantheses
\DeclareFieldFormat{urldate}{\addcomma\space\bibstring{urlseen}\space#1}


%Remove word "URL":
\DeclareFieldFormat{url}{\url{#1}}

\begin{filecontents}{\jobname2.bib}
@Article{Hansen2011,
  author  = {Hansen, Peter R. and Lunde, Asger and Nason, James M.},
  title   = {The Model Confidence Set},
  journal = {Econometrica},
  year    = {2011},
  volume  = {79},
  number  = {2},
  pages   = {453-497},
  url     = {https://EconPapers.repec.org/RePEc:ecm:emetrp:v:79:y:2011:i:2:p:453-497},
}

@WWW{Amadeus2018,
  author  = {Bureau van Dijk},
  title   = {Amadeus},
  year    = {2018},
  url     = {https://www.bvdinfo.com/en-us/our-products/data/international/amadeus},
  urldate = {2018-11-24},
}



\end{filecontents}
\addbibresource{\jobname2.bib} 

\begin{document}
\textcite{Hansen2011}
\textcite{Amadeus2018}
\printbibliography
\end{document}

However, I want to specify the citation of the data base as:

Bureau van Dijk (2018). Amadeus. Zugriff am 24.11.2018. www.bdv...

In particular I want tha first the url-date and then the internet page is listed. Furthermore they should be seperated with a dot. Finally, in contrast to the other source, I would like to replace the colon after the year in brackets with a dot.

1 Answer 1

3

For the URL and URL date you found almost everything yourself alredy, to change the order to "urldateurl" we just need to redefine the bibliography macro url+urldate.

The colon can be turned into a period for @online entries by redefining namtitledelim. Since you want different outcomes depending on the entry type (which is not something I would recommend here) we need to branch with \ifentrytype.

\documentclass[12pt, bibliography=totocnumbered, listof=totoc]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}% UTF-8 is the usual encoding in modern editors,
                           % it's even the default for modern LaTeX versions
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{csquotes}


\usepackage[backend=biber, style=ext-authoryear,
  maxbibnames=9, maxcitenames=3, uniquelist=false, uniquename=false,
  useprefix=true, giveninits=true, dashed=false
  doi=false,isbn=false,url=false,
  date=year]{biblatex}

% name formatting
\DeclareNameAlias{sortname}{family-given}
\DeclareNameWrapperFormat{sortname}{\mkbibbold{#1}}

\DeclareDelimFormat{multinamedelim}{\addslash}
\DeclareDelimAlias{finalnamedelim}{multinamedelim}

\DeclareDelimFormat[bib,biblist]{multinamedelim}{\addcomma\space}
\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
  \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
  \addspace\bibstring{and}\space}

% delimier between name (year) and title
% labelnamepunct is deprecated
\DeclareDelimFormat[bib,biblist]{nametitledelim}{%
  \ifentrytype{online}
    {\addperiod}
    {\addcolon}%
  \space
}

% format of journal, volume, number
\DeclareFieldFormat{journaltitle}{#1\isdot}
\renewcommand*{\jourvoldelim}{\addcomma\space}
\renewcommand*{\volnumdelim}{}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}

% URL date and URL format
\DefineBibliographyStrings{german}{% 
  urlseen = {Zugriff am}, 
}

\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}
\DeclareFieldFormat{url}{\url{#1}}

\renewbibmacro*{url+urldate}{%
  \usebibmacro{urldate}%
  \newunit
  \usebibmacro{url}%
}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Hansen2011,
  author  = {Hansen, Peter R. and Lunde, Asger and Nason, James M.},
  title   = {The Model Confidence Set},
  journal = {Econometrica},
  year    = {2011},
  volume  = {79},
  number  = {2},
  pages   = {453-497},
  url     = {https://EconPapers.repec.org/RePEc:ecm:emetrp:v:79:y:2011:i:2:p:453-497},
}
@online{Amadeus2018,
  author  = {Bureau van Dijk},
  title   = {Amadeus},
  year    = {2018},
  url     = {https://www.bvdinfo.com/en-us/our-products/data/international/amadeus},
  urldate = {2018-11-24},
}
\end{filecontents}
\addbibresource{\jobname.bib} 

\begin{document}
\textcite{Hansen2011}
\textcite{Amadeus2018}
\printbibliography
\end{document}

**Hansen, P. R., Lunde, A. und Nason, J. M.** (2011): „The Model Confidence Set“. In: *Econometrica*, 79(2), S. 453–497.//**Van Dijk, B.** (2018). *Amadeus*. Zugriff am 24.11.2018. https://www.bvdinfo.com/en-us/our-products/data/international/amadeus.

Please note that as in Cite in text with slashes between authors in author-year style I modernised your code to make use of more biblatex-ext features as well as new biblatex 3.12 functions to make it more compact.

1
  • Thank you very much. I noticed that and already modernised my code. Mistakenly, old one was used in the mwe.
    – Vala
    Dec 26, 2018 at 8:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .