win11 texlive2022 vscode
网络回答不太清楚,只是要求更新宏包:(参见:https://tex.stackexchange.com/questions/634517/biber-not-working-with-biblatex-after-the-update-mac-os-miktex-texstudio)
问题如图:
宏包全部更新仍然如此。奇怪的是:bib版本明明是2.17(参见下图),但上面的报错显示是2.16?不知问题出在哪里?
你确定一下你的系统中是否有两个biber?
命令行查一下:使用如 which biber 或where biber等命令。或者用everything搜索看一下。
which biber
/d/texlive/2022/bin/win32/biber
你的texlive是重新安装的还是从texliev2021升级的?
你再查一下你的环境变量?是否texlive2022的路径在里面?
path
PATH=d:\Anaconda3;d:\Anaconda3\Library\mingw-w64\bin;d:\Anaconda3\Library\usr\bin;d:\Anaconda3\Library\bin;d:\Anaconda3\Scripts;d:\Anaconda3\bin;d:\Anaconda3\condabin;D:\texlive\2022\bin\win32
texlive2022默认就是2.17了。
biber --version
biber version: 2.17
你可以先用命令行测试一下,再用IDE去编译。
xelatex jobname
biber jobname
最后你再把这些命令的运行结果贴出来看一下,如此方便找到问题所在。
huzhen,您好,首先谢谢您的回答。按您的方法测试效果如下:
这个biber version 2.17路径是C:texlive2022binwin32biber.exe下的,是32位的吗?那是不是要在path里将64位、32位的位置颠倒过来,也就是将32位的放在上面呢?
运行fduthesis宏包时也出现了类似的版本问题,其实我通过宏包管理器在管理员模式下都更新了几次,并且从(https://github.com/stone-zeng/fduthesis)Clone后也没能很好解决?2个问题是同一个源头吗?
命令行测试结果如下:(biber try 还是出现了IDE(VSCODE)中的问题)
Microsoft Windows [版本 10.0.22000.675]
(c) Microsoft Corporation。保留所有权利。
C:UsersAdministrator>xelatex try
This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex)
restricted write18 enabled.
entering extended mode
(./try.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-05-04>
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctexart.cls
(c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/l3kernel/expl3.sty
(c:/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-xetex.def))
Document Class: ctexart 2021/12/12 v2.5.8 Chinese adapter for class article (CT
EX)
(c:/texlive/2022/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(c:/texlive/2022/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctexhook.sty)
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctexpatch.sty)
(c:/texlive/2022/texmf-dist/tex/latex/base/fix-cm.sty
(c:/texlive/2022/texmf-dist/tex/latex/base/ts1enc.def))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctexopts.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(c:/texlive/2022/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def
(c:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
(c:/texlive/2022/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty)
(c:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec.sty
(c:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(c:/texlive/2022/texmf-dist/tex/latex/base/fontenc.sty)
(c:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(c:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg)))
(c:/texlive/2022/texmf-dist/tex/latex/zhnumber/zhnumber.sty
(c:/texlive/2022/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.d
ef (c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctex-c5size.clo)
(c:/texlive/2022/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.sty
(c:/texlive/2022/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(c:/texlive/2022/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(c:/texlive/2022/texmf-dist/tex/generic/iftex/iftex.sty)
(c:/texlive/2022/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty))
(c:/texlive/2022/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(c:/texlive/2022/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2022/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(c:/texlive/2022/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty))
(c:/texlive/2022/texmf-dist/tex/latex/logreq/logreq.sty
(c:/texlive/2022/texmf-dist/tex/latex/logreq/logreq.def))
(c:/texlive/2022/texmf-dist/tex/latex/base/ifthen.sty)
(c:/texlive/2022/texmf-dist/tex/latex/url/url.sty)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-dm.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-unicode.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-compat.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/numeric-comp.bbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)))
(c:/texlive/2022/texmf-dist/tex/generic/xstring/xstring.sty
(c:/texlive/2022/texmf-dist/tex/generic/xstring/xstring.tex)))
(c:/texlive/2022/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/cbx/numeric-comp.cbx))
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-case-expl3.sty)) (./try.aux)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/lbx/english.lbx) (./try.bbl)
LaTeX Warning: Citation 'caimin2006' on page 1 undefined on input line 7.
LaTeX Warning: Empty bibliography on input line 8.
[1] (./try.aux)
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) try
(biblatex) and rerun LaTeX afterwards.
)
Output written on try.pdf (1 page).
Transcript written on try.log.
C:UsersAdministrator>biber try
INFO - This is Biber 2.16
INFO - Logfile is 'try.blg'
INFO - Reading 'try.bcf'
ERROR - Error: Found biblatex control file version 3.8, expected version 3.7.
This means that your biber (2.16) and biblatex (3.17) versions are incompatible.
See compat matrix in biblatex or biber PDF documentation.
INFO - ERRORS: 1
C:UsersAdministrator>xelatex try
This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex)
restricted write18 enabled.
entering extended mode
(./try.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-05-04>
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctexart.cls
(c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/l3kernel/expl3.sty
(c:/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-xetex.def))
Document Class: ctexart 2021/12/12 v2.5.8 Chinese adapter for class article (CT
EX)
(c:/texlive/2022/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(c:/texlive/2022/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctexhook.sty)
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctexpatch.sty)
(c:/texlive/2022/texmf-dist/tex/latex/base/fix-cm.sty
(c:/texlive/2022/texmf-dist/tex/latex/base/ts1enc.def))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctexopts.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(c:/texlive/2022/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def
(c:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
(c:/texlive/2022/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty)
(c:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec.sty
(c:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(c:/texlive/2022/texmf-dist/tex/latex/base/fontenc.sty)
(c:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(c:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg)))
(c:/texlive/2022/texmf-dist/tex/latex/zhnumber/zhnumber.sty
(c:/texlive/2022/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.d
ef (c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctex-c5size.clo)
(c:/texlive/2022/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.sty
(c:/texlive/2022/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(c:/texlive/2022/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(c:/texlive/2022/texmf-dist/tex/generic/iftex/iftex.sty)
(c:/texlive/2022/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty))
(c:/texlive/2022/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(c:/texlive/2022/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2022/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(c:/texlive/2022/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty))
(c:/texlive/2022/texmf-dist/tex/latex/logreq/logreq.sty
(c:/texlive/2022/texmf-dist/tex/latex/logreq/logreq.def))
(c:/texlive/2022/texmf-dist/tex/latex/base/ifthen.sty)
(c:/texlive/2022/texmf-dist/tex/latex/url/url.sty)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-dm.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-unicode.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-compat.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/numeric-comp.bbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)))
(c:/texlive/2022/texmf-dist/tex/generic/xstring/xstring.sty
(c:/texlive/2022/texmf-dist/tex/generic/xstring/xstring.tex)))
(c:/texlive/2022/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/cbx/numeric-comp.cbx))
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-case-expl3.sty)) (./try.aux)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/lbx/english.lbx) (./try.bbl)
LaTeX Warning: Citation 'caimin2006' on page 1 undefined on input line 7.
LaTeX Warning: Empty bibliography on input line 8.
[1] (./try.aux)
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) try
(biblatex) and rerun LaTeX afterwards.
)
Output written on try.pdf (1 page).
Transcript written on try.log.
C:UsersAdministrator>xelatex try
This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex)
restricted write18 enabled.
entering extended mode
(./try.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-05-04>
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctexart.cls
(c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/l3kernel/expl3.sty
(c:/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-xetex.def))
Document Class: ctexart 2021/12/12 v2.5.8 Chinese adapter for class article (CT
EX)
(c:/texlive/2022/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(c:/texlive/2022/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctexhook.sty)
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctexpatch.sty)
(c:/texlive/2022/texmf-dist/tex/latex/base/fix-cm.sty
(c:/texlive/2022/texmf-dist/tex/latex/base/ts1enc.def))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctexopts.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(c:/texlive/2022/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def
(c:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
(c:/texlive/2022/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty)
(c:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec.sty
(c:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(c:/texlive/2022/texmf-dist/tex/latex/base/fontenc.sty)
(c:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(c:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg)))
(c:/texlive/2022/texmf-dist/tex/latex/zhnumber/zhnumber.sty
(c:/texlive/2022/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.d
ef (c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/ctex-c5size.clo)
(c:/texlive/2022/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def))
(c:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.sty
(c:/texlive/2022/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(c:/texlive/2022/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(c:/texlive/2022/texmf-dist/tex/generic/iftex/iftex.sty)
(c:/texlive/2022/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty))
(c:/texlive/2022/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(c:/texlive/2022/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2022/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(c:/texlive/2022/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty))
(c:/texlive/2022/texmf-dist/tex/latex/logreq/logreq.sty
(c:/texlive/2022/texmf-dist/tex/latex/logreq/logreq.def))
(c:/texlive/2022/texmf-dist/tex/latex/base/ifthen.sty)
(c:/texlive/2022/texmf-dist/tex/latex/url/url.sty)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-dm.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-unicode.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-compat.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.def)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/numeric-comp.bbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/standard.bbx)))
(c:/texlive/2022/texmf-dist/tex/generic/xstring/xstring.sty
(c:/texlive/2022/texmf-dist/tex/generic/xstring/xstring.tex)))
(c:/texlive/2022/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/cbx/numeric-comp.cbx))
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.cfg)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-case-expl3.sty)) (./try.aux)
(c:/texlive/2022/texmf-dist/tex/latex/biblatex/lbx/english.lbx) (./try.bbl)
LaTeX Warning: Citation 'caimin2006' on page 1 undefined on input line 7.
LaTeX Warning: Empty bibliography on input line 8.
[1] (./try.aux)
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) try
(biblatex) and rerun LaTeX afterwards.
)
Output written on try.pdf (1 page).
Transcript written on try.log.
C:UsersAdministrator>try.pdf
C:UsersAdministrator>
try.pdf显然有问题,不是gb7714-2015格式参考文献。
这个问题通过在path里将32位移到64位之上,可以用了。