在多个文件中调用参考文献

2020-01-01 23:08发布

主文件document.tex如下:tex %导言区 \documentclass{article} \usepackage{ctex} \input{test} \bibliographystyl...

主文件document.tex如下:
tex %导言区 \documentclass{article} \usepackage{ctex} \input{test} \bibliographystyle{plain}% \bibliography{document} ![](/static/images/ext/zip.gif)<a href="https://static.latexstudio.net/data/attach/202001/4d1db93832a193e.zip" target="_blank">MWE.zip</a>
input的test.tex文件如下:
tex
\clearpage
\begin{document}
\cite{biederman1987recognition}
\end{document}

bib文件如下:


tex
@article{biederman1987recognition,
title={Recognition-by-components: a theory of human image understanding.},
author={Biederman, Irving},
journal={Psychological review},
volume={94},
number={2},
pages={115},
year={1987},
publisher={American Psychological Association}
}

运行编译之后出现如下错误:
开始 : bibtex.exe “document”

This is BibTeX, Version 0.99d (TeX Live 2019/W32TeX)
The top-level auxiliary file: document.aux
I found no \bibdata command—-while reading file document.aux
I found no \bibstyle command—-while reading file document.aux
(There were 2 error messages)

文献的引用不能正常表示出来

3条回答
document.tex: ```tex \documentclass{article} \usepackage{ctex} \bibliographystyle{plain}% \input{test} ``` test.tex: ```tex \begin{document} \clearpage \cite{biederman1987recognition} \bibliography{document} \end{document} ``` 用 `xelatex` 编译即可

一周热门 更多>