IEEE Trans.投稿LaTeX参考文献首行对齐问题求助
IEEE Transactions投稿LaTeX参考文献首词偏移问题解决
问题描述
准备IEEE Transactions最终投稿LaTeX文件时,将bib文件生成的bibitems嵌入主tex后,发现每条参考文献的首个单词存在轻微右偏的对齐问题(每条参考文献开头的作者名未与左侧对齐,位置偏右)。
最小复现代码
\documentclass[journal, ]{IEEEtran} \usepackage{amsfonts} \usepackage{threeparttable} \usepackage{tabularx} \begin{document} \title{Example} \author{ABC \thanks{ } \thanks{ }} \maketitle \begin{abstract} This is just an example \end{abstract} \begin{IEEEkeywords} NTT, ABC \end{IEEEkeywords} \section{Introduction} \IEEEPARstart{W}{ith} Quantum Computer, current PKC algorithms are at risk \cite{rsa} and elliptic curve cryptography \cite{ecc},\cite{shor} \cite{kyber}. \bibliographystyle{IEEE} \begin{thebibliography}{} \bibitem{rsa} R.~L. Rivest, A.~Shamir, and L.~Adleman, ``A method for obtaining digital signatures and public-key cryptosystems,'' \emph{Communications of the ACM}, vol.~21, no.~2, pp. 120--126, 1978. \bibitem{ecc} V.~S. Miller, ``Use of elliptic curves in cryptography,'' in \emph{Conference on the theory and application of cryptographic techniques}.\hskip 1em plus 0.5em minus 0.4em\relax Springer, 1985, pp. 417--426. \bibitem{shor} P.~W. Shor, ``Algorithms for quantum computation: discrete logarithms and factoring,'' in \emph{Proceedings 35th annual symposium on foundations of computer science}.\hskip 1em plus 0.5em minus 0.4em\relax IEEE, 1994, pp. 124--134. \bibitem{kyber} R.~Avanzi, J.~Bos, L.~Ducas, E.~Kiltz, T.~Lepoint, V.~Lyubashevsky, J.~M. Schanck, P.~Schwabe, G.~Seiler, and D.~Stehl{\'e}, ``{CRYSTALS}-{K}yber algorithm specifications and supporting documentation,'' \emph{NIST PQC Round}, vol.~2, no.~4, pp. 1--43, 2019. \end{thebibliography} \end{document}
解决方案
1. 修正thebibliography环境参数
IEEEtran文档类的thebibliography环境需要指定参数来确定参考文献编号的宽度,以此实现内容的正确左对齐。如果参考文献数量少于10,将\begin{thebibliography}{}改为\begin{thebibliography}{9};若数量在10-99之间,则改为\begin{thebibliography}{99}。
2. 清理自动生成的多余格式命令
部分转换工具生成bibitem时会加入不必要的\hskip命令,这些命令会破坏对齐效果,直接删除即可。
修改后的参考文献片段示例:
\bibliographystyle{IEEE} \begin{thebibliography}{9} \bibitem{rsa} R.~L. Rivest, A.~Shamir, and L.~Adleman, ``A method for obtaining digital signatures and public-key cryptosystems,'' \emph{Communications of the ACM}, vol.~21, no.~2, pp. 120--126, 1978. \bibitem{ecc} V.~S. Miller, ``Use of elliptic curves in cryptography,'' in \emph{Conference on the theory and application of cryptographic techniques}, Springer, 1985, pp. 417--426. \bibitem{shor} P.~W. Shor, ``Algorithms for quantum computation: discrete logarithms and factoring,'' in \emph{Proceedings 35th annual symposium on foundations of computer science}, IEEE, 1994, pp. 124--134. \bibitem{kyber} R.~Avanzi, J.~Bos, L.~Ducas, E.~Kiltz, T.~Lepoint, V.~Lyubashevsky, J.~M. Schanck, P.~Schwabe, G.~Seiler, and D.~Stehl{\'e}, ``{CRYSTALS}-{K}yber algorithm specifications and supporting documentation,'' \emph{NIST PQC Round}, vol.~2, no.~4, pp. 1--43, 2019. \end{thebibliography}
内容的提问来源于stack exchange,提问作者Khalid
相关产品推荐
相关产品推荐

