网球比分直播第一 www.gqgyzr.com.cn

例子如下:

\begin{filecontents}{\jobname.bib}
@article{demo1,
  title   = {Some things {I} did},
  author  = {Other, A. N.},
  journal = {J. Irrep. Res.},
  year    = {2012},
  pages   = {x-y}
}

@article{demo2,
  title   = {Cool!},
  author  = {Nobacon, D.},
  journal = {Ann. Improb. Res.},
  year    = {2012},
  pages   = {a-b}
}
\end{filecontents}
\documentclass{article}
\usepackage[numbers,sort&compress]{natbib}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\[email protected]}
  {%
    \ifx\[email protected]@yr\relax
      \[email protected]@[email protected]{\@citea}%
    \else
      \[email protected]@[email protected]{--\[email protected]}%
    \fi
  }
  {%
    \[email protected]@[email protected]{--\[email protected]}%
  }
  {}{\FAIL}
\makeatother
\bibliographystyle{unsrtnat}
\begin{document}
\cite{demo1,demo2}
\bibliography{\jobname}
\end{document}

有興趣的話可以自行編譯。Happy LaTeXing!~

選自:https://tex.stackexchange.com/questions/86987/cite-like-1-2-instead-of-1-2/86991#86991