I'm currently writing my thesis, and due to the fact that I already have close to 30 sources, I want to use the vancouver/numeric bibliography style instead of APA. However, I run into some problems when trying to use either of them. Both do not show the year of my bib entries, although they are present in my .bib file.
This is the code that is in my main.tex. Please note that I did not write the documentclass or the main myself, I've added things, but I'm not the creator.
\usepackage[
style=apa,
backend=biber,
sortcites=true,
sorting=none,
url=true,
doi=true,
hyperref=false,
backref=false,
natbib=false,
]{biblatex}
\newcommand{\mkbibnodate}{n\adddot d\adddot}
\AtEveryCitekey{\iffieldundef{labelyear}{\restorefield{labelyear}{\mkbibnodate}}{}}
\AtEveryBibitem{\iffieldundef{labelyear}{\restorefield{year}{\mkbibnodate}}{}}
\DeclareLanguageMapping{dutch}{dutch-apa}
\DefineBibliographyStrings{dutch}{andothers = {et al.}}
\addbibresource{bib.bib}
\setlength{\bibitemsep}{1.5 \itemsep}
This is the bib entry that can be seen in the images
@book{kleinwoud_stapersma,
author = {Hans {Klein Woud} and D. Stapersma},
title = {{Design of Propulsion and Electric Power Generation Systems}},
edition = {},
pages = {},
year = {2002},
isbn = {978-1-902536-47-9},
URL = {},
publisher = {IMarEST, Institute of Marine Engineering, Science and Technology}
}
Does anyone know what possibly could lead to this problem, and what I could do to fix this? If I need to proivde any more information, please let me know.
I found this question. The problem here was a missing ,
. I checked my .bib, all ,
and {}
are present. I do not have any errors, except a warning that says the ISBN in my bib entry is invalid.
Thanks in advance!
\newcommand
and the two following lines (starting with\AtEveryCitekey
and\AtEveryBibitem
) seem very suspicious. Delete them and see if that leads to some improvement.