whutug / whu-thesis

:memo: 武汉大学毕业论文 LaTeX 模版 2024
LaTeX Project Public License v1.3c
908 stars 200 forks source link

使用的是Bibtex进行文献管理,最近开始出现编译错误(之前都正常 #203

Closed xingyun3l closed 1 year ago

xingyun3l commented 1 year ago

描述问题

之前编译都正常,参考文献的.bib文件放在了/ref文件夹下,名字为refs.bib: element = { abstract = {pages/abstract}, abstract* = {pages/enabstract}, bibliography = {ref/refs}, achievements = {pages/achievements}, projects = {pages/projects}, authorization = {pages/authorization_blind.pdf}, %appendix = {pages/appendix}, thanks = {pages/thanks}, %innovation = {pages/innovation.pdf}, }

出现的错误信息是: This is BibTeX, Version 0.99d (TeX Live 2021/W32TeX) The top-level auxiliary file: whu-thesis-demo.aux The style file: data/gbt7714-2005-numerical.bst I found no \bibdata command---while reading file whu-thesis-demo.aux ……接下来是一大串参考文献……

我的构建命令是:txs:///xelatex | txs:///bibtex | txs:///xelatex | txs:///xelatex

我尝试在.aux文件里添加了.bib文件的地址: \bibliography{ref/refs},但是出现了其他的错误。

同组的其他人正常写的时候没有遇到参考文献的编译错误,网络上说是begin/end document的命令位置有问题,但是我没有对文件做任何多余处理,之前一切正常。

note286 commented 1 year ago

根据你的描述无法复现你的问题,请给出一个最简的能够复现的示例,从\documentclass\end{document}都要。

sikouhjw commented 1 year ago

建议将你的文件上传到 Overleaf,如果编译失败,那就是你修改了某些内容。

xingyun3l commented 1 year ago

已经解决了,是因为pages里面写的公式有问题,从头改了一遍之后没有再出现这个情况。