编辑1

编辑1

自从我更新了 MiKTeX 之后,我在编译参考文献时遇到了问题。如果我只引用一个参考文献,它工作正常,\cite{a}但是当我想引用多个参考文献时,\cite{a, b, c}我收到以下错误:

! Undefined control sequence.
<argument> \blx@tempb 

l.243 ...\cite{Verre2012a, Verre2012b, Verre2011}.

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

我尝试删除所有生成的文件 -> 不起作用

我尝试重新安装 MiKTeX、Texmaker -> 不起作用

我已经尝试寻找解决方案,但没有找到相关内容

这是我使用的设置

\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage{mathpazo} 
\usepackage{chemist}    
\usepackage{titletoc}   
\usepackage{epigraph} 
\usepackage{amsmath,amssymb}    
\usepackage{pgf}        
\usepackage{amsmath}
\usepackage{color}
\usepackage{graphicx}
 \usepackage{booktabs}
 \usepackage{multirow}
\usepackage{rotating}
\usepackage{nameref}
\usepackage[section]{placeins}      
\usepackage{indentfirst}
\usepackage{framed}
\usepackage{verbatim}   %\begin{comment} \end{comment}
\usepackage{makeidx}
\usepackage[many]{tcolorbox}    
\newtcolorbox{mybox}[1]{%
    tikznode boxed title,
    enhanced,
    arc=0mm,
    interior style={white},
    attach boxed title to top center= {yshift=-\tcboxedtitleheight/2},
    fonttitle=\bfseries,
    colbacktitle=white,coltitle=black,
    boxed title style={size=normal,colframe=white,boxrule=0pt},
    title={#1}}
\usepackage[backend=biber ,natbib=true ,style=ieee,defernumbers=false]{biblatex}
\addbibresource{Chapters/Chapter_introduction/chap_intro.bib}
\include{Chapters/Chapter_introduction/chap_intro}

以下是 .bib 文件的片段

@article{Verre2012a,
author = {Verre, R. and Fleischer, K. and Ualibek, O. and Shvets, I. V.},
journal = {Applied Physics Letters},
number = {3},
title = {{Self-assembled broadband plasmonic nanoparticle arrays for sensing applications}},
volume = {100},
year = {2012}
}

@article{Verre2012b,
author = {Verre, R and Fleischer, K and McGilp, J F and Fox, D and Behan, G and Zhang, H and Shvets, I V},
journal = {Nanotechnology},
number = {3},
pages = {035606},
title = {{Controlled in situ growth of tunable plasmonic self-assembled nanoparticle arrays}},
volume = {23},
year = {2012}
}

@article{Verre2012,
author = {Verre, R. and Fleischer, K. and Ualibek, O. and Shvets, I. V.},
journal = {Applied Physics Letters},
number = {3},
pages = {031102},
title = {{Self-assembled broadband plasmonic nanoparticle arrays for sensing applications}},
volume = {100},
year = {2012}
}

再次,在更新之前它运行良好,更新后的版本类似于 MiKTeX 2.9.6600,而新版本是 2.9.6753。我使用 Texmaker。

我希望这些信息足够了。

提前致谢

编辑1

看了评论后,我尝试了以下示例这里

它与 配合使用很好,style=numeric-comp但与 配合使用则不行style=ieee

因此,您可以通过尝试重现该错误

\documentclass{article}

\usepackage{filecontents}

\begin{filecontents}{bib.bib}
@article {a,
    title = {A title},
    auhtor = {A. Author},
    year = {2000},
}
@article {b,
    title = {B title},
    auhtor = {B. Author},
    year = {2000},
} 
@article {c,
    title = {C title},
    auhtor = {C. Author},
    year = {2000},
} 
@article {d,
    title = {D title},
    auhtor = {D. Author},
    year = {2000},
} 
\end{filecontents}

\usepackage[
backend=biber, 
style=ieee
]{biblatex}

\addglobalbib{bib.bib}

\begin{document}
\newrefsection
\cite{a, b}
\newrefcontext[labelprefix=A.]
\printbibliography

\newrefsection
\cite{c, d}
\newrefcontext[labelprefix=B.]
\printbibliography
\end{document}

编辑2

我不确定这是否是展示更精确示例的正确位置,但我一直在测试,这里有一个完整的示例,它无法为我编译

这些文件位于正确的文件夹中,如果我注释掉包括例如%\include{Chapters/Chapter_tech_exp/chap_tech_exp},它就会按预期工作。

如果我评论多个引用,%\cite{Harden1959,Wagner2000, Aspnes1988}.例如第二文件,它可以工作,但如果我只在第一个文件中对其进行注释则不行。

最后,如果我删除样式,\usepackage[backend=biber, defernumbers=false]{biblatex}它也能正常工作。

我一点头绪都没有……

main.tex

\documentclass{article} % The class file specifying the document structure

\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters

\usepackage{nameref}
\usepackage[backend=biber, style=ieee, defernumbers=false]{biblatex}

\defbibheading{subbibliography}{
\section*{References for Chapter \ref{refsection:\therefsection}}}
\addbibresource{Bib-main.bib}
\usepackage[autostyle=true]{csquotes}


\begin{document}

\include{Chapters/Chapter_introduction/chap_intro}
\include{Chapters/Chapter_tech_exp/chap_tech_exp}

\printbibliography
\end{document}

chap_tech_exp.tex

\section{Reflective and transmission anisotropy spectroscopy (RAS, TAS)}
\begin{refsection}
single citation \cite{Harden1959}, \cite{Wagner2000}.
multiple citations \cite{Harden1959,Wagner2000, Aspnes1988}. 
\newpage
\newrefcontext[labelprefix= \romannumeral \therefsection]
\printbibliography[section=\therefsection, heading=subbibnumbered]
\end{refsection}

chap_intro.tex

\section{First observations of surface plasmon resonance}
\begin{refsection}
single citation \cite{Harden1959}, \cite{Wagner2000}.
multiple citations \cite{Harden1959,Wagner2000, Aspnes1988}. 

\newrefcontext[labelprefix=\romannumeral \therefsection]
\printbibliography[section=\therefsection, heading=subbibnumbered]
\end{refsection}

Bib-main.bib

% Encoding: UTF-8
@Article{Aspnes1988,
  author  = {Aspnes, D E and Harbison, J. P. and Studna, A. A. and Florez, L. T.},
  title   = {{Reflectance difference spectroscopy system for real time measurements of crystal growth}},
  journal = {Applied Physics Letters},
  year    = {1988},
  volume  = {52},
  number  = {12},
  pages   = {957--959},
}


@article{Weightman2005,
author = {Weightman, P and Martin, D S and Cole, R J and Farrell, T},
journal = {Reports on Progress in Physics},
number = {6},
pages = {1251--1341},
title = {{Reflection anisotropy spectroscopy}},
volume = {68},
year = {2005}
}


@article{Wagner2000,
author = {Wagner, F E and Haslbeck, S and Stievano, L and Calogero, S and Pankhurst, Q a and Martinek, K P},
journal = {Nature},
number = {6805},
pages = {691--692},
title = {{Before striking gold in gold-ruby glass}},
volume = {407},
year = {2000}
}

@article{Harden1959,
author = {Harden, D. B. and Toynbee, Jocelyn M. C.},
journal = {Archaeologia},
number = {December 1954},
pages = {179--212},
title = {{VII.The Rothschild Lycurgus Cup}},
volume = {97},
year = {1959}
}

不起作用时的日志文件

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6730 64-bit) (preloaded format=pdflatex 2018.7.10)  10 JUL 2018 17:06
entering extended mode
**./test3.tex
(test3.tex
LaTeX2e <2018-04-01> patch level 5
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty"
Package: inputenc 2018/04/06 v1.3b Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
)
("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty"
Package: fontenc 2017/04/05 v2.0i Standard LaTeX package

("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def"
File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 48.
))
("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"
Package: nameref 2016/05/21 v2.44 Cross-referencing by name of section

("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\refcount.sty"
Package: refcount 2016/05/16 v3.5 Data extraction from label references (HO)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
))
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"
Package: gettitlestring 2016/05/16 v1.5 Cleanup title references (HO)

("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks16
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
Package etexcmds Info: Could not find \expanded.
(etexcmds)             That can mean that you are not using pdfTeX 1.50 or
(etexcmds)             that some package has redefined \expanded.
(etexcmds)             In the latter case, load this package earlier.
))))
\c@section@level=\count88
LaTeX Info: Redefining \ref on input line 355.
LaTeX Info: Redefining \pageref on input line 355.
)
(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex.sty
Package: biblatex 2018/03/04 v3.11 programmable bibliographies (PK/MW)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty"
Package: pdftexcmds 2018/01/30 v0.27 Utility functions of pdfTeX for LuaTeX (HO
)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2017/03/15 v3.2 Provides the ifpdf switch
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\etoolbox\etoolbox.sty
Package: etoolbox 2018/02/11 v2.5e e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count89
)
(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\logreq\logreq.sty
Package: logreq 2010/08/04 v1.0 xml request logger
\lrq@indent=\count90

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\logreq\logreq.def
File: logreq.def 2010/08/04 v1.0 logreq spec v1.0
))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\ifthen.sty"
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
)
(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\url\url.sty
\Urlmuskip=\muskip10
Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.
)
(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\xstring\xstring.sty
(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\generic\xstring\xstring.tex
\@xs@message=\write3
\integerpart=\count91
\decimalpart=\count92
)
Package: xstring 2013/10/13  v1.7c  String manipulations (C Tellechea)
)
\c@tabx@nest=\count93
\c@listtotal=\count94
\c@listcount=\count95
\c@liststart=\count96
\c@liststop=\count97
\c@citecount=\count98
\c@citetotal=\count99
\c@multicitecount=\count100
\c@multicitetotal=\count101
\c@instcount=\count102
\c@maxnames=\count103
\c@minnames=\count104
\c@maxitems=\count105
\c@minitems=\count106
\c@citecounter=\count107
\c@savedcitecounter=\count108
\c@uniquelist=\count109
\c@uniquename=\count110
\c@refsection=\count111
\c@refsegment=\count112
\c@maxextratitle=\count113
\c@maxextratitleyear=\count114
\c@maxextradate=\count115
\c@maxextraalpha=\count116
\c@abbrvpenalty=\count117
\c@highnamepenalty=\count118
\c@lownamepenalty=\count119
\c@maxparens=\count120
\c@parenlevel=\count121
\blx@tempcnta=\count122
\blx@tempcntb=\count123
\blx@tempcntc=\count124
\blx@maxsection=\count125
\blx@maxsegment@0=\count126
\blx@notetype=\count127
\blx@parenlevel@text=\count128
\blx@parenlevel@foot=\count129
\blx@sectionciteorder@0=\count130
\labelnumberwidth=\skip43
\labelalphawidth=\skip44
\biblabelsep=\skip45
\bibitemsep=\skip46
\bibnamesep=\skip47
\bibinitsep=\skip48
\bibparsep=\skip49
\bibhang=\skip50
\blx@bcfin=\read1
\blx@bcfout=\write4
\c@mincomprange=\count131
\c@maxcomprange=\count132
\c@mincompwidth=\count133
Package biblatex Info: Trying to load biblatex default data model...
Package biblatex Info: ... file 'blx-dm.def' found.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\blx-dm.def
File: blx-dm.def 2018/03/04 v3.11 biblatex localization (PK/MW)
)
Package biblatex Info: Trying to load biblatex style data model...
Package biblatex Info: ... file 'ieee.dbx' not found.
Package biblatex Info: Trying to load biblatex custom data model...
Package biblatex Info: ... file 'biblatex-dm.cfg' not found.
\c@afterword=\count134
\c@savedafterword=\count135
\c@annotator=\count136
\c@savedannotator=\count137
\c@author=\count138
\c@savedauthor=\count139
\c@bookauthor=\count140
\c@savedbookauthor=\count141
\c@commentator=\count142
\c@savedcommentator=\count143
\c@editor=\count144
\c@savededitor=\count145
\c@editora=\count146
\c@savededitora=\count147
\c@editorb=\count148
\c@savededitorb=\count149
\c@editorc=\count150
\c@savededitorc=\count151
\c@foreword=\count152
\c@savedforeword=\count153
\c@holder=\count154
\c@savedholder=\count155
\c@introduction=\count156
\c@savedintroduction=\count157
\c@namea=\count158
\c@savednamea=\count159
\c@nameb=\count160
\c@savednameb=\count161
\c@namec=\count162
\c@savednamec=\count163
\c@translator=\count164
\c@savedtranslator=\count165
\c@shortauthor=\count166
\c@savedshortauthor=\count167
\c@shorteditor=\count168
\c@savedshorteditor=\count169
\c@labelname=\count170
\c@savedlabelname=\count171
\c@institution=\count172
\c@savedinstitution=\count173
\c@lista=\count174
\c@savedlista=\count175
\c@listb=\count176
\c@savedlistb=\count177
\c@listc=\count178
\c@savedlistc=\count179
\c@listd=\count180
\c@savedlistd=\count181
\c@liste=\count182
\c@savedliste=\count183
\c@listf=\count184
\c@savedlistf=\count185
\c@location=\count186
\c@savedlocation=\count187
\c@organization=\count188
\c@savedorganization=\count189
\c@origlocation=\count190
\c@savedoriglocation=\count191
\c@origpublisher=\count192
\c@savedorigpublisher=\count193
\c@publisher=\count194
\c@savedpublisher=\count195
\c@language=\count196
\c@savedlanguage=\count197
\c@origlanguage=\count198
\c@savedoriglanguage=\count199
\c@pageref=\count266
\c@savedpageref=\count267
\shorthandwidth=\skip51
\shortjournalwidth=\skip52
\shortserieswidth=\skip53
\shorttitlewidth=\skip54
\shortauthorwidth=\skip55
\shorteditorwidth=\skip56
\locallabelnumberwidth=\skip57
\locallabelalphawidth=\skip58
\localshorthandwidth=\skip59
\localshortjournalwidth=\skip60
\localshortserieswidth=\skip61
\localshorttitlewidth=\skip62
\localshortauthorwidth=\skip63
\localshorteditorwidth=\skip64
Package biblatex Info: Trying to load compatibility code...
Package biblatex Info: ... file 'blx-compat.def' found.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\blx-compat.def
File: blx-compat.def 2018/03/04 v3.11 biblatex compatibility (PK/MW)
)
Package biblatex Info: Trying to load generic definitions...
Package biblatex Info: ... file 'biblatex.def' found.
(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex.def
File: biblatex.def 2018/03/04 v3.11 biblatex compatibility (PK/MW)
\c@textcitecount=\count268
\c@textcitetotal=\count269
\c@textcitemaxnames=\count270
\c@biburlnumpenalty=\count271
\c@biburlucpenalty=\count272
\c@biburllcpenalty=\count273
\c@smartand=\count274
)
Package biblatex Info: Trying to load bibliography style 'ieee'...
Package biblatex Info: ... file 'ieee.bbx' found.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex-ieee\ieee.bbx
File: ieee.bbx 2017/03/27 v1.2d biblatex bibliography style
Package biblatex Info: Trying to load bibliography style 'numeric-comp'...
Package biblatex Info: ... file 'numeric-comp.bbx' found.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\bbx\numeric-com
p.bbx
File: numeric-comp.bbx 2018/03/04 v3.11 biblatex bibliography style (PK/MW)
Package biblatex Info: Trying to load bibliography style 'numeric'...
Package biblatex Info: ... file 'numeric.bbx' found.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\bbx\numeric.bbx
File: numeric.bbx 2018/03/04 v3.11 biblatex bibliography style (PK/MW)
Package biblatex Info: Trying to load bibliography style 'standard'...
Package biblatex Info: ... file 'standard.bbx' found.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\bbx\standard.bb
x
File: standard.bbx 2018/03/04 v3.11 biblatex bibliography style (PK/MW)
\c@bbx:relatedcount=\count275
\c@bbx:relatedtotal=\count276
))))
Package biblatex Info: Trying to load citation style 'ieee'...
Package biblatex Info: ... file 'ieee.cbx' found.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex-ieee\ieee.cbx
File: ieee.cbx 2017/03/27 v1.2d biblatex citation style
Package biblatex Info: Trying to load citation style 'numeric-comp'...
Package biblatex Info: ... file 'numeric-comp.cbx' found.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\cbx\numeric-com
p.cbx
File: numeric-comp.cbx 2018/03/04 v3.11 biblatex citation style (PK/MW)
\c@cbx@tempcnta=\count277
\c@cbx@tempcntb=\count278
Package biblatex Info: Redefining '\cite'.
Package biblatex Info: Redefining '\parencite'.
Package biblatex Info: Redefining '\footcite'.
Package biblatex Info: Redefining '\footcitetext'.
Package biblatex Info: Redefining '\smartcite'.
Package biblatex Info: Redefining '\supercite'.
Package biblatex Info: Redefining '\textcite'.
Package biblatex Info: Redefining '\textcites'.
Package biblatex Info: Redefining '\cites'.
Package biblatex Info: Redefining '\parencites'.
Package biblatex Info: Redefining '\smartcites'.
)
Package biblatex Info: Redefining '\cite'.
Package biblatex Info: Redefining '\cites'.
)
Package biblatex Info: Trying to load configuration file...
Package biblatex Info: ... file 'biblatex.cfg' found.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex.cfg
File: biblatex.cfg 
))
(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\csquotes\csquotes.sty
Package: csquotes 2018/04/13 v5.2d context-sensitive quotations (JAW)
\csq@reset=\count279
\csq@gtype=\count280
\csq@glevel=\count281
\csq@qlevel=\count282
\csq@maxlvl=\count283
\csq@tshold=\count284
\csq@ltx@everypar=\toks17

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\csquotes\csquotes.def
File: csquotes.def 2018/04/13 v5.2d csquotes generic definitions (JAW)
)
Package csquotes Info: Trying to load configuration file 'csquotes.cfg'...
Package csquotes Info: ... configuration file loaded successfully.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\csquotes\csquotes.cfg
File: csquotes.cfg 
)
Package csquotes Info: Enabling multilingual quotes.
)
Package biblatex Info: Trying to load language 'english'...
Package biblatex Info: ... file 'english.lbx' found.

