I'm trying to use ShareLatex with biblatex citing package, however, I'm not able to produce the citing using only the first author surname in the citations.
The minimal example is as follows:
\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}
The citation sequence should appear in the text as
(Cid-Fernandes et al. 2005,Davies et al. 2007,2009, Riffel et al., 2009, 2010,2011)
Which is the default style in astronomy publications, as MNRAS and ApJ, for example.
and not as it actually appears (the default style of bibtex)
(Cid Fernandes et al. 2005; Davies, Maciejewski, et al. 2009; Davies, Muller Sanchez, et al. 2007; R. A. Riffel et al. 2010; R. Riffel, Pastoriza, et al. 2009; R. Riffel, R. A. Riffel, et al. 2011)
Can someone help me with this?


biblatex's default behavior for the case, but can probably be reconfigured. In any case, you should not supply your code as a link, but rather include it here in your question, as a a MWEB. – gusbrs May 03 '17 at 19:55