使用 bibtex 将“Sec.”替换为“Chap.”

使用 bibtex 将“Sec.”替换为“Chap.”

我正在使用 bibtex 来组织文档的参考书目。其中一个参考文献如下:

我想修改的参考资料

以下是 .bib 文件中相应的条目:

@inbook{Fetter_Walecka,
  author       = {A.~L.~Fetter and J.~D.~Walecka}, 
  title        = {Theoretical Mechanics of Particles and Continua},
  publisher    = {Dover},
  year         = 2003,
  address      = {New York},
  chapter      = 33,
}

我想修改显示的结果,将“Chap.”替换为“Sec.”

我正在使用apsrev4-1参考书目风格。

答案1

除了提供可选type字段(如您在答案中所展示的),您可能还想 (a) 将字段名称更改titlebooktitle和 (b) 回填实际title字段以及相应pages字段。建议进行这些更改的原因是您实际上并不是引用整本书,而只是引用其中的一小部分;因此,如果您预先提供这些信息,您的读者可能会很感激。

或者,您可以只创建一个类型的条目@book,并使用引文标注来指定引用完整出版物的哪一部分。例如,

@book{Fetter_Walecka,
  author       = {Alexander L. Fetter and John D. Walecka}, 
  booktitle    = {Theoretical Mechanics of Particles and Continua},
  publisher    = {Dover},
  address      = {New York},
  year         = 2003,
}

随着

\citep[sec.~33]{Fetter_Walecka}

完整的 MWE (最小工作示例):

在此处输入图片描述

\documentclass{article}
\begin{filecontents}[overwrite]{mybib.bib}
@inbook{Fetter_Walecka,
  author       = {Alexander L. Fetter and John D. Walecka}, 
  title        = {Example: Charged Particle in an Electromagnetic Field},
  booktitle    = {Theoretical Mechanics of Particles and Continua},
  publisher    = {Dover},
  address      = {New York},
  year         = 2003,
  chapter      = 33,
  type         = "sec.",
  pages        = "179-180",
}
\end{filecontents}

\usepackage[authoryear]{natbib}
\bibliographystyle{apsrev4-1}

\begin{document}
\cite{Fetter_Walecka}
\bibliography{mybib}
\end{document}

答案2

只需添加字段“type”,如下所示:

@inbook{Fetter_Walecka,
  author       = {A.~L.~Fetter and J.~D.~Walecka}, 
  title        = {Theoretical Mechanics of Particles and Continua},
  publisher    = {Dover},
  year         = 2003,
  address      = {New York},
  chapter      = 33,
  type         = "Sec."
}

相关内容