如何从 natbib 中的参考书目中删除不需要的文本?

如何从 natbib 中的参考书目中删除不需要的文本?

我在 Overleaf 上使用 natbib 包。我的 .bib 文件中没有任何地方提到“Pages 2”。我使用的是 plainnat 样式。我该如何删除它?

考虑 .bib 文件中图像中参考文献 2 和 3 的以下片段:

@Article{Ghavamzadeh2016survey,
  author       = {Mohammad Ghavamzadeh and Shie Mannor and Joelle Pineau and Aviv Tamar},
  date         = {2016-09-14},
  journaltitle = {Foundations and Trends in Machine Learning, Vol. 8: No. 5-6, pp 359-492, 2015},
  title        = {Bayesian Reinforcement Learning: A Survey},
  doi          = {10.1561/2200000049},
  eprint       = {1609.04436},
  eprintclass  = {cs.AI},
  eprinttype   = {arXiv},
  year = {2016},
  number       = {5-6},
  pages        = {359--483},
  volume       = {8},
  file         = {:http\://arxiv.org/pdf/1609.04436v1:PDF},
  groups       = {Bayesian RL},
  keywords     = {cs.AI, cs.LG, stat.ML},
  publisher    = {Now Publishers},
}

@Book{Hawkins2005,
  author    = {Hawkins, Jeff},
  date      = {2005},
  title     = {On intelligence},
  isbn      = {9780805078534},
  location  = {New York},
  publisher = {Henry Holt and Co},
  groups    = {Cognitive Science},
  year      = {2005},
}

我正在使用以下“include.tex”文件。也许他正在干扰natbib?

\usepackage[a4paper,hmargin=2cm,vmargin=2.0cm,includeheadfoot]{geometry}
\usepackage{textpos}
\usepackage{natbib} % for bibliography
\usepackage{tabularx,longtable,multirow,subfigure,caption}%hangcaption
%\usepackage{fancyhdr} % page layout
\usepackage{url} % URLs
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{dsfont}
\usepackage{epstopdf} % automatically replace .eps with .pdf in graphics
\usepackage{backref} % needed for citations
\usepackage{array}
\usepackage{latexsym}
\usepackage{accessibility}
\usepackage[pdftex,pagebackref,hypertexnames=false,colorlinks]{hyperref}

在此处输入图片描述

除此之外,我还使用

\bibliographystyle{plainnat}

在主文件的开头。

希望对您有所帮助。我不知道如何制作等效的最小可重复版本。

答案1

pages xxx是对您引用该作品的页面的引用。如果您不想要这个,请不要backref在序言中提出请求。

\documentclass{article}

\usepackage[a4paper,hmargin=2cm,vmargin=2.0cm,includeheadfoot]{geometry}
\usepackage{textpos}
\usepackage{natbib} % for bibliography
\usepackage{tabularx,longtable,multirow,subfigure,caption}%hangcaption
%\usepackage{fancyhdr} % page layout
\usepackage{url} % URLs
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{dsfont}
\usepackage{epstopdf} % automatically replace .eps with .pdf in graphics
%\usepackage{backref} % needed for citations
\usepackage{array}
\usepackage{latexsym}
\usepackage{accessibility}
\usepackage[pdftex,
%pagebackref,
hypertexnames=false,colorlinks]{hyperref}

\begin{filecontents*}[overwrite]{\jobname.bib}
@Article{Ghavamzadeh2016survey,
  author       = {Mohammad Ghavamzadeh and Shie Mannor and Joelle Pineau and Aviv Tamar},
  date         = {2016-09-14},
  journaltitle = {Foundations and Trends in Machine Learning, Vol. 8: No. 5-6, pp 359-492, 2015},
  title        = {Bayesian Reinforcement Learning: A Survey},
  doi          = {10.1561/2200000049},
  eprint       = {1609.04436},
  eprintclass  = {cs.AI},
  eprinttype   = {arXiv},
  year = {2016},
  number       = {5-6},
  pages        = {359--483},
  volume       = {8},
  file         = {:http\://arxiv.org/pdf/1609.04436v1:PDF},
  groups       = {Bayesian RL},
  keywords     = {cs.AI, cs.LG, stat.ML},
  publisher    = {Now Publishers},
}

@Book{Hawkins2005,
  author    = {Hawkins, Jeff},
  date      = {2005},
  title     = {On intelligence},
  isbn      = {9780805078534},
  location  = {New York},
  publisher = {Henry Holt and Co},
  groups    = {Cognitive Science},
  year      = {2005},
}

\end{filecontents*}

\begin{document}

\cite{Hawkins2005,Ghavamzadeh2016survey}

\bibliographystyle{plainnat}
\bibliography{\jobname}

\end{document}

在此处输入图片描述

相关内容