inbook と book の crossref を含む bibtex: crossref が認識されているのに、なぜ crossref が見つからないのですか?

inbook と book の crossref を含む bibtex: crossref が認識されているのに、なぜ crossref が見つからないのですか?

私は bibtex を使用して参考文献を整理しています。本の章を引用したいのですが、著者と編集者の両方がいる場合、crossref と inbook および book エントリを使用するのが最善の方法です。例: (bib_test.bib)

@inbook{inbook,
  author = {A. Inbook-Author},
  title = {The title of the inbook entry},
  pages = {1--5},
  chapter = {1},
  crossref = "book",
}

@book{book,
  title = {A title of the book entry},
  booktitle = {A title of the book entry},
  year = 2013,
  editor = {E. Book-Editor},
  publisher = {Book Publishing Inc.},
}

しかし、LaTeXファイルでbibtexを実行すると

\documentclass{scrartcl}

\begin{document}
\cite{inbook}
\bibliographystyle{style}
\bibliography{bib_test}
\end{document}

いつも次のような警告が出ます:

Warning--can't use both author and editor fields in inbook

私はこれを理解できません。なぜなら、私がそれをinbookとbookに分割した理由だからです。それでもこのエラーが発生します。私が見つけたbibstyleファイルで

FUNCTION {inbook}
{ output.bibitem
  author empty$
    { format.editors "author and editor" output.check
    } 
    { format.authors output.nonnull
      crossref missing$
        { "author and editor" editor either.or.check }
        'skip$
      if$
    }
  if$
  title empty$ 'skip$ 'setup.inlinelink if$ % urlbst
  format.btitle "title" output.check
  format.edition output 
  crossref missing$
    {
      format.publisher.address output
      format.bvolume output
      format.chapter.pages "chapter and pages" output.check
      format.number.series output
    }
    {
      format.chapter.pages "chapter and pages" output.check
      format.book.crossref output.nonnull
    }
  if$

  format.date "year" output.check
  date.block
  format.pages "pages" output.check
  format.doi output
  format.note output
  fin.entry
} 

いくつかテストしてみましたが、crossref missing$ は常に True を返すようです。crossref が指定されている場合は、author フィールドと editor フィールドの両方が存在するかどうかをテストすべきではありません。crossref は確実に認識されているので、これは奇妙です。そうでなければ、エラーが表示されます...

答え1

解決策は、最初のエントリのエントリ タイプを から に変更すること@inbookです@inproceedings

ここに画像の説明を入力してください

\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@inproceedings{inbook,
  author = {A. Inbook-Author},
  title = {The title of the inbook entry},
  pages = {1--5},
  chapter = {1},
  crossref = "book",
}
@book{book,
  title = {A title of the book entry},
  booktitle = {A title of the book entry},
  year = 2013,
  editor = {E. Book-Editor},
  publisher = {Book Publishing Inc.},
  address   = "Anytown",
}
\end{filecontents}

\documentclass{article}
\bibliographystyle{style} % downloaded from site indicated by OP

\begin{document}
\cite{inbook}
\bibliography{mybib}
\end{document}

関連情報