我试图在.bib
文件中引用一本书中的一些章节,但是当我编译文件时.tex
,我发现有些章节没有作者姓名。我不知道原因,也不知道该如何解决。有什么建议吗?
代码:
@inbook{bitam2014bio1,
title={Bio-inspired Routing Protocols for Vehicular Ad-Hoc Networks},
author={Bitam, Salim and Mellouk, Abdelhamid},
chapter = {Vehicular Ad Hoc Networks},
year={2014},
publisher={John Wiley \& Sons}
}
@inbook{bitam2014bio2,
title={Bio-inspired Routing Protocols for Vehicular Ad-Hoc Networks},
author={Bitam, Salim and Mellouk, Abdelhamid},
chapter = {Routing for Vehicular Ad Hoc Networks},
year={2014},
publisher={John Wiley \& Sons}
}
@inbook{bitam2014bio3,
title={Bio-inspired Routing Protocols for Vehicular Ad-Hoc Networks},
author={Bitam, Salim and Mellouk, Abdelhamid},
chapter = {Conventional Routing Protocols for VANETs},
year={2014},
publisher={John Wiley \& Sons}
}
@inbook{bitam2014bio4,
title={Bio-inspired Routing Protocols for Vehicular Ad-Hoc Networks},
author={Bitam, Salim and Mellouk, Abdelhamid},
chapter = {Bio-inspired Routing Protocols for VANETs},
year={2014},
publisher={John Wiley \& Sons}
}
输出:
答案1
您似乎误用了该chapter
字段。我建议您将该chapter
字段重命名为title
,更改title
为booktitle
,在字段中提供数字chapter
,并提供pages
字段。
正如@moewe 在评论中指出的那样,为这本书的四个章节提供单独的条目实际上没有什么意义。您可能希望为整本书提供一个条目,并在引用标注中更具体地说明您引用的是哪一章。
完整的 MWE 保留四个单独的条目(每章一个):
\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@inbook{bitam2014bio1,
title = "Vehicular Ad~Hoc Networks",
booktitle = "Bio-inspired Routing Protocols for Vehicular Ad-Hoc Networks",
author = "Bitam, Salim and Mellouk, Abdelhamid",
chapter = 1,
pages = "1-27",
year = 2014,
publisher = "John Wiley~\& Sons",
}
@inbook{bitam2014bio2,
title = "Routing for Vehicular Ad~Hoc Networks",
booktitle = "Bio-inspired Routing Protocols for Vehicular Ad-Hoc Networks",
author = "Bitam, Salim and Mellouk, Abdelhamid",
chapter = 2,
pages = "29-48",
year = 2014,
publisher = "John Wiley~\& Sons",
}
@inbook{bitam2014bio3,
title = "Conventional Routing Protocols for {VANETs}",
booktitle = "Bio-inspired Routing Protocols for Vehicular Ad-Hoc Networks",
author = "Bitam, Salim and Mellouk, Abdelhamid",
chapter = 3,
pages = "49-78",
year = 2014,
publisher = "John Wiley~\& Sons",
}
@inbook{bitam2014bio4,
title = "Bio-inspired Routing Protocols for {VANETs}",
booktitle = "Bio-inspired Routing Protocols for Vehicular Ad-Hoc Networks",
author = "Bitam, Salim and Mellouk, Abdelhamid",
chapter = 4,
pages = "79-119",
year = 2014,
publisher = "John Wiley~\& Sons",
}
\end{filecontents}
\documentclass{IEEEtran}
\usepackage[backend=biber,style=ieee,dashed=false]{biblatex}
\addbibresource{mybib.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}