andras-simonyi / citeproc-el

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

Cross-references acrosss multiple BibTeX files #87

Closed rudolf-adamkovic closed 2 years ago

rudolf-adamkovic commented 2 years ago

I have the following .bib file:

@Book{bennett+2015,
  editor       = {Tanya Long Bennett and Donna Gessell and Diana
                  Edelman-Young},
  title        = {Contribute a Verse},
  publisher    = {University of North Georgia Press},
  year         = 2015,
  subtitle     = {A Guide to First Year Composition},
  url          = {https://ung.edu/university-press/books/introduction-to-first-year-composition/}
}

@InBook{pearson-2015,
  author       = {J. Stephen Pearson},
  title        = {Writing in the Social and Physical Sciences},
  chapter      = 10,
  year         = 2015,
  pages        = {146-165},
  crossref     = {bennett+2015}
}

This works in Org and citeproc.el:

Pearson, J. S. (2015). Writing in the social and physical sciences: A guide to first year composition (T. L. Bennett, D. Gessell, & D. Edelman-Young, Eds.; pp. 146–165). University of North Georgia Press. https://ung.edu/university-press/books/introduction-to-first-year-composition/

Alas, if I put the two BibTeX items into two separate files, it stops working, namely the rendered reference item has no @Book part:

Pearson, J. S. (2015). Writing in the social and physical sciences (pp. 146–165).

I thought Org (or citeproc.el) concatenate all .bib files, and cross-references should thus work.

andras-simonyi commented 2 years ago

Thanks for reporting this, will try to push a fix shortly.

andras-simonyi commented 2 years ago

I've merged a PR (#88) which should fix this problem.

rudolf-adamkovic commented 2 years ago

@andras-simonyi I can confirm that this works now. Thank you so much!

Old:

Pearson, J. S. (2015). Writing in the social and physical sciences (pp. 146–165).

New:

Pearson, J. S. (2015). Writing in the social and physical sciences: A guide to first year composition (T. L. Bennett, D. Gessell, & D. Edelman-Young, Eds.; pp. 146–165). University of North Georgia Press. https://ung.edu/university-press/books/introduction-to-first-year-composition/