Zitate im Text funktionieren nicht

Zitate im Text funktionieren nicht

Betrachten Sie das MWE unten.

Alle Zitate funktionieren, außer england2002. Es gibt nurengland2002aber keine Zitate. Wie kann das gelöst werden?

\documentclass[a4paper,12pt]{report}
\usepackage[backend=biber, natbib=true, style=authoryear, uniquename=false]   {biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{renshaw1998,
title={A stochastic model underlying the chain-ladder technique},
author={Renshaw, Arthur E and Verrall, Richard J},
journal={British Actuarial Journal},
volume={4},
number={04},
pages={903--923},
year={1998},
publisher={Cambridge Univ Press}
}

@article{england2002,
title={Stochastic claims reserving in general insurance},
author={England, Peter D and Verrall, Richard J},
journal={British Actuarial Journal},
volume={8},
number={03},
pages={443--518},
year={2002},
publisher={Cambridge Univ Press}
}

@book{efron1994,
title={An introduction to the bootstrap},
author={Efron, Bradley and Tibshirani, Robert J},
year={1994},
publisher={CRC press}
}
\end{filecontents}

\begin{document}[a4paper,12pt]

I cite  \citet{renshaw1998} and \citet{england2002} and \citet{efron1994}
\end{document}

Antwort1

Hier ist ein funktionierendes Beispiel Ihres Codes mit einigen Korrekturen.

\documentclass[a4paper,12pt]{report}
%!!! changed, use of biblatex moved after filecontents
\usepackage{filecontents}
\begin{filecontents}{bib}    %!!! changed, jobname removed
@article{renshaw1998,
title={A stochastic model underlying the chain-ladder technique},
author={Renshaw, Arthur E and Verrall, Richard J},
journal={British Actuarial Journal},
volume={4},
number={04},
pages={903--923},
year={1998},
publisher={Cambridge Univ Press}
}

@article{england2002,
title={Stochastic claims reserving in general insurance},
author={England, Peter D and Verrall, Richard J},
journal={British Actuarial Journal},
volume={8},
number={03},
pages={443--518},
year={2002},
publisher={Cambridge Univ Press}
}

@book{efron1994,
title={An introduction to the bootstrap},
author={Efron, Bradley and Tibshirani, Robert J},
year={1994},
publisher={CRC press}
}
\end{filecontents}
\usepackage[style=alphabetic,citestyle=alphabetic,backend=biber,backref=true]{biblatex}    %!!! changed and moved here
\addbibresource{bib}    %!!! new, declearation inserted
\DeclareFieldFormat[inbook]{citetitle}{#1}    %!!! new, optional
\DeclareFieldFormat[inbook]{title}{#1}    %!!! new, optional

\begin{document}    %!!! changed, declarion already handled in documentclass

I cite \cite{renshaw1998} and \cite{england2002} and \cite{efron1994}        %!!! changed

% bibliography    %!!! new, optional
\printbibliography    %!!! new, optional
\end{document} 

Siehe auch inUmseitig. Der Link zu Overleaf – einer Online-TeX-Umgebung – könnte beim Reproduzieren des MWE hilfreich sein.

verwandte Informationen