当前位置:网站首页>Latex 编译报错 I found no \bibstyle & \bibdata & \citation command
Latex 编译报错 I found no \bibstyle & \bibdata & \citation command
2022-07-02 06:22:00 【呆呆象呆呆】
问题描述
编译报错显示I found no \bibstyle command
编译报错显示 I found no \bibdata command
编译报错显示 I found no \citation command

问题原因
虽然我查了一圈网上所有的结果发现只有有两种可能会报这个错误
问题原因一
总结可以认为是使用了错误的编译链
如果使用的编译链有使用到bibTex工具
而bibTex会识别到没有出现引用的动作 \cite{****},进而报错
注:bibTex需要保证所有的参考文献均在上文中出现,如果需要引用未出现过的文章,应该使用\nocite 或者\nocites 命令
问题原因二
当我们在使用LaTeX进行论文排版时,由于.tex源文件编译的次数不够常会出现各种报错,现在问题出现在参考文献编译过程以及报错的原因分析。
biblatex排版参考文献的原理:当使用biblatex排版参考文献时,编译四次步骤如下:
- Step1:
xelatex等命令编译.tex源文件生成.aux辅助文件和.bcf引用文件; - Step2:
biber命令处理.bcf引用文件记录的参考文件格式、引用条目等信息,生成.bbl 文献列表,biblatex宏包识别利用其中的信息输出引用标签和文献表; - Step3:
xelatex等命令将.tex源文件再编译一遍,读入.bbl文献列表,结合.aux辅助文件生成正确引用和著录表; - Step4: 若需要反向超链接,则需要在
biblatex宏包设置选项backref,再使用xelatex编译,生成带文献反向超链接PDF。
当运行LaTeX出现下面报错:
I found no bibdata command—while reading file*.aux
I found no bibstyle command—while reading file ***.aux
I found no citation commands—while reading file ***.aux
当出现这个报错时,说明编译的步骤停留在Step2。如果文章没有明显错误,检查.tex源文件同级文件夹下是否有.bib文献数据库以及.bst文献样式。
若无.bib和.bst文件,.bst文献样式需要根据不同的要求去官网下载。
若有.bib和.bst文件,查看.bbl文献列表是否成功生成,使用bibtex重新编译.bib文件。
问题原因三
仍出现报错,查看\bibliography{}语句是否编译,检查顺序是否正确:
\documentclass{article}
\bibliographystyle{plain} % .bst文件样式
\begin{document}
\bibliography{***} % .bib文件名
\end{document}
之所以提示没有找到bibdata主要是英文文献选中的bibliography{}语句没有编译,因此我们怀疑是将\end{document}的语句位置放
举一个错误的例子

解决方案
问题原因一的解决方案
使用不带bibTex的编译链进行编译(编译链的配置可以参考我的另外一篇blog进行多个链路的配置)

或者可以添加一个参考文献你就会发现报错自动消失了


问题原因二的解决方案
重新使用别的更加完备的编译链
编译链的具体配置可以参考这个博客里面有比较完整的配置文件直接复制放在教程中的相应的文职即可
VSCODE 安装LATEX环境,参数配置,常见问题解决_呆呆象呆呆的博客-CSDN博客
问题原因三的解决方案
确认一下几句话的位置即可,确保\end{document}在\bibliography{text_bib}后面即可
\documentclass{article}
\usepackage{cite}
\begin{document}
$\sum_{i=1}^{n}a_i$
\cite{saederup2019comparison}
\bibliographystyle{plain}
\bibliography{text_bib}
\end{document}
参考文献
latex系列—Latex参考文献的引用_xys430381_1的专栏-CSDN博客_latex文献引用
(VSCode) LaTeX 所有文件报 no \citation no\bibdata bo \bibstyle 错误_ZXYhappiness的博客-CSDN博客
latex常见错误之I found no \bibdata command—while reading file main_huang_shao1的博客-CSDN博客
bibtex - “I found no \citation commands while reading myFile.aux” - TeX - LaTeX Stack Exchange
biblatex - No \citation, \bibdata or \bibstyle command - TeX - LaTeX Stack Exchange
边栏推荐
猜你喜欢

ShardingSphere-JDBC篇

查询GPU时无进程运行,但是显存却被占用了

数据科学【九】:SVD(二)

The intern left a big hole when he ran away and made two online problems, which made me miserable

QQ email cannot receive the email sent by Jenkins using email extension after construction (timestamp or auth...)

Cglib agent - Code enhancement test

20201002 VS 2019 QT5.14 开发的程序打包

Redis——Cluster数据分布算法&哈希槽

apt命令报证书错误 Certificate verification failed: The certificate is NOT trusted
![Data science [9]: SVD (2)](/img/2c/f1a8c3ff34ff3f3cc6e26157a32bfd.png)
Data science [9]: SVD (2)
随机推荐
Sentinel rules persist to Nacos
标签属性disabled selected checked等布尔类型赋值不生效?
底层机制Mvcc
sprintf_ How to use s
Summary of advertisement business bug replay
Amazon AWS data Lake Work Pit 1
分布式事务 :可靠消息最终一致性方案
计算属性普通函数写法 和 set get 写法
数据科学【九】:SVD(二)
Flask-Migrate 检测不到db.string() 等长度变化
The intern left a big hole when he ran away and made two online problems, which made me miserable
重载全局和成员new/delete
日志 - 7 - 记录一次丢失文件(A4纸)的重大失误
Sublime Text 配置php编译环境
Shardingsphere JDBC
提高用户体验 防御性编程
Redis——Cluster数据分布算法&哈希槽
Uploading attachments using Win32 in Web Automation
Pytest (3) parameterize
Selenium+msedgedriver+edge browser installation driver pit