Biblatex 样式无法更改

Biblatex 样式无法更改

我正在尝试更改 biblatex 的默认样式,但没有成功。我按照此处给出的说明进行操作书目不按风格改变(删除所有文件并重新运行 latex + biber + later),但对我来说不起作用。样式不会改变!

我的 MWE:

\documentclass{book}
\usepackage[english]{babel} 
\usepackage[style=numeric, language=english, backend=biber]{biblatex}
\usepackage{csquotes}
\addbibresource{citavi.bib}

\begin{document}
\section{Test document}
I would like to cite this in style numeric. \cite{McCullagh.1999}

\printbibliography
\end{document}

使用 citvai.bib 文件:

% This file was created with Citavi 5.7.0.0

@book{McCullagh.1999,
 author = {McCullagh, Peter and Nelder, John Ashworth},
 year = {1999},
 title = {Generalized linear models},
 keywords = {Generalized linear model;Logistic regression},
 edition = {2. ed., [Nachdr.]},
 volume = {37},
 publisher = {{Chapman {\&} Hall}},
 isbn = {978-0-412-31760-6},
 shorthand = {McCullagh et al. 1999},
 language = {eng},
 location = {London},
 series = {Monographs on statistics and applied probability},
 abstract = {},
 pagetotal = {511},
 note = {Nelder, John Ashworth (VerfasserIn)},
 file = {http://gso.gbv.de/DB=2.1/PPNSET?PPN=606199969}
}

输出:

在此处输入图片描述

在此处输入图片描述

我正在使用 Texmaker、pdflatex 来编译和biber %运行 Bib(la)tex。

答案1

您需要shorthand从条目中删除该字段。该shorthand字段将覆盖由 生成的标签biblatex,请参阅第 24 页biblatex文档

[shorthand是] 引用样式使用的特殊标记,而不是通常的标签。如果定义,它将覆盖默认标签。

通常,使用shorthands类似于作者年份的引用标签是一个非常糟糕的主意;如果您想要作者年份引用,请使用style=authoryear并让biblatex标签为您找出答案 - 如果您对作者年份标签的细节不满意,请找到一种方法来使用选项和其他命令进行调整,而不是对其进行硬编码shorthandshorthand如果您的作品应该始终使用某种速记而不是自动生成的标签来引用,则应谨慎使用。

你的.bib条目还有其他一些怪癖,我会选择

@book{McCullagh.1999,
  author    = {McCullagh, Peter and Nelder, John Ashworth},
  year      = {1999},
  title     = {Generalized linear models},
  edition   = {2},% <- if you insist, you can go back to edition = {2. ed., [Nachdr.]},
  publisher = {Chapman \& Hall},
  location  = {London},
  series    = {Monographs on statistics and applied probability},
  number    = {37},
  isbn      = {978-0-412-31760-6},
  pagetotal = {511},
  language  = {english},
  keywords  = {Generalized linear model;Logistic regression},
  file      = {http://gso.gbv.de/DB=2.1/PPNSET?PPN=606199969}
}

相关内容