编译时 Biblatex-apa 出现错误消息

编译时 Biblatex-apa 出现错误消息

我正在尝试编写一份包含 APA 第 6 版引用的文档。我使用 Texmaker 5.0.2 和 Windows 10 来执行此操作。有人告诉我 biblatex-apa 包是 LaTeX 中 APA 第 6 版引用的最佳选择。但是,当我尝试这样做时,我收到错误:

在此处输入图片描述

使用 MWE:

\documentclass[11pt, twoside]{article}

%document foramtting
\usepackage[margin = 2.5cm]{geometry}

%Referencing package
\usepackage[
    backend = biber,
    style = apa,
    natbib = true
    ]{biblatex}
\addbibresource{citations.bib}

\begin{document}

This is a test for biblatex-apa. \citep{IForImagNumb,BriefHistOfeigamma,HistOfMaths}

\printbibliography

\end{document}

和 bib 文件

@book{HistOfMaths,
    author = {Boyer, Carl B. and Merzbch, Uta C.},
    year = {1991},
    title = {A history of mathematics},
    edition = {2nd},
    city = {New York},
    publisher = {Wiley}
}

@online{DrawGraph,
    author = {Kummer, J.},
    title = {Draw Function Graph},
    url = {https://rechneronline.de/function-graphs/},
    lastchecked = {2018-01-05}
}

@misc{PaintThreeD,
    author = {Microsoft,},
    title = {Paint 3d (Version 5.1806.20057.0) [Computer software]},
    year = {2017},
    address = {Redmond, Washington},
    publisher = {Author},
    url = {https://www.microsoft.com/en-us/p/paint-3d/9nblggh5fv99}
}

@book{Elements,
    author = {Euclid,},
    translator = {Heath, T. L.},
    editor = {Densmore, D.},
    originalyear = {2002},
    year = {2017},
    title = {Euclid's Elements},
    address = {Santa Fe, New Mexico},
    publisher = {Green Lion Press}
}

@book{Cantor,
    author = {Cantor, Georg},
    translator = {Jourdain, Philip E. B.},
    originalyear = {1915},
    year = {2009},
    title = {Contributions to the Founding of the Theory of Transfinite Numbers},
    address = {London},
    publisher = {BiblioLife}
}

@article{BriefHistOfeigamma,
    author = {Debnath, Lokenath},
    year = {2015},
    title = {A brief history of the most remarkable numbers e, i, and $\gamma$ in mathematical sciences with applications},
    journaltitle = {Journal of Mathematical Education in Science and Technology},
    volume = {46},
    issue = {6},
    pages = {853-878},
    doi = {10.1080/0020739X.2015.1015266}
}

@article{IForImagNumb,
    author = {Curcio, Liliana},
    year = {2017},
    title = {I for Imaginary Numbers},
    journaltitle = {Lettera Mathematica},
    volume = {5},
    issue = {2},
    pages = {125-129},
    doi = {10.1007/s40329-017-0172-6}
}

@article{PhysNatureOfImagNumb,
    author = {Antonov, Alexander Alexandrovich},
    year = {2016},
    title = {Physical Reality and Nature of Imaginary, Complex and Hypercomplex Numbers},
    journaltitle = {General Mathematics Notes},
    volume = {35},
    issue = {2},
    pages = {40-63},
    url = {http://www.geman.in/yahoo_site_admin/assets/docs/4_GMN-10932-V35N2.31895146.pdf}
}

@article{ImagXtrmNumb,
    author = {Liu, Liping},
    year = {2013},
    title = {Imaginary numbers for combining linear equation models via Dempster's rule},
    journaltitle = {International Journal of Approximate Reasoning},
    volume = {55},
    issue = {1},
    pages = {294-310},
    doi = {10.1016/j.ijar.2013.09.004}
}

错误消息中的第 19 行位于\printbibliography和之间\end{document}。我尝试删除空格,但 Texmaker 返回第 19 行(该\end{document}行)的错误。

问候,

LaTeX 新手

答案1

biblatex-apa将标题的大小写@article从标题大小写更改为句子大小写。大小写更改宏有点脆弱,因此某些内容(如数学和其他特殊宏)需要在花括号中进行转义。

title = {A brief history of the most remarkable numbers e, i, and {$\gamma$} in mathematical sciences with applications},

数学家协会

\documentclass[11pt, twoside]{article}

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

%\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{BriefHistOfeigamma,
    author = {Debnath, Lokenath},
    year = {2015},
    title = {A brief history of the most remarkable numbers e, i, and {$\gamma$} in mathematical sciences with applications},
    journaltitle = {Journal of Mathematical Education in Science and Technology},
    volume = {46},
    issue = {6},
    pages = {853-878},
    doi = {10.1080/0020739X.2015.1015266}
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
\nocite{BriefHistOfeigamma}
\printbibliography
\end{document}

不抛出任何错误并给出输出

在此处输入图片描述

你可能想再检查一下是否应该

title = {A brief history of the most remarkable numbers {$e$}, {$i$}, and {$\gamma$} in mathematical sciences with applications},

并且ei处于数学模式。

相关内容