使用 biblatex 仅引用第一作者姓氏

使用 biblatex 仅引用第一作者姓氏

我正在尝试将 ShareLatex 与引用包一起使用biblatex,但是,我无法仅使用引用中的第一作者姓氏来进行引用。

最小示例如下:

\documentclass{article}
\begin{filecontents}{\jobname.bib}
@ARTICLE{Cid-Fernandes+05,
   author = {{Cid Fernandes}, R. and {Mateus}, A. and {Sodr{\'e}}, L. and 
    {Stasi{\'n}ska}, G. and {Gomes}, J.~M.},
    title = "{Semi-empirical analysis of Sloan Digital Sky Survey galaxies - I. Spectral synthesis method}",
  journal = {\mnras},
   eprint = {astro-ph/0412481},
 keywords = {galaxies: evolution, galaxies: fundamental parameters, galaxies: statistics, galaxies: stellar content},
     year = 2005,
    month = apr,
   volume = 358,
    pages = {363-378},
      doi = {10.1111/j.1365-2966.2005.08752.x},
   adsurl = {},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Davies+07,
   author = {{Davies}, R.~I. and {M{\"u}ller S{\'a}nchez}, F. and {Genzel}, R. and 
    {Tacconi}, L.~J. and {Hicks}, E.~K.~S. and {Friedrich}, S. and 
    {Sternberg}, A.},
    title = "{A Close Look at Star Formation around Active Galactic Nuclei}",
  journal = {\apj},
archivePrefix = "arXiv",
   eprint = {0704.1374},
 keywords = {Galaxies: Active, Galaxies: Nuclei, Galaxies: Seyfert, Galaxies: Starburst, Infrared: Galaxies},
     year = 2007,
    month = dec,
   volume = 671,
    pages = {1388-1412},
      doi = {10.1086/523032},
   adsurl = {},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Davies+09,
   author = {{Davies}, R.~I. and {Maciejewski}, W. and {Hicks}, E.~K.~S. and 
    {Tacconi}, L.~J. and {Genzel}, R. and {Engel}, H.},
    title = "{Stellar and Molecular Gas Kinematics Of NGC 1097: Inflow Driven by a Nuclear Spiral}",
  journal = {\apj},
archivePrefix = "arXiv",
   eprint = {0903.0313},
 keywords = {galaxies: active, galaxies: individual: NGC 1097, galaxies: kinematics and dynamics, galaxies: nuclei, galaxies: spiral, infrared: galaxies},
     year = 2009,
    month = sep,
   volume = 702,
    pages = {114-128},
      doi = {10.1088/0004-637X/702/1/114},
   adsurl = {},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Riffel-Rogerio+09,
   author = {{Riffel}, R. and {Pastoriza}, M.~G. and {Rodr{\'{\i}}guez-Ardila}, A. and 
    {Bonatto}, C.},
    title = "{Probing the near-infrared stellar population of Seyfert galaxies}",
  journal = {\mnras},
archivePrefix = "arXiv",
   eprint = {0907.4144},
 primaryClass = "astro-ph.CO",
 keywords = {stars: AGB and post-AGB , circumstellar matter , infrared: stars},
     year = 2009,
    month = nov,
   volume = 400,
    pages = {273-290},
      doi = {10.1111/j.1365-2966.2009.15448.x},
   adsurl = {},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Riffel-Rogerio+11a,
   author = {{Riffel}, R. and {Riffel}, R.~A. and {Ferrari}, F. and {Storchi-Bergmann}, T.
    },
    title = "{Intermediate-age stars as the origin of low stellar velocity dispersion nuclear rings: the case of Mrk 1157}",
  journal = {\mnras},
archivePrefix = "arXiv",
   eprint = {1105.2487},
 keywords = {methods: data analysis, galaxies: individual: Mrk 1157, galaxies: individual: NGC 591, galaxies: Seyfert, galaxies: stellar content},
     year = 2011,
    month = sep,
   volume = 416,
    pages = {493-500},
      doi = {10.1111/j.1365-2966.2011.19061.x},
   adsurl = {http://adsabs.harvard.edu/abs/2011MNRAS.416..493R},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Riffel-Rogemar+10a,
   author = {{Riffel}, R. and {Storchi-Bergmann}, T. and {Riffel}, R. and 
    {Pastoriza}, M.~G.},
    title = "{Intermediate-age Stars as Origin of the Low-velocity Dispersion Nuclear Ring in Mrk 1066}",
  journal = {\apj},
archivePrefix = "arXiv",
   eprint = {1002.2534},
 keywords = {galaxies: individual: Mrk 1066, galaxies: nuclei, galaxies: Seyfert, galaxies: stellar content, infrared: galaxies},
     year = 2010,
    month = apr,
   volume = 713,
    pages = {469-474},
      doi = {10.1088/0004-637X/713/1/469},
   adsurl = {http://adsabs.harvard.edu/abs/2010ApJ...713..469R},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

\end{filecontents}
\usepackage[utf8]{inputenc}

\usepackage[backend=biber,style=authoryear-comp,citestyle=authoryear-comp]{biblatex}
\AtEveryBibitem{%
  \clearfield{issn} % Remove issn
  \clearfield{doi} % Remove doi
  \clearfield{eprint} % Remove ARCHIVE
  \clearfield{title} % Remove title
  \ifentrytype{online}{}{% Remove url except for @online

    \clearfield{url}
  }
}

\addbibresource{\jobname.bib}

\title{Test}
\author{}
\date{April 2017}

\begin{document}

\maketitle

\section{Introduction}

This citation sequence should appear in the text as  (Cid-Fernandes et al. 2005, Davies et al. 2007,2009, Riffel et al., 2009, 2010,2011) {\bf and not as it actually appears}  \parencite{Cid-Fernandes+05,Davies+07,Davies+09, Riffel-Rogerio+09,Riffel-Rogerio+11a,Riffel-Rogemar+10a} 

\printbibliography

\end{document}

引用顺序应在文中显示为

(Cid-Fernandes 等人 2005 年;Davies 等人 2007 年、2009 年;Riffel 等人 2009 年、2010 年、2011 年)

这是天文学出版物的默认样式,例如 MNRAS 和 ApJ。

而不是实际出现的样子(bibtex 的默认样式)

(Cid Fernandes 等人 2005 年;Davies、Maciejewski 等人 2009 年;Davies、Muller Sanchez 等人 2007 年;RA Riffel 等人 2010 年;R. Riffel、Pastoriza 等人 2009 年;R. Riffel、RA Riffel 等人 2011 年)

有人可以帮我弄这个吗?

答案1

引文和参考书目中显示的名称数量由包选项maxnamesminnamesmaxbibnamesminbibnamesmaxcitenames和决定mincitenames

如果希望引用和参考书目名称列表相同,请使用前两个;如果对引用和参考书目有不同的要求,请使用bib和版本。cite

\usepackage[style=authoryear-comp,maxnames=1]{biblatex}

biblatex也会尽可能地消除姓名列表的歧义,maxnames如果有两篇论文的第一作者相同但第二作者不同,这将覆盖该值。这由选项控制uniquelist。因此,对于您的情况,您需要:

\usepackage[style=authoryear-comp,maxnames=1,uniquelist=false]{biblatex}

答案2

正如 Alan Munn 所建议的,为了获得期望的结果,您应该加载biblatex选项:

\usepackage[style=authoryear-comp,maxnames=1,uniquelist=false]{biblatex}

您提到的参考文献的剩余问题归因于您的.bib文件,因为您希望合并的名称在两个条目之间是不同的,一个Riffel-Rogerio+07Riffel-Rogerio+06“{Riffel},R。”,另一个是Riffel-Rogemar+10a“{Riffel},R.~A。”。biblatex由于名称不同,因此无法知道这是否是同一个人。假设是,您可以从中删除“A。”Riffel-Rogemar+10a以获得您想要的(或在其他条目上添加“A。”)。

像这样:

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@ARTICLE{Cid-Fernandes+05,
   author = {{Cid Fernandes}, R. and {Mateus}, A. and {Sodr{\'e}}, L. and 
    {Stasi{\'n}ska}, G. and {Gomes}, J.~M.},
    title = "{Semi-empirical analysis of Sloan Digital Sky Survey galaxies - I. Spectral synthesis method}",
  journal = {\mnras},
   eprint = {astro-ph/0412481},
 keywords = {galaxies: evolution, galaxies: fundamental parameters, galaxies: statistics, galaxies: stellar content},
     year = 2005,
    month = apr,
   volume = 358,
    pages = {363-378},
      doi = {10.1111/j.1365-2966.2005.08752.x},
   adsurl = {http://adsabs.harvard.edu/abs/2005MNRAS.358..363C},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Davies+07,
   author = {{Davies}, R.~I. and {M{\"u}ller S{\'a}nchez}, F. and {Genzel}, R. and 
    {Tacconi}, L.~J. and {Hicks}, E.~K.~S. and {Friedrich}, S. and 
    {Sternberg}, A.},
    title = "{A Close Look at Star Formation around Active Galactic Nuclei}",
  journal = {\apj},
archivePrefix = "arXiv",
   eprint = {0704.1374},
 keywords = {Galaxies: Active, Galaxies: Nuclei, Galaxies: Seyfert, Galaxies: Starburst, Infrared: Galaxies},
     year = 2007,
    month = dec,
   volume = 671,
    pages = {1388-1412},
      doi = {10.1086/523032},
   adsurl = {http://adsabs.harvard.edu/abs/2007ApJ...671.1388D},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Davies+09,
   author = {{Davies}, R.~I. and {Maciejewski}, W. and {Hicks}, E.~K.~S. and 
    {Tacconi}, L.~J. and {Genzel}, R. and {Engel}, H.},
    title = "{Stellar and Molecular Gas Kinematics Of NGC 1097: Inflow Driven by a Nuclear Spiral}",
  journal = {\apj},
archivePrefix = "arXiv",
   eprint = {0903.0313},
 keywords = {galaxies: active, galaxies: individual: NGC 1097, galaxies: kinematics and dynamics, galaxies: nuclei, galaxies: spiral, infrared: galaxies},
     year = 2009,
    month = sep,
   volume = 702,
    pages = {114-128},
      doi = {10.1088/0004-637X/702/1/114},
   adsurl = {http://adsabs.harvard.edu/abs/2009ApJ...702..114D},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Riffel-Rogerio+09,
   author = {{Riffel}, R. and {Pastoriza}, M.~G. and {Rodr{\'{\i}}guez-Ardila}, A. and 
    {Bonatto}, C.},
    title = "{Probing the near-infrared stellar population of Seyfert galaxies}",
  journal = {\mnras},
archivePrefix = "arXiv",
   eprint = {0907.4144},
 primaryClass = "astro-ph.CO",
 keywords = {stars: AGB and post-AGB , circumstellar matter , infrared: stars},
     year = 2009,
    month = nov,
   volume = 400,
    pages = {273-290},
      doi = {10.1111/j.1365-2966.2009.15448.x},
   adsurl = {http://adsabs.harvard.edu/abs/2009MNRAS.400..273R},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Riffel-Rogerio+11a,
   author = {{Riffel}, R. and {Riffel}, R.~A. and {Ferrari}, F. and {Storchi-Bergmann}, T.
    },
    title = "{Intermediate-age stars as the origin of low stellar velocity dispersion nuclear rings: the case of Mrk 1157}",
  journal = {\mnras},
archivePrefix = "arXiv",
   eprint = {1105.2487},
 keywords = {methods: data analysis, galaxies: individual: Mrk 1157, galaxies: individual: NGC 591, galaxies: Seyfert, galaxies: stellar content},
     year = 2011,
    month = sep,
   volume = 416,
    pages = {493-500},
      doi = {10.1111/j.1365-2966.2011.19061.x},
   adsurl = {http://adsabs.harvard.edu/abs/2011MNRAS.416..493R},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@ARTICLE{Riffel-Rogemar+10a,
   author = {{Riffel}, R. and {Storchi-Bergmann}, T. and {Riffel}, R. and 
    {Pastoriza}, M.~G.},
    title = "{Intermediate-age Stars as Origin of the Low-velocity Dispersion Nuclear Ring in Mrk 1066}",
  journal = {\apj},
archivePrefix = "arXiv",
   eprint = {1002.2534},
 keywords = {galaxies: individual: Mrk 1066, galaxies: nuclei, galaxies: Seyfert, galaxies: stellar content, infrared: galaxies},
     year = 2010,
    month = apr,
   volume = 713,
    pages = {469-474},
      doi = {10.1088/0004-637X/713/1/469},
   adsurl = {http://adsabs.harvard.edu/abs/2010ApJ...713..469R},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

\end{filecontents}

\usepackage[style=authoryear-comp,maxnames=1,uniquelist=false]{biblatex}

\addbibresource{\jobname.bib}

\begin{document}

This citation sequence should appear in the text as
(Cid Fernandes et al. 2005, Davies et al. 2007, 2009, Riffel et al., 2009, 2010, 2011) {\bf and so it does}
\parencite{Cid-Fernandes+05,Davies+07,Davies+09, Riffel-Rogerio+09,Riffel-Rogerio+11a,Riffel-Rogemar+10a}

\end{document}

结果是:

在此处输入图片描述

但是,看起来这确实是两个不同的作者(他们都在 中被提及Riffel-Rogerio+11a)。如果是这样,你应该坚持使用“A。”并感谢biblatex你没有让你犯错误引用。

在此处输入图片描述

在这种情况下,如果您希望只有两个作者的姓氏,尽管相同,但您应该添加uniquename=false到选项中biblatex

相关内容