如何使用 IEEE 书目样式的 natbib 获取 backref

如何使用 IEEE 书目样式的 natbib 获取 backref

我想知道如何让后面的引用“ (cited on page 1)”文本显示在文档的参考书目部分。

这是我的 MWE:

\documentclass[a4paper,titlepage,10pt,twoside,openright]{report}

\usepackage{lipsum}
\begin{filecontents}{IEEEexample.bib}
@inBook{Wolff1962,
  Title                    = {Philosophia prima sive Ontologia},
  Author                   = {Wolff, Christian von},
  Editor                   = {Jean Ecole},
  Publisher                = {Olms},
  Address                  = {Hildesheim},
  Year                     = {1962},
  Part                     = {Abt. 2: Lateinische Schriften},
  Maintitle                = {Gesammelte Werke},
  Volume                   = {3},
  langid                   = {german}
}

@inBook{other1999,
  Title                    = {The title in english},
  Author                   = {Last, Name},
  Editor                   = {Editor Name},
  Publisher                = {Springer},
  Address                  = {New York},
  Year                     = {1999},
  Part                     = {1},
  Maintitle                = {The Maintitle},
  Volume                   = {3},
}

@techreport{Natarajan2011,
author = {Natarajan, Nagarajan and Singh-Blom, Ulf Martin and Tewari, Ambuj and Woods, John O and Dhillon, Inderjit S and Marcotte, Edward M},
file = {:Users/jwoods/Downloads/Papers/Natarajan2011.pdf:pdf},
journal = {UTCS Technical Report},
title = {{Predicting gene\textendash disease associations using multiple species data.}},
volume = {TR-11-37},
year = {2011},
type = {techreport},
keywords = {Technical Report}}

\end{filecontents}

\usepackage[square,numbers,sort&compress]{natbib}

\begin{document}
\chapter{Test Chapter Name}
\lipsum[1] \cite{Wolff1962}

\lipsum[2] \cite{Natarajan2011}



\bibliographystyle{IEEEtran}
\bibliography{IEEEexample.bib}

\end{document} 

答案1

如果您不使用hyperref包,就像在 MWE 中一样,则必须加载包backref。相反,如果您实际上使用了hyperref,请不要明确加载backref,而是在传递给的选项中 添加backref或更好。pagebackrefhyperref

重要提示:这些选项属于应在加载时提供的选项集,并且无法稍后使用 激活 \hypersetup

如果这会触发“选项冲突” hyperref,请将其从选项列表中删除,但在文件开头添加命令\PassOptionsToPackage{pagebackref}{hyperref}

这对于 bibtex 路线来说成立,与 无关natbib。对于 biblatex 路线,本论坛上有帖子,您可以在您最喜欢的搜索引擎中搜索 backref + biblatex 来获取。

相关内容