recently I had to change the layout of my document, and the new layout uses natbib. The issue that natbib is adding a line break between author's name, title and journal name.
I'm not changing any parameter or redefining anything in the document so I wonder where can be the problem.
\usepackage[authoryear]{natbib}
\bibliographystyle{unsrtnat}
\setcitestyle{authoryear,open={(},close={)}}
\bibliography{sample}
I want to have each entry in one line (not all the bibliography in one line): example:
Yuanhang Wang, Chao Deng, Jun Wu, Yingchun Wang, and Yao Xiong. A corrective maintenance scheme for engineering equipment. Engineering Failure Analysis, 36:269–283, 2014.
Richard C Dorf and Robert H Bishop. Modern control systems. Pearson, 2011.
and not:
Yuanhang Wang, Chao Deng, Jun Wu, Yingchun Wang, and Yao Xiong.
A corrective maintenance scheme for engineering equipment.
Engineering Failure Analysis, 36:269–283, 2014.
Richard C Dorf and Robert H Bishop.
Modern control systems.
Pearson, 2011.
But this is what I'm getting:
Thanks in advance.
Update: This is the cls file the journal provided me: IWCOMP.cls
natbib
is primarily a citation management package. The formatting of bibliographic entries is not governed bynatbib
, but by the bibliography style that's in use. Curiously, the particular output you're showing in the screenshot does not look anything like what's generally known to be produced by theunsrtnat
style. Do you maybe have more than one\bibliographystyle
instruction in your document?unsrtnat.bst
file that's on your system somehow got corrupted, please perform the following diagnostic check: Download the filehttps://www.ctan.org/tex-archive/macros/latex/contrib/natbib/unsrtnat.bst
from the CTAN, copy it to the directory that contains your main tex file (andsample.bib
too, presumably), and perform a full recompilation cycle: LaTeX, BibTeX, and LaTeX twice more. Does the odd-ball formatting of the bibliographic entries persist?