(C:\Users\william\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\lbx\english.lbx
File: english.lbx 2018/03/04 v3.11 biblatex localization (PK/MW)
)
Package csquotes Info: Checking for multilingual support...
Package csquotes Info: ... none found.


Package csquotes Warning: No multilingual support.
(csquotes)                Cannot enable multilingual quotes on input line 16.

(test3.aux (Chapters/Chapter_introduction/chap_intro.aux)
(Chapters/Chapter_tech_exp/chap_tech_exp.aux))
\openout1 = `test3.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 16.
LaTeX Font Info:    ... okay on input line 16.
Package biblatex Info: Input encoding 'utf8' detected.
Package biblatex Info: Automatic encoding selection.
(biblatex)             Assuming data encoding 'utf8'.
\openout4 = `test3.bcf'.

Package biblatex Info: Trying to load bibliographic data...
Package biblatex Info: ... file 'test3.bbl' found.
 (test3.bbl)
Package biblatex Info: Reference section=0 on input line 16.
Package biblatex Info: Reference segment=0 on input line 16.
\openout2 = `Chapters/Chapter_introduction/chap_intro.aux'.


(Chapters/Chapter_introduction/chap_intro.tex
Overfull \hbox (1.08336pt too wide) in paragraph at lines 3--3
[]\T1/cmr/bx/n/14.4 First ob-ser-va-tions of sur-face plas-mon res-o-nance 
 []

\blx@maxsegment@1=\count285
\blx@sectionciteorder@1=\count286
Package biblatex Info: Reference section=1 on input line 4.
Package biblatex Info: Setting label 'refsection:1' on input line 4.

Package biblatex Warning: Option 'labelprefix' requires global
(biblatex)                'defernumbers=true' on input line 9.


Package biblatex Warning: Option 'resetnumbers' requires 'defernumbers=true'.
(biblatex)                Ignoring 'resetnumbers=true' on input line 9.

Package biblatex Info: Reference section=0 on input line 10.
) [1


{C:/Users/william/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
\openout2 = `Chapters/Chapter_tech_exp/chap_tech_exp.aux'.


