我经常引用同一本书,只是页码不同。所以我想在引用时将页码放在参数中,这样我就不必一遍又一遍地为同一本书创建新的 bib 条目。
beinhaltet allerdings nicht bereits ein Spiel ist\cite{chou2019actionable}.
应该变成类似
beinhaltet allerdings nicht bereits ein Spiel ist\cite[pages={35-39}]{chou2019actionable}.
我使用以下几行来创建 bib,我认为它是 Bibtex?我使用了模板,这是我用 LaTeX 创建的第一个文档,所以我仍在学习。我认为没有加载属于参考书目的包:
\bibliography{bibliography/references}{}
\bibliographystyle{ieeetr}
我所参考书籍的 bib 条目如下所示:
@inbook{chou2019actionable,
title={Actionable gamification: Beyond points, badges, and leaderboards},
author={Chou, Yu-kai},
year={2019},
publisher={Packt Publishing Ltd},
pages={1}
}
答案1
我在这里发布了一个完整的例子,只是因为它比在评论中更容易...随你便吧:-)
\documentclass{article}
\begin{filecontents}[overwrite]{mwe.bib}
@book{jane1980,
author = "Jane Doe",
title = "Matrix Computations",
edition = "4th Edition",
publisher = "The Johns Hopkins University Press",
address = "Baltimore, Maryland",
year = "2013",
}
@inbook{chou2019actionable,
title={Actionable gamification: Beyond points, badges, and leaderboards},
author={Chou, Yu-kai},
year={2019},
publisher={Packt Publishing Ltd},
pages={1}
}
\end{filecontents}
\usepackage[english]{babel}
\usepackage[style=ieee]{biblatex}
\addbibresource{mwe.bib}
\begin{document}
According to some sources “Lorem ipsum novum.” \cite[p.~20]{jane1980}.
\citeauthor{chou2019actionable} readily agrees \cite[pp.~35--39]{chou2019actionable}.
\printbibliography
\end{document}