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

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条回答
论坛 github.com/C
2020-01-01 23:12
你现在的写法相当于 ```tex \begin{document} \cite{biederman1987recognition} \end{document} \bibliographystyle{plain}% \bibliography{document} ``` 这是不对的。`\end{document}` 之后的内容会直接忽略,你要把 bib 相关的命令提前。

一周热门 更多>