0

For my thesis I have to adhere to my university's standard (for thesis layouts).

With the following MWE I receive the desired result for printing URLs in the bibliography, but the field for lastchecked isn't printed:

% !TeX program = lualatex
\documentclass[ngerman]{scrreprt}
\usepackage{fontspec}
\usepackage{babel}
\usepackage{hyperref}

\begin{filecontents}{MWE.bib}
@url{Google,
    author = {{Google Ireland Limited}},
    title = {Google},
    url = {https://google.de},
    urldate = {1997-09-15},
    lastchecked = {2023-04-16}
    }
\end{filecontents}

\usepackage[%
backend=biber,
style=numeric,
sorting=none
]{biblatex}

\addbibresource{MWE.bib}

\DeclareFieldFormat[url]{url}{<\url{#1}>}
\DeclareFieldFormat[url]{urldate}{\mkbibparens{#1}}
\DeclareFieldFormat[url]{lastchecked}{\mkbibbrackets{Zugriff \printdate{#1}}}

\renewcommand{\newunitpunct}{\addcomma\addspace}

\DeclareBibliographyDriver{url}{%URLs
    \usebibmacro{author}%
    \setunit{\addcolon\addnbspace}%
    \usebibmacro{title}%
    \newunit
    \usebibmacro{url}%
    \setunit{\addnbspace}
    \usebibmacro{urldate}%
    \setunit{\addnbspace}
    \printfield{lastchecked}% is not printed 
}

\begin{document}
    \cite{Google}
    \printbibliography
\end{document}

As literature management program I am using BibDesk which gives me the two different dates urldate (the release date of of the URL/content) as well as lastchecked (the last time I visited the URL) which I both need due to the aforementioned standard.

1 Answer 1

2

The default entry types and field types in BibDesk are for BibTeX, and are different from those for BibLaTeX. (See BibLaTeX cheat sheet, but ignore that it says "BibTeX database file" in some places; it should say "BibLaTeX database file" instead.)

The lastchecked field is for BibTeX. The equivalent in BibLaTeX is urldate. The release date of the URL/content should go in date.

See BibLaTeX Types and Fields on the BibDesk wiki for information about how to configure BibDesk's entry types and field types for BibLaTeX.

(However, keep in mind that Biber can understand most BibTeX field types, so if you have already built your bibliographic database using BibTeX field types, you may want to keep most of BibDesk's default configuration and make only a few changes to the incompatible fields that are causing your problem.)

You must log in to answer this question.

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