1

I use lyx , elsevier class. I choose the citations to be natbib/numerical, style : plainnat. The citations in the produced pdf are not numbered. I am not sure how to number the citations. The lyx exported latex code is shown blow.

    %% LyX 2.1.4 created this file.  For more info, see http://www.lyx.org/.
    %% Do not edit unless you really know what you are doing.
    \documentclass[10pt,authoryear]{elsarticle}
    \usepackage{fontspec}
    \usepackage{geometry}
    \geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in}
    \usepackage{color}
    \usepackage{array}
    \usepackage{graphicx}
    \usepackage{setspace}
    \usepackage{esint}
    \doublespacing

    \makeatletter

     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
    %% Because html converters don't know tabularnewline
    \providecommand{\tabularnewline}{\\}

    \usepackage{geometry}
    \usepackage{caption}
    \captionsetup{labelfont=large}
    \renewcommand{\arraystretch}{1.5}

    \makeatother

    \begin{document}
    {\large{}\bibliographystyle{kluwer}
    \bibliography{citation}
    }{\large \par}
    \end{document}
Yan Song
  • 121
  • 1
    With a minimal test case I get numbered citations, can you add the exported LaTeX code and/or the .lyx file to your question? (Remove all the content except for a citation or two first, so best make a copy.) – Torbjørn T. Oct 12 '15 at 20:50
  • @TorbjørnT. I included the latex code exported by lyx. – Yan Song Oct 12 '15 at 21:07

1 Answers1

1

You seem to have added authoryear to the class settings, which are found in Document --> Settings --> Document class. elsarticle loads natbib with the numbers option (for numerical citations), but authoryear overrides this. Removing that should fix the issue.

By the way, there are three bibliography styles specifically for Elsevier documents, so you would probably want to set elsarticle-num as the bibliography style.

Torbjørn T.
  • 206,688