TexStudio 之 参考文献对齐

先把问题抛出来:

配置是:win10 + TexStudio 2.12.8 + CTeX 2.9.0.152_Full,可能有点版本老,不过好用就行

TexStudio 之 参考文献对齐_第1张图片

可以看出来第二个和第三个参考文献和第一个并没有对齐。看了看代码

\documentclass{article}

\begin{document}
		\begin{flushleft}
			This is frist reference  \cite{IEEE2006IEEE}
			\\This is second reference \cite{Agrawal1993Mining}
			\\This is thrid reference \cite{Ji2007An}	
			
			\bibliographystyle{ieeetr}
			\bibliography{citation} 
		\end{flushleft}
\end{document}
也没有问题。再看看bib文件:
@article{IEEE2006IEEE,
  title={IEEE Standard for Local and Metropolitan Area Networks Virtual Bridged Local Area Networks},
  author={IEEE  Q},
  pages={0_1-285},
  year={2006},
}
@inproceedings{Agrawal1993Mining,
	title={Mining Association Rule between Sets of Items in Large Databese},
	author={Agrawal, R},
	booktitle={ACM SIGMOD Conference on Management of Data},
	year={1993},
}
@inproceedings{Ji2007An,
  title={An improved immune Q-learning algorithm},
  author={Ji, Zhengqiao and Wu, Q. M. J and Sid-Ahmed, M},
  booktitle={IEEE International Conference on Systems, Man and Cybernetics},
  pages={1636-1641},
  year={2007},
}

也没有问题。但是就是对不齐。。。

整了半天,在网上也找了很久,都没有解决方案。于是从头再来看,发现在报错时有一条很奇怪

Missing $ inserted. local area networks,'' pp.~0_

于是找到响应的.bbl文件
\begin{thebibliography}{1}

\bibitem{IEEE2006IEEE}
I.~Q, ``Ieee standard for local and metropolitan area networks virtual bridged
  local area networks,'' pp.~0_1--285, 2006.

\bibitem{Agrawal1993Mining}
R.~Agrawal, ``Mining association rule between sets of items in large
  databese,'' in {\em ACM SIGMOD Conference on Management of Data}, 1993.

\bibitem{Ji2007An}
Z.~Ji, Q.~M.~J. Wu, and M.~Sid-Ahmed, ``An improved immune q-learning
  algorithm,'' in {\em IEEE International Conference on Systems, Man and
  Cybernetics}, pp.~1636--1641, 2007.

\end{thebibliography}

把报错的这句local area networks,'' pp.~0_1--285, 2006.按照提示把pp.~0_1改为pp.~0$1,就好了。。。

接着我们把pp.~0_1改为pp.~001,发现也好用,只不过在pdf中的01变为001,不过不碍事。

总结,可能是在编译的时候,下划线会导致格式出问题,所以,要注意当你引用的参考文献的页码有下划线时要加上$,或者用0替换。


你可能感兴趣的:(Latex)