TransWikia.com

"Sec." instead of "Chap." with bibtex

TeX - LaTeX Asked by AndreaPaco on December 13, 2020

I am using bibtex to organize the bibliography of a document. One of the references is the following:

Reference which I would like to modify

and here is the corresponding entry in the .bib file:

@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,
}

I would like to modify the displayed result in such a way to replace "Chap." with "Sec."

I am using the apsrev4-1 bibliography style.

2 Answers

In addition to supplying the optional type field, as you've demonstrated in your answer, you may also want to (a) change the name of the title field to booktitle and (b) back-fill the real title field as well as the corresponding pages field. The reason for suggesting these changes is that you're not really citing an entire book but just a brief part; hence, your readers may appreciate if you furnish this information up front.

Alternatively, you could just create an entry of type @book and use the citation call-out to specify which part of the full publication is being cited. E.g.,

@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,
}

along with

citep[sec.~33]{Fetter_Walecka}

A full MWE (minimum working example):

enter image description here

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}

Correct answer by Mico on December 13, 2020

Just add the field "type", as follows:

@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."
}

Answered by AndreaPaco on December 13, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP