andras-simonyi / citeproc-el

A CSL 1.0.2 Citation Processor for Emacs.
GNU General Public License v3.0
84 stars 9 forks source link

bibtex's @inbook redered incorrectly #145

Closed coloquio closed 8 months ago

coloquio commented 8 months ago

I'm using org-cite to create a bibliography in a pdf document, and I'm having problems with the rendering of bibtex's @inbook using csl

pdfcreator={Emacs 28.2 (Org mode 9.5.5)},

+bibliography: /path/to/org/dupTest.bib

+cite_export: csl /path/to/org/csl/apa.csl

Bibtex entry:

@inbook{Giddens1974, author = {Giddens, Anthony}, booktitle = {Elites and Power in British society}, chapter = {Elites in the British Class Structure}, editor = {Stanworth, Philip and Giddens, Anthony}, pages = {22--44}, publisher = {London, New York: Cambridge University Press}, timestamp = {2010.02.15}, year = {1974} }

Converted in the *.tex file to: (\citeprocitem{4}{Giddens, 1974})

rendered in pdf as: Giddens, A. (1974). In P. Stanworth & A. Giddens (Eds.), Elites and power in british society (pp. 22-44). London, New York: Cambridge University Press.

which:

AFAIK csl does not have the bibtex's type @inbook, which should be converted to the equivalent "chapter". Is citeproc working this way? Am I making a wrong turn at some point?

Sincerely,

andras-simonyi commented 8 months ago

Hello, unfortunately inBook type items are a little complicated, because on the LaTeX-side citeproc-el's main target is biblatex and inBook is one of the few entry types where biblatex is not fully BibTeX compatible. The simple fix is to use title instead of chapter (this is how biblatex expects the information). As for capitalization, this depends on the used CSL style, the APA style you chose seems to use lower case titles. (Note that you can still keep British in its capitalized form using the usual BibTeX "protecting braces", e.g., {B}ritish.)

coloquio commented 8 months ago

Thanks.