텍스트 내 인용이 작동하지 않습니다.

텍스트 내 인용이 작동하지 않습니다.

아래 MWE를 고려하십시오.

를 제외한 모든 인용이 작동합니다 england2002. 단지 반환영국2002그러나 인용은 없습니다. 이 문제는 어떻게 해결될 수 있나요?

\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}

답변1

다음은 몇 가지 수정 사항이 포함된 코드의 실제 예제입니다.

\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} 

다음 항목도 참조하세요.뒷면. 온라인 TeX 환경인 Overleaf에 대한 링크는 MWE를 재현하는 데 유용할 수 있습니다.

관련 정보