ACM-Reference-Format如何改成文献引用顺序和正文一致

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}

将两个BodeYoo文献顺序交换

\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}

编译两次,即可在交换两篇文献的编号

  • 21
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值