
我目前正在写论文,使用的是我们大学的模板。在.bib
用引文填充文件并将其添加到我的文本中时\cite{name}
,我总是出错。我附加了一些文件,如果不够,请告诉我。提前谢谢
亲切的问候
皮特
\clearpage
%you have to add the bibliography items in mijnbibliografie.bib. Most editors offer a menu for this. Also, in google scholar (settings, advanced) you can turn on @get bibtex citation@, this gives you a text to copy in the bibfile.
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{apalike}
\bibliography{biblio}
\vfill
biblio.bib
来自我的文件的代码
@article{ooijenvrabec,
title={Does the GDPR enhance consumers’ control over personal data? An analysis from a behavioural perspective},
author={van Ooijen, Iris and Vrabec, Helena U},
journal={Journal of consumer policy},
volume={42},
number={1},
pages={91--107},
year={2019},
publisher={Springer}
}
引用的代码示例
This is example text to make clear waht i did \cite{ooijenvrabec}.
控制台中的一些错误:
Package natbib Warning: Empty `thebibliography' environment on input line 3.
Package natbib Warning: There were undefined citations.
BibTeX: I didn't find a database entry for "ooijenvrabec"
答案1
很难调试片段,所以这里有一个测试文档
\documentclass{article}
\begin{document}
There has been considerable criticism on the efficacy of the GDPR,
many researchers consider this law does not cover enough ground to
strengthen the data subject’s control conveniently
\cite{ooijenvrabec}.
\bibliographystyle{apalike}
\bibliography{biblio}
\end{document}
使用 biblio.tex
@article{ooijenvrabec,
title={Does the GDPR enhance consumers’ control over personal data? An analysis from a behavioural perspective},
author={van Ooijen, Iris and Vrabec, Helena U},
journal={Journal of consumer policy},
volume={42},
number={1},
pages={91--107},
year={2019},
publisher={Springer}
}
运行 pdflatex-bibtex-pdflatex (在 Overleaf 中是自动的)会产生
因此,如果引用对您不起作用,那么您的代码中一定有一个未显示的 latex 或 bibtex 错误,显示日志中的任何错误或制作一个产生失败引用的扩展示例。