0

I have LaTex document with this preamble

\documentclass[12pt,1p]{elsarticle}
\usepackage[cmex10]{amsmath}
\usepackage{array}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{enumitem}
\usepackage[utf8]{inputenc}
\usepackage{multirow}
\pagestyle{empty}

Referring to the literature I get The links look like

\section*{References}
\bibliographystyle{elsarticle-num}
\bibliography{bibliography}

How do I get the alternation of literature through a dash, like this? [1-9] For references I use the command \cite

  • 3
    Welcome to TeX.SX! Wild guess, but try \documentclass[12pt,1p,sort&compress]{elsarticle} (i.e., add the sort&compress option). – Phelype Oleinik May 28 '19 at 14:47
  • Why did you tag the cite-package? The elsarticle document class loads the natbib package automatically, and the natbib and cite packages are mutually incompatible with each other. – Mico May 28 '19 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.