为什么我添加带有受保护引文的脚注后 pdfLatex 编译会失败?

为什么我添加带有受保护引文的脚注后 pdfLatex 编译会失败?

我最近开始学习 LaTeX,因为它非常漂亮。虽然我的文档看起来很漂亮,但我的代码却丑陋不堪。我在 Windows 10 上使用 Kile,并使用带有 BibteX 后端的 BiblateX(在 biber 不起作用后放弃了使用它的想法;我尝试了这里建议的所有方法)。

事情是这样的;我在脚注中添加了另一个参考书目条目(之前有 8 个,甚至在另一个脚注中添加了一个,它工作正常),pdfLatex 给出错误“已完成,退出代码为 1”。在解决这个问题一段时间后,发现如果我抑制它\printbibliography(通过添加%),它又可以正常工作,甚至在脚注中打印正确的引文编号 [9]。我使用序列pdfLaTex>BibTex>pdfLaTex。我无法弄清楚哪里出了问题,甚至不知道问题出在哪里(脚注?引文?\printbibliography命令?还是文件.bib?)

这是我的 MWE;

\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage{courier}
\usepackage[bottom]{footmisc}
\usepackage{xcolor,xfrac,lmodern,graphicx,mathtools}
\usepackage{etoolbox,fancyhdr,float,wrapfig,amsmath}
\everymath{\displaystyle}
\apptocmd{\thebibliography}{\csname phantomsection\endcsname\addcontentsline{toc}{chapter}{\bibname}}{}{}
\graphicspath{{images/}}
\usepackage[font={rm,footnotesize,sl,color={darkgray}},labelfont={bf,color=black}]{caption}
\usepackage[font={rm,footnotesize,it}]{subcaption}
 \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
 \usepackage[style=nature,sorting=none,bibencoding=ascii,backend=bibtex]{biblatex}
 \addbibresource{refer.bib}
 \usepackage[nottoc]{tocbibind}
 \setlength{\parskip}{1em}
 \renewcommand{\thefootnote}{\alph{footnote}}
 \emergencystretch=1em
 \pagestyle{plain}
 \begin{document}
 \frontmatter 
\tableofcontents
\mainmatter
This is a test sentence.
\footnote{Obviously fake footnote.\protect\cite{tape}}
\renewcommand\bibname{References}
\printbibliography[heading=bibintoc]
\end{document}

我将不胜感激任何帮助。为了简洁起见,我添加了 refer.bib 文件的四个条目。我刚刚注意到前三个 @Article 条目显示为蓝色,而其余的条目显示为红色。这是什么意思?

@Article{g,
author = {Jonas Gienger and Nikolai Severin and J\"{u}rgen P. Rabe and  Igor M. Sokolov},
title = {Reconstructing Interaction Potentials in Thin Films from   Real-Space Images},
journal = {arxiv},
year = {2015},
  }
@Article{sev,
author = {Nikolai Severin and Jonas Gienger and V. Scenev and P. Lange and Igor M. Sokolov and J\"{u}rgen P. Rabe},
title = {Nanophase Separation in Monomolecularly Thin Water-Ethanol Films Controlled by Graphene},
journal = {Nano Letters},
year = {2015},
}
 @Article{NG,
  author = {K. S. Novoselov and A. K. Geim and S. V. Morozov and D. Jiang and Y. Zhang and S. V. Dubonos and I. V. Grigorieva and A. A. Firsov},
 title = {Electric Field Effect in Atomically Thin Carbon Films},
 journal = {Sceince},
  year = {2004},
}
 @Article{tape,
 author = {Carlos G. Camara and Juan V. Escobar and Jonathan R. Hird1 and Seth J. Putterman},
 title = {Correlation between nanosecond X-ray flashes and stick–slip friction in peeling tape},
  journal = {Nature Letters},
 year = {2008},
  }

相关内容