按数字和字母顺序对参考文献进行排序

按数字和字母顺序对参考文献进行排序

考虑以下文本

\documentclass[pageno]{jpaper}
\begin{document}

Technology has been introduced in various ways \cite{HAR02}. 
One of them is the usage of mobile phones\cite{LIU07, AKR09}.

\bstctlcite{bstctl:etal, bstctl:nodash, bstctl:simpurl}
\bibliographystyle{IEEEtranS}
\bibliography{references}
\end{document}

bib 文件包含

@IEEEtranBSTCTL{bstctl:etal,
  CTLuse_forced_etal = {no},
  CTLmax_names_forced_etal = {3},
} 

@IEEtranBSTCTL{bstctl:nodash,
  CTLdash_repeated_names = {no},
}

@IEEEtranBSTCTL{bstctl:simpurl,
  CTLname_url_prefix = {Available: },
}

@article{HAR02,
  Author = {A. Author},
  Title = {The Title},
  Year = {2002}
}

@article{AKR09,
  Author = {B. Akreman},
  Title = {The Title},
  Year = {2009}
}

@article{LIU07,
  Author = {C. Liu},
  Title = {The Title},
  Year = {2007}
}

输出如下

Technology has been introduced in various ways [2]. 
One of them is the usage of mobile phones [3, 1].


 References:
 [1] B. Akreman ...
 [2] A. Haris ...
 [3] C. Liu ...

参考文献按字母顺序排列(如所述IEEEtranS)但问题是第二组参考文献没有按升序排列。如您所见,它是[3, 1]。我想看看[1, 3]

\cite{LIU07, AKR09}你可能会说我可以手动更改的顺序,\cite{AKR09, LIU07}但是对于各处大量的引用,这很容易出错。而且看起来也不太好看[12, 3, 15, 13, 5, 30]

有没有办法让全局按字母顺序排序,本地按数字排序?

答案1

加载cite包;它将为您排序和压缩参考文献:

\documentclass[pageno]{jpaper}
\usepackage{cite}

% this section just for the example %%%%%
\usepackage{filecontents}
\begin{filecontents*}{references.bib}
@article{HAR02,
  Author = {A. Author},
  Title = {The Title},
  Year = {2002}
}

@article{AKR09,
  Author = {B. Akreman},
  Title = {The Title},
  Year = {2009}
}

@article{LIU07,
  Author = {C. Liu},
  Title = {The Title},
  Year = {2007}
}
\end{filecontents*}
% this section just for the example %%%%%

\begin{document}

Technology has been introduced in various ways \cite{HAR02}. 
One of them is the usage of mobile phones\cite{LIU07, AKR09}.

\bstctlcite{bstctl:etal, bstctl:nodash, bstctl:simpurl}
\bibliographystyle{IEEEtranS}
\bibliography{references}
\end{document}

在此处输入图片描述

相关内容