I'm trying to cite in parenthesis format with the name of the author and the year but when I compile it, it keeps asking for the name of the author. here is my code:
\documentclass[10pt, a4paper]{elsarticle}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{natbib}
\usepackage{graphicx}
\begin{document}
\citet{H}
\section*{References}
\bibliographystyle{elsarticle-num}
\bibliography{Biblio}
\end{document}
and here is my .bib file:
@article{AAA,
author = {AAAuthor},
title = {TTTitle},
year = {2017}
}

\citet{AAA}, and you should run:latex myfile.tex,bibtex myfile.aux,latex myfile.tex,latex myfile.texto get the reference list properly resolved. – jon Apr 04 '15 at 00:44plainnatresolves the problem. – Mike Renfro Apr 04 '15 at 00:51