(Chapters/Chapter_tech_exp/chap_tech_exp.tex
\blx@maxsegment@2=\count287
\blx@sectionciteorder@2=\count288
Package biblatex Info: Reference section=2 on input line 6.
Package biblatex Info: Setting label 'refsection:2' on input line 6.

! Undefined control sequence.
<argument> \blx@tempb 

l.8 ...s \cite{Harden1959,Wagner2000, Aspnes1988}.

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

[2


]

Package biblatex Warning: Option 'labelprefix' requires global
(biblatex)                'defernumbers=true' on input line 11.


Package biblatex Warning: Option 'resetnumbers' requires 'defernumbers=true'.
(biblatex)                Ignoring 'resetnumbers=true' on input line 11.

Package biblatex Info: Reference section=0 on input line 12.
) [3]

Package biblatex Warning: Option 'resetnumbers' requires 'defernumbers=true'.
(biblatex)                Ignoring 'resetnumbers=true' on input line 21.


LaTeX Warning: Empty bibliography on input line 21.

(test3.aux (Chapters/Chapter_introduction/chap_intro.aux)
(Chapters/Chapter_tech_exp/chap_tech_exp.aux))

LaTeX Warning: There were undefined references.


Package biblatex Warning: Please (re)run Biber on the file:
(biblatex)                test3
(biblatex)                and rerun LaTeX afterwards.

