bibtex com inbook e book crossref: por que crossref está faltando $ = True, embora crossref seja reconhecido?

bibtex com inbook e book crossref: por que crossref está faltando $ = True, embora crossref seja reconhecido?

Estou usando o bibtex para organizar minha bibliografia. Quero citar um capítulo de um livro. A melhor maneira de ler quando se tem autor e editores é usar crossref e um inbook e uma entrada de livro, por exemplo: (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.},
}

No entanto, se eu executar o bibtex, em um arquivo latex

\documentclass{scrartcl}

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

sempre me dá o aviso:

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

Não entendo isso, pois foi por isso que dividi em livro e livro, mas ainda estou recebendo esse erro. No arquivo bibstyle eu encontrei

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
} 

Testei algumas coisas e parece que crossref missing$ sempre dá True como resposta. Ele NÃO deve testar se os campos do autor e do editor estão presentes se uma referência cruzada for fornecida. Isso é estranho, já que ele definitivamente reconhece a referência cruzada, caso contrário ele mostraria um erro...

Responder1

A solução é alterar o tipo de entrada da primeira entrada de @inbookpara @inproceedings.

insira a descrição da imagem aqui

\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}

informação relacionada