sjtug / SJTUThesis

上海交通大学 LaTeX 论文模板 | Shanghai Jiao Tong University LaTeX Thesis Template
Apache License 2.0
3.33k stars 796 forks source link

最新版的biber流程有问题,citation都找不到 #767

Closed PaleNeutron closed 2 years ago

PaleNeutron commented 2 years ago

问题描述:

直接clone下来make不通过,biber流程似乎有问题,回退到1.0版之后make一切正常

系统信息:

日志信息:

main.log

=== TeX engine is 'XeTeX'
Latexmk: Non-existent bbl file 'main.bbl in line'
 No file main.bbl.
Latexmk: References changed.
Latexmk: References changed.
Latexmk: References changed.
Latexmk: Log file says output to 'main.xdv'
Latexmk: List of undefined refs and citations:
  Citation 'CSTAM1990' on page 6 undefined on input line 137
  Citation 'Cheng1999' on page 6 undefined on input line 133
  Citation 'Cheng1999' on page 6 undefined on input line 138
  Citation 'Christine1998' on page 6 undefined on input line 140
  Citation 'Ding2000' on page 6 undefined on input line 139
  Citation 'GBT16159' undefined on input line 145
  Citation 'GBT2659' on page 6 undefined on input line 138
  Citation 'HBLZ2001' on page 6 undefined on input line 138
  Citation 'He1999' on page 7 undefined on input line 29
  Citation 'Hopkinson1999' on page 6 undefined on input line 135
  Citation 'Jiang1989' on page 6 undefined on input line 135
  Citation 'Jiang1989' on page 6 undefined on input line 138
  Citation 'Jiang1998' on page 6 undefined on input line 136
  Citation 'Jiang1999' on page 6 undefined on input line 140
  Citation 'LSC1957' on page 6 undefined on input line 133
  Citation 'Li1999' on page 6 undefined on input line 135
  Citation 'Li1999' on page 6 undefined on input line 139
  Citation 'Li2000' on page 6 undefined on input line 139
  Citation 'Schinstock2000' undefined on input line 145
  Citation 'WHO1970' on page 6 undefined on input line 137
  Citation 'Wen1990' undefined on input line 145
  Citation 'Xiao2001' on page 6 undefined on input line 140
  Citation 'Yang1999' undefined on input line 145
  Citation 'Yu2001' on page 6 undefined on input line 133
  Citation 'Yu2001' on page 6 undefined on input line 136
  Citation 'Zhang1998' on page 6 undefined on input line 137
  Reference `algo:algorithm' on page 12 undefined on input line 270
  Reference `fig:SRR' on page 8 undefined on input line 42
  Reference `fig:bisubcaptionbox' on page 8 undefined on input line 87
  Reference `fig:cn_100t' on page 7 undefined on input line 19
  Reference `fig:flow_chart' on page 16 undefined on input line 5
  Reference `fig:parallel1' on page 8 undefined on input line 55
  Reference `fig:parallel2' on page 8 undefined on input line 55
  Reference `fig:subfigure' on page 9 undefined on input line 105
  Reference `tab:footnote' on page 10 undefined on input line 166
  Reference `tab:performance' on page 11 undefined on input line 199
  Reference `thm:res' on page 6 undefined on input line 109
Latexmk: applying rule 'biber main'...
Rule 'biber main': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'main.bcf'
------------
Run number 1 of rule 'biber main'
------------
------------
Running 'biber  "main.bcf"'
------------
INFO - This is Biber 2.16
INFO - Logfile is 'main.blg'
INFO - Reading 'main.bcf'
INFO - Found 22 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'bibdata/thesis.bib' for section 0
INFO - LaTeX decoding ...
INFO - Found BibTeX data source 'bibdata/thesis.bib'
Latexmk: Found biber source file(s) [bibdata/thesis.bib main.bcf]
Latexmk: Summary of warnings from last run of *latex:
  Latex failed to resolve 14 reference(s)
  Latex failed to resolve 27 citation(s)
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  biber main: Command for 'biber main' gave return code 2
'xelatex -synctex=1 -no-pdf -file-line-error -halt-on-error -interaction=nonstopmode -recorder  "main.tex"': time = 5
'biber  "main.bcf"': time = 1.93
Accumulated processing time = 7.24
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
make: *** [main.pdf] Error 12
skyzh commented 2 years ago

清理一下缓存试试?latexmk -C 或者 make clean

PaleNeutron commented 2 years ago

都试过了,并没有什么用

skyzh commented 2 years ago

biber main 有啥提示吗?提供一下 main.blg

PaleNeutron commented 2 years ago

main.blg.log 这是make后的main.blg

这是单独运行biber main的stdout:

$ biber main
INFO - This is Biber 2.16
INFO - Logfile is 'main.blg'
INFO - Reading 'main.bcf'
INFO - Found 22 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'bibdata/thesis.bib' for section 0
INFO - LaTeX decoding ...
INFO - Found BibTeX data source 'bibdata/thesis.bib'

但是main.bbl是0 bytes

skyzh commented 2 years ago

对比正常的 biber 输出:

[0] Config.pm:311> INFO - This is Biber 2.16
[0] Config.pm:314> INFO - Logfile is 'main.blg'
[52] biber-darwin:340> INFO - === Sun Feb 20, 2022, 16:59:41
[64] Biber.pm:415> INFO - Reading 'main.bcf'
[156] Biber.pm:952> INFO - Found 22 citekeys in bib section 0
[168] Biber.pm:4340> INFO - Processing section 0
[176] Biber.pm:4531> INFO - Looking for bibtex format file 'bibdata/thesis.bib' for section 0
[177] bibtex.pm:1689> INFO - LaTeX decoding ...
[194] bibtex.pm:1494> INFO - Found BibTeX data source 'bibdata/thesis.bib'
[231] Utils.pm:395> WARN - legacy year field '1957/1990' in entry 'LSC1957' is not an integer - this will probably not sort properly.
[365] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable'
[365] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized'
[365] Biber.pm:4168> INFO - Sorting list 'none/global//global/global' of type 'entry' with template 'none' and locale 'en-US'
[365] Biber.pm:4174> INFO - No sort tailoring available for locale 'en-US'
[378] bbl.pm:654> INFO - Writing 'main.bbl' with encoding 'UTF-8'
[389] bbl.pm:757> INFO - Output to main.bbl
[389] Biber.pm:128> INFO - WARNINGS: 1

感觉是 biber 跑到一半因为奇怪的原因崩溃了?

可以考虑重启一下电脑,或者用 https://tex.stackexchange.com/questions/140814/biblatex-biber-fails-with-a-strange-error-about-missing-recode-data-xml-file 的方法清理一下 biber cache(

PaleNeutron commented 2 years ago

rm -rf biber --cache

搞定了

merak0514 commented 10 months ago

我也遇到类似的问题,换成 bibtex 之后没问题了,编译好像也更快了