尽管实施了多项修复,但仍然出现空书目错误?

尽管实施了多项修复,但仍然出现空书目错误?

我花了几乎一整天的时间试图解决这个问题,但我找到的任何类似问题的解决方案似乎都不起作用。我正在使用 TeXStudio 撰写论文,但我的参考书目没有包含在文件末尾,文件引用也不正确。

我的主要文件序言如下:

\documentclass[
11pt, 
english, 
singlespacing, 
nolistspacing, 
headsepline, 
]{MastersDoctoralThesis} 

\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage{indentfirst}
\usepackage{graphicx}
\graphicspath{ {Figures/} }
\usepackage{subcaption}
\usepackage{enumitem}
\usepackage{url}

\usepackage{palatino} % Use the Palatino font by default

\usepackage[backend=biber,style=authoryear,natbib=true]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA)

\addbibresource{Bibl.bib}

我的书目如下:

@misc{Missi34:online,
author = {},
title = {Mission | UoS3},
howpublished = {\url{http://generic.wordpress.soton.ac.uk/uos3/mission/}},
month = {},
year = {},
note = {(Accessed on 04/11/2016)}
}

@article {GRL:GRL13482,
author = {Anderson, Brian J. and Takahashi, Kazue and Toth, Bruce A.},
title = {Sensing global Birkeland currents with iridium® engineering magnetometer data},
journal = {Geophysical Research Letters},
volume = {27},
number = {24},
issn = {1944-8007},
url = {http://dx.doi.org/10.1029/2000GL000094},
doi = {10.1029/2000GL000094},
pages = {4045--4048},
keywords = {Magnetospheric Physics: Instruments and techniques},
year = {2000},
}

@misc{DICE83:online,
author = {},
title = {DICE - eoPortal Directory - Satellite Missions},
howpublished = {\url{https://directory.eoportal.org/web/eoportal/satellite-missions/d/dice#foot17%29}},
month = {},
year = {},
note = {(Accessed on 04/12/2016)}
}

@manual{CoilManual,
title = {Gyroskop U 52006},
date = {2015},
OPTlanguage = {English},
OPTorganization = {3B Scientific},
OPTpagetotal = {3},
OPTurl = {\url{https://www.3bscientific.co.uk/product-manual/1000906_EN.pdf}},
OPTurldate = {(Accessed on 04/13/2016)},
}

它声称参考书目在行处是空的,\printbibliography尽管我已经在正文中引用了它们。当我引用某些内容时,参考文献列表会出现,但文本中只显示标签,而不是编号或信息。例如,

产品手册(CoilManual)给出了计算线圈内部产生的场的方程式。

我尝试过使用\cite\cite*\autocite,但没有任何帮助。

我已经多次执行了pdflatex--序列,确保我的默认参考书目是而不是。这可能只是一件小事biber,但我找不到任何地方的解决方案。pdflatexbiberbibtex

答案1

您遇到的错误和问题均源自一个错误的 bib 输入。

请查看 bib 条目的更改DICE83:online

@online{DICE83:online,
  author = {},
  title  = {DICE - eoPortal Directory - Satellite Missions},
  url    = {https://directory.eoportal.org/web/eoportal/satellite-missions/d/dice#foot17%29},
  urldate = {2016-12-04},
}

旧版本中的问题是%,导致该字段howpublished永不结束......

通过上述更改,我可以编译以下完整的 MWE(该包filecontents仅用于将 bib 文件和 TeX 代码连接到一个 MWE),而不会出现错误消息:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@misc{Missi34:online,
author = {},
title = {Mission | UoS3},
howpublished = {\url{http://generic.wordpress.soton.ac.uk/uos3/mission/}},
month = {},
year = {},
note = {(Accessed on 04/11/2016)}
}

@article {GRL:GRL13482,
author = {Anderson, Brian J. and Takahashi, Kazue and Toth, Bruce A.},
title = {Sensing global Birkeland currents with iridium® engineering magnetometer data},
journal = {Geophysical Research Letters},
volume = {27},
number = {24},
issn = {1944-8007},
url = {http://dx.doi.org/10.1029/2000GL000094},
doi = {10.1029/2000GL000094},
pages = {4045--4048},
keywords = {Magnetospheric Physics: Instruments and techniques},
year = {2000},
}

@online{DICE83:online,
  author = {},
  title  = {DICE - eoPortal Directory - Satellite Missions},
  url    = {https://directory.eoportal.org/web/eoportal/satellite-missions/d/dice#foot17%29},
  urldate = {2016-12-04},
}

@manual{CoilManual,
title = {Gyroskop U 52006},
date = {2015},
OPTlanguage = {English},
OPTorganization = {3B Scientific},
OPTpagetotal = {3},
OPTurl = {\url{https://www.3bscientific.co.uk/product-manual/1000906_EN.pdf}},
OPTurldate = {(Accessed on 04/13/2016)},
}
\end{filecontents*}


%\PassOptionsToPackage{hyperfootnotes=false}{hyperref}
\documentclass[%
  english,
  11pt, 
  singlespacing, 
  nolistspacing, 
  headsepline, 
]{MastersDoctoralThesis}

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

\usepackage[%
  backend=biber, 
  style=authoryear,
  natbib=true
]{biblatex}
\addbibresource{\jobname.bib}


\begin{document}
Some Text.\nocite{*}

\printbibliography%[]
\end{document}

结果:

书目结果

结论:

如果您使用biblatex,请重新编写您的 BiB 文件,因为biblatex使用其他字段名称(url而不是howpublished等)。如果您想使用 的优势,biblatex请使用 字段名称,biblatex是为 而制作的。

相关内容