Package logreq Info: Writing requests to 'test3.run.xml'.
\openout1 = `test3.run.xml'.

 ) 
Here is how much of TeX's memory you used:
 8398 strings out of 492973
 151904 string characters out of 3135926
 572657 words of memory out of 3000000
 12203 multiletter control sequences out of 15000+200000
 8172 words of font info for 20 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 47i,4n,47p,855b,1219s stack positions out of 5000i,500n,10000p,200000b,50000s
 <C:\Users\william\AppData\Local\MiKTeX\2.9\fonts\pk\ljfour\jknappen\ec\dpi60
0\ecti1000.pk> <C:\Users\william\AppData\Local\MiKTeX\2.9\fonts\pk\ljfour\jknap
pen\ec\dpi600\ecbx1200.pk> <C:\Users\william\AppData\Local\MiKTeX\2.9\fonts\pk\
ljfour\jknappen\ec\dpi600\ecrm1000.pk> <C:\Users\william\AppData\Local\MiKTeX\2
.9\fonts\pk\ljfour\jknappen\ec\dpi600\ecbx1440.pk>
Output written on test3.pdf (3 pages, 45208 bytes).
PDF statistics:
 149 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

答案1

这是关于biblatex版本 3.12 中已解决的一个错误。如果您遇到此问题,请更新您的 TeX 系统。

下面的答案是为了历史兴趣而保留的。

此 MWE 重现了该问题

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[backend=biber, style=numeric-comp, sorting=none, defernumbers=true]{biblatex}

\addbibresource{biblatex-examples.bib}
\usepackage[autostyle=true]{csquotes}

\begin{document}
\begin{refsection}
single citation \cite{sigfridsson}, \cite{nussbaum}.
multiple citations \cite{sigfridsson,nussbaum, worman}. 
\newrefcontext[labelprefix=A]
\printbibliography
\end{refsection}

\begin{refsection}
single citation \cite{sigfridsson}, \cite{nussbaum}.
multiple citations \cite{sigfridsson,nussbaum, worman}. 

\newrefcontext[labelprefix=B]
\printbibliography
\end{refsection}
\end{document}

问题与https://github.com/plk/biblatex/issues/697。事实上,这只是用\begin{refsection}...\end{refsection}而不是 而存在的同一个问题\newrefsection

在问题解决之前,作为一种解决方法,请使用\newrefsection而不是\begin{refsection}...\end{refsection}。这并非在所有情况下都完全相同,但希望对您有用。

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[backend=biber, style=numeric-comp, sorting=none, defernumbers=true]{biblatex}

\addbibresource{biblatex-examples.bib}
\usepackage[autostyle=true]{csquotes}

\begin{document}
\newrefsection
single citation \cite{sigfridsson}, \cite{nussbaum}.
multiple citations \cite{sigfridsson,nussbaum, worman}. 
\newrefcontext[labelprefix=A]
\printbibliography

\newrefsection
single citation \cite{sigfridsson}, \cite{nussbaum}.
multiple citations \cite{sigfridsson,nussbaum, worman}. 

\newrefcontext[labelprefix=B]
\printbibliography
\end{document}

在您提到的问题的评论中\newrefcontext,您可以尝试不同的解决方法,我的第一个建议是

\makeatletter
\protected\def\endrefsection{% 
   \endrefcontext
   \blx@endrefsection 
   \blx@inf@refsec} 
\makeatother

加载后将其添加到您的序言中biblatex

答案2

看来@moewe 又一次解决了这个问题!

就我的情况而言,使用\newrefsection而不是\begin{refsection} ... \end{refsection}仅适用于小型项目,而大型项目在编译时会出现内存饱和现象。

因此,解决方案是用 替换\begin{refsection} ... \end{refsection}\begingroup\newrefsection ... \endrefsection\endgroup这样整个文档就可以编译\usepackage[backend=biber, style=ieee,defernumbers=false]{biblatex},现在包含通常如下所示

\chapter{tile}
\label{chapter_label}

\setcounter{tocdepth}{3}
\startcontents[chapter_label]
\printcontents[chapter_label]{}{1}{}
\begingroup\newrefsection

... \cite{a, b}

\newrefcontext[labelprefix=A]
\printbibliography[section=\therefsection, heading=subbibnumbered]
\endrefsection\endgroup
\stopcontents[chapter_label]

并且我可以有多个包含多个参考引文,并且一切运行良好......现在。

谢谢

相关内容