BibTex book chapter title
Hi,
Having got fed up with Word I've recently started using LaTeX. But I've been curious as to why my bibliographies have not shown book titles or book authors for book chapters with different authors (but has shown the chapter title/author). In the .bib file the book chapter entry is exported using the BibTeX '@inbook' entry type, which seems fine at first glance. But after some digging I discovered that all BibTeX documentation states that the @inbook entry field can contain *either* an author or an editor and similarly title, chapter *or* pages. Now this would be fine if you literally wanted a section from a book by one author, but is not suitable for the case stated above.
So what is wrong? Well for the case of the book chapter (which I would suggest is a different scenario to a book section) the bibliography entry type needs to be '@incollection' - this will allow different book title/chapter titles as well as authors/editors. One more point is that the book title is exported to the .bib in the 'journal' field which needs changing to the 'booktitle' field.
Chris
Having got fed up with Word I've recently started using LaTeX. But I've been curious as to why my bibliographies have not shown book titles or book authors for book chapters with different authors (but has shown the chapter title/author). In the .bib file the book chapter entry is exported using the BibTeX '@inbook' entry type, which seems fine at first glance. But after some digging I discovered that all BibTeX documentation states that the @inbook entry field can contain *either* an author or an editor and similarly title, chapter *or* pages. Now this would be fine if you literally wanted a section from a book by one author, but is not suitable for the case stated above.
So what is wrong? Well for the case of the book chapter (which I would suggest is a different scenario to a book section) the bibliography entry type needs to be '@incollection' - this will allow different book title/chapter titles as well as authors/editors. One more point is that the book title is exported to the .bib in the 'journal' field which needs changing to the 'booktitle' field.
Chris
I agree with Chris, the booktitle field is exported as journal field, this generate problems while compiling bibtex.
Is there a way to "customize" the exported fields name?
fede
Devs, I will post to the dev-list a modification of bibtex export which creates two type maps, one for bibtex2zotero & one for zotero2bibtex. The zotero2bibtex can either have strings or functions. If the value is a function the function is called with the zotero item as its argument, and returns the bibtex type. The means that the function can then check features of the item to decide what bibtex type it should be. In this case it checks if the item has an author & an editor, if so, its incollection, otherwise inbook.
This would require more work for the other way round, since the whole bibtex record would need to be read before the type was decided.
P.S. sorry it sounds like I'm complaining a lot! For the record, I absolutely love Zotero as it really has taken the strain out of managing papers, and I'm still trying to convert my colleagues. I'm just nit-picking so it can be even better!
Also the @inproceedings document type seems to be broken as one cannot assign any editors to the proceedings! However bibtex does allow proceedings to have editors.
I would really appreciate a bugfix. Scanned the "For developers" section but did not see a simple way to define new document types by myself. Is there a bugtracker somewhere?
BTW zotero rocks. For the most part.
I like working with zotero, thanks!
But the BibTex export is still a a problem to me (like to others) as I miss the BibTeX entry type @incollection. Any solution upcoming or do I have to manually edit all the BibTex entries? Unfortunately I'm not into coding and can therefore not offer fixing anything myself..
But for the rest, thanks for zotero.
Regards
Mirjam
if(item.publicationTitle) {
if(item.itemType == "chapter"
|| item.itemType == "conferencePaper") {
writeField("booktitle", item.publicationTitle);
} else {
writeField("journal", item.publicationTitle);
}
}
I believe the second line should be:
if(item.itemType == "chapter"
|| item.itemType == "conferencePaper
|| item.itemType == "bookSection" {
writeField("booktitle", item.publicationTitle);
After this change the export of incollections worked for me.
My Conference Paper get exported as @INBOOK but it should be @INPROCEEDINGS. At least my bibliography then contains the required information.
I think I'm using the style from http://www.zotero.org/styles/bibtex and I'm rightclicking my Zotero entry and select Create Bilbiography, then select Bibtex generic citation style (dev).
I'd prefer if "Export Seletected Items" could export to the clipboard though.
Another way that almost works me is to drag my item into JabRef. That's not so comfortable on my tiny 12" screen though.
The BibTeX CSL is really just a proof of concept & is not a very robust means for data export.
The bug itself is still valid though I'd say.