我的问题

我的问题

我用来backref在参考书目中每个引用前添加页码。我还需要在每个反向引用超链接前添加单词“page”。

main.tex

\documentclass{article}

\usepackage[numbers,sort&compress]{natbib}
\usepackage[colorlinks=true,linkcolor=blue,citecolor=blue,pagebackref]{hyperref}
\renewcommand*\backref[1]{\ifx#1\relax \else (page #1) \fi}

\begin{document}

Here goes the main text that I want to cite a few articles \cite{firstKey, secondKey, thirdKey, fourthKey, fifthKey, sixthKey}.

\bibliography{sample.bib} 
\bibliographystyle{ieeetr}

\end{document}

sample.bib

@article{firstKey,
    author =       "Albert Einstein",
    title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
    [{On} the electrodynamics of moving bodies]",
    journal =      "Annalen der Physik",
    volume =       "322",
    number =       "10",
    pages =        "891--921",
    year =         "1905",
    DOI =          "http://dx.doi.org/10.1002/andp.19053221004",
    keywords =     "physics"
}

@book{secondKey,
    title={The Principles of Quantum Mechanics},
    author={Paul Adrien Maurice Dirac},
    isbn={9780198520115},
    series={International series of monographs on physics},
    year={1981},
    publisher={Clarendon Press},
    keywords = {physics}
}

@online{thirdKey,
    author    = "Donald Knuth",
    title     = "Knuth: Computers and Typesetting",
    url       = "http://www-cs-faculty.stanford.edu/~uno/abcde.html",
    keywords  = "latex,knuth"
}

@inbook{fourthKey,
    author = "Donald E. Knuth",
    title = "Fundamental Algorithms",
    publisher = "Addison-Wesley",
    year = "1973",
    chapter = "1.2",
    keywords  = "knuth,programming"
}

@article{fifthKey,
  title={Cavity optomechanics},
  author={Aspelmeyer, Markus and Kippenberg, Tobias J and Marquardt, Florian},
  journal={Reviews of Modern Physics},
  volume={86},
  number={4},
  pages={1391},
  year={2014},
  publisher={APS}
}


@article{sixthKey,
  title={Optomechanics},
  author={Marquardt, Florian and Girvin, Steven M},
  journal={Physics},
  volume={2},
  pages={40},
  year={2009},
  publisher={APS}
}

该文件如下所示:



以下是我想引用几篇文章的正文[1-6]

参考

[1] A. Einstein,《电子动力学演变史》。 (德语)[论运动物体的电动力学],”Annalen der Physik,第 322 卷,第 10 期,第 891{921 页,1905 年。(第 1 页)

[2] PAM Dirac,《量子力学原理》。国际物理学专著系列,克拉伦登出版社,1981年。

[3] D. Knuth,“计算机与排版”。

[4] DE Knuth,《基本算法》,第 1.2 章。Addison-Wesley,1973 年。

[5] M. Aspelmeyer、TJ Kippenberg 和 F. Marquardt,《腔光机械》,《现代物理评论》,第 86 卷,第 4 期,第 1391 页,2014 年。

[6] F. Marquardt 和 SM Girvin,《光力学》,物理学,第 2 卷,第 40 页,2009 年。(第 1 页)



我的问题

为什么参考文献部分的参考文献 2-5 前面没有 backref?

相关内容