Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to force book sections converted to incollection in bibtex #3140

Open
airallergy opened this issue Jan 22, 2025 · 4 comments
Open

Option to force book sections converted to incollection in bibtex #3140

airallergy opened this issue Jan 22, 2025 · 4 comments

Comments

@airallergy
Copy link

Debug log ID

NB6PIA3X-refs-euc/7.0.5

What happened?

Opening this for #3139, it would be nice to have a global option to convert book sections to incollection regardless of whether there is a book author.

@airallergy
Copy link
Author

Hmmm, how come I got a notification for failed actions (notion sync). Seems that all runs in this action have failed in the past few days.

@retorquere
Copy link
Owner

Hmmm, how come I got a notification for failed actions (notion sync). Seems that all runs in this action have failed in the past few days.

Fixed now, thanks for reporting this

@retorquere
Copy link
Owner

What would be your desired output?

@airallergy
Copy link
Author

airallergy commented Jan 22, 2025

Oh, I should've provided this in the first place!

I mainly just want the editor field in addition to what I have now (A). If I understand correctly, you cannot have both author and editor in inbook, so it has to be incollection. When I tried to generate the expected output, I tried two methods (B and C) and I found something beyond my understanding.

  1. What is collaborator for? I don't seem to find it in this document, and it doesn't seem to be used by the style I'm using (elsarticle-harv).
  2. Why is the book title exported as journal if I put tex.entrytype: incollection to extra?

A - currently I get this

@inbook{chenFrCoMe2021,
  title = {Framing, Context, and Methods},
  booktitle = {Climate {{Change}} 2021: {{The Physical Science Basis}}. {{Contribution}} of {{Working Group I}} to the {{Sixth Assessment Report}} of the {{Intergovernmental Panel}} on {{Climate Change}}},
  author = {Chen, Deliang and Rojas, Maisa and Samset, Bj{\o}rn H. and Cobb, Kim and {Diongue-Niang}, Aida and Edwards, Paul and Emori, Seita and Faria, Sergio Henrique and Hawkins, Ed and Hope, Pandora and Huybrechts, Philippe and Meinshausen, Malte and Mustafa, Sawsan Khair Elsied Abdel Rahim and Plattner, Gian-Kasper and Treguier, Anne Marie},
  year = {2021},
  pages = {147--286},
  publisher = {Cambridge University Press},
  address = {Cambridge, United Kingdom \& New York, United States},
  doi = {10.1017/9781009157896.003},
  urldate = {2025-01-21},
  collaborator = {{IPCC}}
}

B - if I manually delete the book author, I get this

@incollection{chenFrCoMe2021,
  title = {Framing, Context, and Methods},
  booktitle = {Climate {{Change}} 2021: {{The Physical Science Basis}}. {{Contribution}} of {{Working Group I}} to the {{Sixth Assessment Report}} of the {{Intergovernmental Panel}} on {{Climate Change}}},
  author = {Chen, Deliang and Rojas, Maisa and Samset, Bj{\o}rn H. and Cobb, Kim and {Diongue-Niang}, Aida and Edwards, Paul and Emori, Seita and Faria, Sergio Henrique and Hawkins, Ed and Hope, Pandora and Huybrechts, Philippe and Meinshausen, Malte and Mustafa, Sawsan Khair Elsied Abdel Rahim and Plattner, Gian-Kasper and Treguier, Anne Marie},
  editor = {{Masson-Delmotte}, Val{\'e}rie and Zhai, Panmao and Pirani, Anna and Connors, Sarah L. and P{\'e}an, Clotilde and Chen, Yang and Goldfarb, Leah and Gomis, Melissa I. and Matthews, J.B. Robin and Berger, Sophie and Huang, Mengtian and Yelek{\c c}i, Ozge and Yu, Rong and Zhou, Baiquan and Lonnoy, Elisabeth and Maycock, Thomas K. and Waterfield, Tim and Leitzell, Katherine and Caud, Nada},
  year = {2021},
  pages = {147--286},
  publisher = {Cambridge University Press},
  address = {Cambridge, United Kingdom \& New York, United States},
  doi = {10.1017/9781009157896.003},
  urldate = {2025-01-21}
}

C - If I add tex.entrytype: incollection to extra, I get this

@incollection{chenFrCoMe2021,
  title = {Framing, Context, and Methods},
  author = {Chen, Deliang and Rojas, Maisa and Samset, Bj{\o}rn H. and Cobb, Kim and {Diongue-Niang}, Aida and Edwards, Paul and Emori, Seita and Faria, Sergio Henrique and Hawkins, Ed and Hope, Pandora and Huybrechts, Philippe and Meinshausen, Malte and Mustafa, Sawsan Khair Elsied Abdel Rahim and Plattner, Gian-Kasper and Treguier, Anne Marie},
  editor = {{Masson-Delmotte}, Val{\'e}rie and Zhai, Panmao and Pirani, Anna and Connors, Sarah L. and P{\'e}an, Clotilde and Chen, Yang and Goldfarb, Leah and Gomis, Melissa I. and Matthews, J.B. Robin and Berger, Sophie and Huang, Mengtian and Yelek{\c c}i, Ozge and Yu, Rong and Zhou, Baiquan and Lonnoy, Elisabeth and Maycock, Thomas K. and Waterfield, Tim and Leitzell, Katherine and Caud, Nada},
  year = {2021},
  journal = {Climate Change 2021: The Physical Science Basis. Contribution of Working Group I to the Sixth Assessment Report of the Intergovernmental Panel on Climate Change},
  pages = {147--286},
  publisher = {Cambridge University Press},
  address = {Cambridge, United Kingdom \& New York, United States},
  doi = {10.1017/9781009157896.003},
  urldate = {2025-01-21},
  collaborator = {{IPCC}}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants