我从 BiBTeX 切换到 BiBLaTeX。我按照 lockstep 的说明进行操作邮政。我使用 JabRef 生成 .bib 文件。
以下是我的文件的 MWE main.tex
:
\documentclass[a4paper,10pt, twoside, openright]{book}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[hidelinks]{hyperref} %for links to figures, chapters, references,...
\usepackage[refpage]{nomencl} %for making list of abbreviations
\usepackage{glossaries}
\usepackage{subcaption} %for subfigures
\usepackage{siunitx} %for displaying nice ranges in SI units
\usepackage{amsmath}
\usepackage[english]{babel}% Recommended
\usepackage{csquotes}% Recommended
\usepackage[bibstyle = numeric, sorting = none]{biblatex}
\addbibresource{ReferencesMA.bib}
\author{Me}
\title{sometitle}
\date{\today}
\begin{document}
\frontmatter
\maketitle
\tableofcontents
\mainmatter
\include{./Chapters/Chapter01}
\include{./Chapters/Chapter02}
\backmatter
%\bibliographystyle{unsrt}
%\bibliography{ReferencesMA}
\printbibliography
% bibliography, glossary and index would go here.
\end{document}
对于构建和查看,我使用了以下工作流程:PdfLatex、Biber、PdfLatex、PdfLatex、内部 PdfViewer。
如果我使用 BiBTeX 代替 biblatex,并用 Bibtex 代替 Biber,它就可以正常工作。但是,我想使用 BiBLaTeX。
大量错误中的第一个错误是File ended while scanning use of \field. \begin{document}
。
我尝试删除构建过程中生成的所有文件,然后重试该过程。这没有帮助。如果有帮助的话,以下是 的内容main.log
:很多行!
这是我的.bib 文件:.bib 文件
我该怎么办?如果我忘记提及某事,我会尽快添加信息。
答案1
问题是由于输入Wang2007
@Article{Wang2007,
author = {F. Wang and J. Mei and Xinhua Wu},
title = {Compositionally graded Ti6Al4V + TiC made by direct laser fabrication using powder and wire},
journal = {Materials \& Design},
year = {2007},
volume = {28},
number = {7},
pages = {2040 - 2046},
abstract = {Ti6Al4V reinforced with TiC has been fabricated as compositionally graded material by direct laser fabrication using TiC powder and Ti6Al4V wire which were fed simultaneously into the laser focal point. The microstructure along the length of the sample has been characterised using X-ray diffraction and scanning electron microscopy. The results show that the composition along the length changes as expected from the imposed changes in feed rate when allowance is made for the different capture efficiency for the powder and the wire. Some unmelted TiC has been observed in regions where the TiC fraction was high, but along most of the length of the samples TiC was completely melted and formed primary TiC, eutectic TiC and secondary TiC. Some preliminary tribological properties of the compositionally graded material were obtained using a sliding wear test which showed that the tribological properties of Ti6Al4V are improved by the reinforced TiC particles with the optimum frictional behaviour being found with approximately 24 vol% of TiC. },
doi = {http://dx.doi.org/10.1016/j.matdes.2006.06.010},
issn = {0261-3069},
keywords = {Direct laser fabrication, Functionally graded materials, TiC-reinforced titanium alloys },
url = {http://www.sciencedirect.com/science/article/pii/S0261306906001920},
}
具体来说,在abstract
字段中,您有一个未转义的%
: 24 vol%
。文件%
中的注释开始.bbl
,导致 LaTeX 忽略 之后的所有内容24 vol
,因此文件中的组.bbl
未正确关闭,从而导致错误消息
! File ended while scanning use of \field.
你可以逃避%
这个问题。
Some preliminary tribological properties of the compositionally graded material were obtained using a sliding wear test which showed that the tribological properties of Ti6Al4V are improved by the reinforced TiC particles with the optimum frictional behaviour being found with approximately 24 vol\% of TiC.
或者你告诉 Biber 忽略该abstract
字段:
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldset=abstract, null]
}
}
}