我正在尝试使用 bibtex 包 archaeologie,但当我引用时,我收到错误,指出该行的引用未定义。.bib 文件中的条目是
@Book{Met,
author = {Aristotle},
title = {Metaphysics},
language = {greek},
date = {2016},
translator = {C.D.C. Reeve},
publisher = {Hackett},
location = {New York},
shorthand = {\emph{Met.}},
options = {ancient},
}
主文本条目的位置
\documentclass[]{scrartcl}
\usepackage{arsclassica} % Modifies the Classic Thesis package
\usepackage[]{classicthesis} % The layout is based on the Classic Thesis style
\usepackage{csquotes}
\usepackage[english]{babel}
\usepackage[backend=biber]{biblatex}
\addbibresource{main}
\usepackage[]{hyperref}
\hypersetup{colorlinks=true}
\title{\normalfont\spacedallcaps{Paper}} % The article title
%\subtitle{Subtitle} % Uncomment to display a subtitle
\author{\spacedlowsmallcaps{Name}} % The article author(s) - author affiliations need to be specified in the AUTHOR AFFILIATIONS block
\date{} % An optional date to appear under the author(s)
\begin{document}
\maketitle
\begin{abstract}
Some Text in the Abstract.
\end{abstract}
\section{Introduction}
\cite{Met}
答案1
您需要确保 LaTeX 可以读取您的 .bib 文件。您还需要实际调用您定义的样式,如下所示:
\usepackage[style=archaeologie,backend=biber]{biblatex}
完整工作示例:
\documentclass{scrartcl}
\usepackage{arsclassica}
\usepackage{classicthesis}
\begin{filecontents*}[overwrite]{mwe.bib}
@book{Met,
title = {Metaphysics},
author = {Aristotle},
location = {New York},
publisher = {Hackett},
language = {greek},
date = 2016,
translator = {C.D.C. Reeve},
shorthand = {\emph{Met.}},
options = {ancient}
}
\end{filecontents*}
\usepackage[english]{babel}
\usepackage[autostyle]{csquotes}
\usepackage[style=archaeologie,backend=biber]{biblatex}
\addbibresource{mwe.bib}
\begin{document}
In \cite{Met} Aristotle says that “everyone takes what is called ‘wisdom’
(\emph{sophia}) to be blablabla …
\printbibliography
\end{document}