# Natbib shows reference style without square brackets

I'm trying to get natbib to display the \bibliographystyle{aaai-named} as this documents shows.

But when I try, I do not get that result there are no square brackets around the author name and author year.

My code:

\documentclass[english, oneside, 12pt]{memoir}

\usepackage[square, authoryear]{natbib}

\begin{document}
\citep{agrawal2014development}

\bibliographystyle{aaai-named}
\bibliography{References}
\end{document}


References.bib:

@article{agrawal2014development,
title={Development and Comparison of Open Source based Web GIS Frameworks on WAMP and Apache Tomcat Web Servers},
author={Agrawal, Sonam and Gupta, Rajan Dev},
journal={Proceedings International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences},
volume={4},
pages={1--5},
year={2014}
}


Edit 1: Minimal example was written wrong. It is now updated.

• You want the \bibliographystyle{aaai-named} but write \bibliographystyle{apalike}. aaai-named is a bibliographystyle different. – Romain Picot Sep 22 '15 at 11:28
• You are correct, @RomainPicot - that happens when you create minimal examples and still experiments with what could be wrong. It is now updated, but still not succeeding – Rasmus Bækgaard Sep 22 '15 at 11:38
• Does natbib should be used? I can provide an answer without. – Romain Picot Sep 22 '15 at 11:39
• No, if you can make the same type of citation and the correct form of \bibliographystyle, it will be great. – Rasmus Bækgaard Sep 22 '15 at 11:41
• My bad I've made a mistake and used apalike and not aaai-named :/ – Romain Picot Sep 22 '15 at 11:44

Without natbib and using apalike:

MWE:

\documentclass[english, oneside, 12pt]{book}

\begin{document}
\cite{agrawal2014development}

\bibliographystyle{apalike}
\bibliography{References}
\end{document}

• @RasmusBækgaard you're welcome – Romain Picot Sep 22 '15 at 11:59