LaTex代码:
\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-base}
ACM-Reference-Format是按照作者-年对文献进行编号
因此在正文中的文献编号会出现乱序
分析:
出现乱序的原因是因为,ACM-Reference-Format包设置的ACM-Reference-Format模板是按照作者-年编号进行排序。因此,可以采用编译生成好的 \begin{thebibliography} …\end{thebibliography} 块,这样能够保证文献风格是ACM,然后再手动调整块内的元素顺序。
解决办法:
1. 方法一: 对ACM-Reference-Format包进行重写,这个不太会,所以我采用了下面方法二的笨方法
2. 方法二: 首先复制编译生成的 .bbl 文件下的所有内容
\begin{thebibliography}{2}
##########
省略ACM-Reference-Format模板格式化代码
##########
\bibitem[Yoo et~al\mbox{.}(2003)]%
{yoo2003slurm}
\bibfield{author}{\bibinfo{person}{Andy~B Yoo}, \bibinfo{person}{Morris~A
Jette}, {and} \bibinfo{person}{Mark Grondona}.}
\bibinfo{year}{2003}\natexlab{}.
\newblock \showarticletitle{Slurm: Simple linux utility for resource
management}. In \bibinfo{booktitle}{\emph{Workshop on job scheduling
strategies for parallel processing}}. Springer, \bibinfo{pages}{44--60}.
\newblock
\bibitem[Bode et~al\mbox{.}(2000)]%
{bode2000portable}
\bibfield{author}{\bibinfo{person}{Brett Bode}, \bibinfo{person}{David~M
Halstead}, \bibinfo{person}{Ricky Kendall}, \bibinfo{person}{Zhou Lei}, {and}
\bibinfo{person}{David Jackson}.} \bibinfo{year}{2000}\natexlab{}.
\newblock \showarticletitle{The portable batch scheduler and the maui scheduler
on linux clusters}. In \bibinfo{booktitle}{\emph{4th Annual Linux Showcase \&
Conference (ALS 2000)}}.
\newblock
\end{thebibliography}
然后复制下面的LaTeX代码后面
\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-base}
然后,删除 .bbl 文件和注释下面的代码
\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-base}
将两个Bode和Yoo文献顺序交换
\begin{thebibliography}{2}
##########
省略ACM-Reference-Format模板格式化代码
##########
\bibitem[Bode et~al\mbox{.}(2000)]%
{bode2000portable}
\bibfield{author}{\bibinfo{person}{Brett Bode}, \bibinfo{person}{David~M
Halstead}, \bibinfo{person}{Ricky Kendall}, \bibinfo{person}{Zhou Lei}, {and}
\bibinfo{person}{David Jackson}.} \bibinfo{year}{2000}\natexlab{}.
\newblock \showarticletitle{The portable batch scheduler and the maui scheduler
on linux clusters}. In \bibinfo{booktitle}{\emph{4th Annual Linux Showcase \&
Conference (ALS 2000)}}.
\newblock
\bibitem[Yoo et~al\mbox{.}(2003)]%
{yoo2003slurm}
\bibfield{author}{\bibinfo{person}{Andy~B Yoo}, \bibinfo{person}{Morris~A
Jette}, {and} \bibinfo{person}{Mark Grondona}.}
\bibinfo{year}{2003}\natexlab{}.
\newblock \showarticletitle{Slurm: Simple linux utility for resource
management}. In \bibinfo{booktitle}{\emph{Workshop on job scheduling
strategies for parallel processing}}. Springer, \bibinfo{pages}{44--60}.
\newblock
\end{thebibliography}
编译两次,即可在交换两篇文献的编号