使用 IEEEtran 类的 bibtex 对齐问题

使用 IEEEtran 类的 bibtex 对齐问题

我的参考书目中只有第一个参考文献在页边距内正确对齐。其他参考文献都超出了左侧和右侧的页边距。

\documentclass[10pt,journal,cspaper,compsoc]{IEEEtran}      
\usepackage{verbatim}
\usepackage{draftwatermark}

\ifCLASSOPTIONcompsoc
% IEEE Computer Society needs nocompress option
% requires cite.sty v4.0 or later (November 2003)
\usepackage[nocompress]{cite}

\begin{document}

\IEEEtriggeratref{5}
\bibliographystyle{IEEEtran}
\bibliography{IEEEabrv, ExpObs} 

\end{document}

输出

使用 .bib 文件(文件图片链接.bib

.bib 文件

% This file was created with JabRef 2.9.2.
% Encoding: Cp1252

@ARTICLE{Abran1996,
author = {Abran, Alain and Robillard, Pierre N.},
title = {Function points analysis: An empirical study of its measurement processes},
journal = {Software Engineering, {IEEE} Transactions on},
year = {1996},
volume = {22},
pages = {895–910},
number = {12},
file = {[PDF] from    etsmtl.ca:C:\Users\jbeach\AppData\Roaming\Zotero\Zotero\Profiles\v8c7aoky.default\zotero\storage\T7CRESRV\Abran and Robillard - 1996 - Function points analysis An empirical study of it.pdf:application/pdf;Snapshot:C:\Users\jbeach\AppData\Roaming\Zotero\Zotero\Profiles\v8c7aoky.default\zotero\storage\MD2F63TH\login.html:text/html},
shorttitle = {Function points analysis},
url = {http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=553638},
urldate = {2013-04-12}
}

@ARTICLE{Albrecht1983,
author = {Albrecht, Allan J. and Gaffney Jr, John E.},
title = {Software function, source lines of code, and development effort prediction:
a software science validation},
journal = {Software Engineering, {IEEE} Transactions on},
year = {1983},
pages = {639–648},
number = {6},
file = {Snapshot:C:\Users\jbeach\AppData\Roaming\Zotero\Zotero\Profiles\v8c7aoky.default\zotero\storage\AFMVVT4Z\login.html:text/html},
shorttitle = {Software function, source lines of code, and development effort prediction},
url = {http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1703110},
urldate = {2013-04-05}
}

答案1

我测试了你的例子并且它运行良好:

\listfiles
\documentclass[10pt,journal,cspaper,compsoc]{IEEEtran}      
\usepackage{verbatim}
\usepackage{draftwatermark}
\usepackage{url}
\ifCLASSOPTIONcompsoc
% IEEE Computer Society needs nocompress option
% requires cite.sty v4.0 or later (November 2003)
\usepackage[nocompress]{cite}
\usepackage{filecontents}
\begin{filecontents}{minimalbib.bib}
% This file was created with JabRef 2.9.2.
% Encoding: Cp1252

@ARTICLE{Abran1996,
author = {Abran, Alain and Robillard, Pierre N.},
title = {Function points analysis: An empirical study of its measurement processes},
journal = {Software Engineering, {IEEE} Transactions on},
year = {1996},
volume = {22},
pages = {895–910},
number = {12},
file = {[PDF] from    etsmtl.ca:C:\Users\jbeach\AppData\Roaming\Zotero\Zotero\Profiles\v8c7aoky.default\zotero\storage\T7CRESRV\Abran and Robillard - 1996 - Function points analysis An empirical study of it.pdf:application/pdf;Snapshot:C:\Users\jbeach\AppData\Roaming\Zotero\Zotero\Profiles\v8c7aoky.default\zotero\storage\MD2F63TH\login.html:text/html},
shorttitle = {Function points analysis},
url = {http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=553638},
urldate = {2013-04-12}
}

@ARTICLE{Albrecht1983,
author = {Albrecht, Allan J. and Gaffney Jr, John E.},
title = {Software function, source lines of code, and development effort prediction:
a software science validation},
journal = {Software Engineering, {IEEE} Transactions on},
year = {1983},
pages = {639–648},
number = {6},
file = {Snapshot:C:\Users\jbeach\AppData\Roaming\Zotero\Zotero\Profiles\v8c7aoky.default\zotero\storage\AFMVVT4Z\login.html:text/html},
shorttitle = {Software function, source lines of code, and development effort prediction},
url = {http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1703110},
urldate = {2013-04-05}
}
\end{filecontents}
\begin{document}
Text\nocite{*}
\IEEEtriggeratref{5}
\bibliographystyle{IEEEtran}
\bibliography{minimalbib} 

\end{document}

在此处输入图片描述

文件列表:

 *File List*
IEEEtran.cls    2012/12/27 V1.8 by Michael Shell
  ot1ppl.fd    2001/06/04 font definitions for OT1/ppl.
verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
draftwatermark.sty    2006/06/30 1.0 Put a gray textual watermark on document p
ages
everypage.sty    2007/06/20 1.1 Hooks to run on every page
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
   color.sty    2005/11/14 v1.0j Standard LaTeX Color (DPC)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
     url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
    cite.sty    2010/09/10  v 5.3
filecontents.sty    2011/10/08 v1.3 Create an external file from within a LaTeX
 document
supp-pdf.mkii
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
  grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)
kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
    test.bbl
  ot1phv.fd    2001/06/04 scalable font definitions for OT1/phv.
 ***********

答案2

我在使用 IEEEtran 和 Overleaf 时也遇到了同样的问题。就我而言,url 出现了问题:abs_all.jsp?arnumber=1703110 被误解为 abs_{a}ll,Overleaf 抱怨数学文本超出了 $$ 环境,并使参考书目其余部分错位。在 .bib 导出期间,请尝试避免使用“url”和“doi”字段。

答案3

如果 URL 中有下划线符号,就会出现问题。在您的示例中,“/abs_all” 就是这种情况

http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1703110

应避免在 URL 中使用下划线。

希望这有帮助。

答案4

\在下划线前添加应该可以解决问题。我遇到了同样的问题,当我在 URL 中替换了_with后,问题就解决了。\_

相关内容