GeneralProblem with bibtex - @inbook/@book crossref

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Slanter
Posts: 2
Joined: Thu Apr 10, 2008 1:24 am

Problem with bibtex - @inbook/@book crossref

Post by Slanter »

Hi,

I'm a new LaTeX user... I'm running the TeXShop program on Mac OSX, and I use the BibDesk program to compile .bib files for use in LaTeX.

I am having a problem with getting the @inbook references in .bib files to properly extract editor/book title information from the cross referenced @book reference. For example, I have a .bib file that has the following references:

Code: Select all

@inbook{Frew1997,
	Author = {Frew, N.M.},
	Crossref = {Liss1997},
	Date-Added = {2008-04-09 12:46:14 -0600},
	Date-Modified = {2008-04-09 14:00:39 -0600},
	Pages = {121--173},
	Title = {The role of organic films in air-sea gas exchange}}

@book{Liss1997,
	Booktitle = {The Sea Surface and Global Change},
	Date-Added = {2008-04-09 12:43:55 -0600},
	Date-Modified = {2008-04-09 14:00:23 -0600},
	Editor = {Liss, P.S. and Duce, R.A.},
	Publisher = {Cambridge University Press},
	Year = {1997}}

If I run bibtex to compile this (citing Frew1997 with \nocite{Frew1997}), and then run LaTeX to typeset it, I get the following error in the console:
"Warning--can't use both author and editor fields in Frew1997"

This results in a citation that looks like this:
Frew, N. (1997). The role of organic films in air-sea gas exchange, pages 121–173. Cambridge University Press.

So it's pulling some information, but I want the editor and book title in there too.

By contrast, I can make the @inproceedings cross reference work fine, for example if I use this .bib file:

Code: Select all

@inproceedings{Frew1997,
	Author = {Frew, N.M.},
	Crossref = {Liss1997},
	Date-Added = {2008-04-09 12:46:14 -0600},
	Date-Modified = {2008-04-09 14:02:15 -0600},
	Pages = {121--173},
	Title = {The role of organic films in air-sea gas exchange}}

@proceedings{Liss1997,
	Booktitle = {The Sea Surface and Global Change},
	Date-Added = {2008-04-09 12:43:55 -0600},
	Date-Modified = {2008-04-09 14:01:28 -0600},
	Editor = {Liss, P.S. and Duce, R.A.},
	Publisher = {Cambridge University Press},
	Year = {1997}}
and do the same thing, I don't get the error, and I get the following reference:

Frew, N. (1997). The role of organic films in air-sea gas exchange. In Liss, P. and Duce, R., editors, The Sea Surface and Global Change, pages 121–173. Cambridge University Press.

Which is what I want.


So does anybody have any idea why the "In proceedings" crossref works fine, while the "in book" doesn't? I know that the "in book" is extracting information from the referenced entry, because it pulls the date from there. Any ideas?

Thanks,
Brent.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Problem with bibtex - @inbook/@book crossref

Post by gmedina »

Please avoid double posting (or at least inform that you have posted your question in more than one board), this question appears in this thread from another forum[1].

[1]www.cqf.info/
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Slanter
Posts: 2
Joined: Thu Apr 10, 2008 1:24 am

Re: Problem with bibtex - @inbook/@book crossref

Post by Slanter »

Didn't realize the communities were related. Sorry. I'm just looking for an answer to a problem I've spent enough hours on already.
Post Reply