BibLatex 不适用于选项

BibLatex 不适用于选项

当传递参数时没有选项,我的代码可以完美地与 BibLatex 配合使用,但如果传递参数时出现一系列错误选项。下面分别是有效和无效的代码的开头部分:

\documentclass[pdf]{beamer}
\usepackage{biblatex}
\addbibresource{sample.bib}

\documentclass[pdf]{beamer}
\usepackage[backend=biber,style=apa,sorting=ynt]{biblatex}
\addbibresource{sample.bib}

有人知道为什么会出现这种情况吗?下面我粘贴了错误的屏幕截图,希望对您有所帮助。

多谢!

在此处输入图片描述

答案1

开始使用此代码,看看它是否在您的系统上运行。由于“biber”,它应该可以进行各种编译。如果它不起作用,请更新您的安装。

然后,删除所有辅助文件后,使用您的sample.bib文件检查它是否正确写入。从头到尾检查 .log 文件以查看是否biber有警告(如果有)。(它必须以“进程正常退出”结尾)。此外,如果biblatex抱怨编码。

如果仍然失败,请提供您正在使用的完整代码,包括.bib 文件。

% !TeX TS-program = pdflatex    

\documentclass[pdf]{beamer}

\usepackage[english]{babel}

\usepackage[%
    style=apa,
    backend=biber,
    natbib=true,
    sorting=ynt,
    language=english]
{biblatex}

\begin{filecontents*}{\jobname37.bib}
@article{greenwade93,
author  = {George Greenwade},
title   = {The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})},
year    = {1993},
journal = {TUGBoat},
volume  = {14},
number  = {3},
pages   = {342--351},
}
@article{bertram,
author       = {Bertram, Aaron and Wentworth, Richard},
title        = {Gromov invariants for holomorphic maps on {Riemann} surfaces},
journaltitle = {JAMS},
date         = 1996,
volume       = 9,
number       = 2,
pages        = {529-571},
langid       = {english},
langidopts   = {variant=american},
shorttitle   = {Gromov invariants},
annotation   = {An \texttt{article} entry with a \texttt{volume} and a
\texttt{number} field},
}


@article{glashow19,
author       = {Glashow, Sheldon},
title        = {{NASA} sends {MarsProve} to search for {L}a, {A}c, {T}h {P}a and {U} actinides to the {K}uiper belt},
journaltitle = {Nucl.~Phys.},
date         = 2019,
volume       = 22,
pages        = {579-588},
}

\end{filecontents*}

\addbibresource{\jobname37.bib}

\begin{document}
    
\begin{frame}
\frametitle{Guidelines} 
Start with    \citep{greenwade93}.

See also \citep{bertram} and  \citep{glashow19}.
\end{frame}

\begin{frame}
\frametitle{References}
\printbibliography
\end{frame}

\end{document}

幻灯片

相关内容