[Tex/LaTex] Alignment issue with bibtex using IEEEtran class

bibtexieeetran

Only the first reference of my bibliography is correctly aligned within the margins. The other references go outside the margins to the left and right.

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

Output

Using .bib file (link to an image of the .bib file)

.bib file

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

Best Answer

I tested your example and it works fine:

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

enter image description here

File List:

 *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.
 ***********