
當參數傳遞時沒有選項時,我的程式碼與 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}