使用尾註的「未定義引用」(enotez 和 endnotes 套件)

使用尾註的「未定義引用」(enotez 和 endnotes 套件)

請考慮這段程式碼:

\begin{filecontents*}{\jobname.bib}
@book{ kuhn:1982,
  author         = "Thomas Kuhn",
  title          = "La struttura delle rivoluzioni scientifiche",
  publisher      = "Einaudi",
  location       = "Torino",
  year           = "1978",
  edition    = "4",
}
\end{filecontents*}

\documentclass[a4paper]{article}
\usepackage{enotez}
%\DeclareInstance{enotez-list}{plain}{paragraph}{notes-sep=0pt}
\let\footnote=\endnote
\usepackage{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\footcite[23]{kuhn:1982}
\printendnotes
\printbibliography
\end{document}

我編譯使用:pdflatex、biber、pdflatex、pdflatex。但是,我總是收到以下警告:

LaTeX Warning: There were undefined references.

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

即使在我看來 .pdf 文件沒有問題。如果我使用包包也是一樣endnotes。為什麼這個循環?有辦法解決或避免嗎?謝謝

==================================================== = ======================= 顯然,在我的原始程式碼中有\RequirePackage{filecontents}.這是複製/貼上時的錯誤。我有TexLive 2014,每週更新一次。任何狀況之下:

 *File List*
filecontents.sty    2011/10/08 v1.3 Create an external file from within a LaTeX
 document
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
  lipsum.sty    2014/07/27 v1.3 150 paragraphs of Lorem Ipsum dummy text
  enotez.sty    2014/02/04 v0.7c Endnotes for LaTeX2e
   expl3.sty    2014/11/25 v5471 L3 programming layer (loader) 
expl3-code.tex    2014/11/25 v5471 L3 programming layer 
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
l3unicode-data.def    2014/11/23 v5465 L3 Unicode data
l3pdfmode.def    2014/11/23 v5466 L3 Experimental driver: PDF mode
  xparse.sty    2014/11/25 v5471 L3 Experimental document command parser
l3keys2e.sty    2014/11/25 v5471 LaTeX2e option processing using LaTeX3 keys
xtemplate.sty    2014/11/25 v5471 L3 Experimental prototype document functions
etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX
  xpatch.sty    2012/10/02 v0.3 Extending etoolbox patching commands
scrlfile.sty    2014/10/28 v3.14 KOMA-Script package (loading files)
translations.sty    2014/01/23 v1.2a internationalization of LaTeX2e packages (
CN)
cnltx-base.sty    2014/01/05 v0.10 LaTeX tools and documenting facilities (CN)
 pgfopts.sty    2014/07/10 v2.1a LaTeX package options with pgfkeys
 pgfkeys.sty    
 pgfkeys.code.tex
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
trimspaces.sty    2009/09/17 v1.1 Trim spaces around a token list
biblatex.sty    2014/06/25 v2.9a programmable bibliographies (PK/JW/AB)
biblatex2.sty    2014/06/25 v2.9a programmable bibliographies (biber) (PK/JW/AB
)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
  logreq.sty    2010/08/04 v1.0 xml request logger
  logreq.def    2010/08/04 v1.0 logreq spec v1.0
  ifthen.sty    2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
     url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.
  blx-dm.def
biblatex-dm.cfg
blx-compat.def    2014/06/25 v2.9a biblatex compatibility (PK/JW/AB)
biblatex.def    
standard.bbx    2014/06/25 v2.9a biblatex bibliography style (PK/JW/AB)
 numeric.bbx    2014/06/25 v2.9a biblatex bibliography style (PK/JW/AB)
 numeric.cbx    2014/06/25 v2.9a biblatex citation style (PK/JW/AB)
biblatex.cfg    
 english.lbx    2014/06/25 v2.9a biblatex localization (PK/JW/AB)
supp-pdf.mkii
translations-basic-dictionary-english.trsl    (english translation file `transl
ations-basic-dictionary')
references.bbl

答案1

在您的 MWE 中缺少相關指令:\RequirePackage{filecontents}

如果我編譯以下內容,稍微改變一下 MWE,我就沒有錯。請在您自己的計算機上檢查這一點。如果您仍然有問題,請新增\listfiles為 MWE 的第一行並重新編譯。然後檢查已使用的軟體包和版本的清單並將其添加到您的問題中。 (我猜你的系統有點過時了...)

更改了 MWE:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{kuhn:1982,
  author         = "Thomas Kuhn",
  title          = "La struttura delle rivoluzioni scientifiche",
  publisher      = "Einaudi",
  location       = "Torino",
  year           = "1978",
  edition    = "4",
}
\end{filecontents*}

\documentclass[a4paper]{article}
\usepackage{blindtext}  % to create dummy text
\usepackage{enotez}
%\DeclareInstance{enotez-list}{plain}{paragraph}{notes-sep=0pt}
\let\footnote=\endnote

\usepackage[backend=biber]{biblatex}
\addbibresource{\jobname.bib}

\begin{document}
\blindtext
\footcite[23]{kuhn:1982}

\blindtext[5]
\printendnotes
\printbibliography
\end{document}

相關內容