今天上叶的行为很奇怪,我不明白引用和引用有什么问题。我尝试了一个非常简单的单行代码,但得到了错误。请让我知道我的.tex和.bib文件出了什么问题
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\begin{document}
Einsteins stated the \cite{einstein}
\bibliography{sample.bib}
\end{document}这是我的sample.bib
@article{einstein,
author = "Albert Einstein",
title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
[{On} the electrodynamics of moving bodies]",
journal = "Annalen der Physik",
volume = "322",
number = "10",
pages = "891--921",
year = "1905",
DOI = "http://dx.doi.org/10.1002/andp.19053221004",
keywords = "physics"
}发布于 2021-09-29 15:58:19
两个问题:
必须使用\bibliographystyle{...}设置
不在\bibliography{...}中添加文件类型的
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\begin{document}
Einsteins stated the \cite{einstein}
\bibliographystyle{plain}
\bibliography{sample}
\end{document}

https://stackoverflow.com/questions/69379605
复制相似问题