使用 natbib 刪除參考書目中作者、標題和期刊之間的換行符

使用 natbib 刪除參考書目中作者、標題和期刊之間的換行符

最近我必須改變我的文件的佈局,新的佈局使用natbib。 natbib 在作者姓名、標題和期刊名稱之間添加換行符的問題。

我沒有更改任何參數或重新定義文件中的任何內容,所以我想知道問題出在哪裡。

\usepackage[authoryear]{natbib}
\bibliographystyle{unsrtnat}
\setcitestyle{authoryear,open={(},close={)}}
\bibliography{sample}

我想將每個條目放在一行中(不是所有參考書目都放在一行中):範例:

王遠航、鄧超、吳軍、王迎春、熊耀。工程設備的糾正性維護計畫。工程失效分析,36:269–283,2014 年。

理查德·C·多爾夫和羅伯特·H·畢肖普。現代控制系統。皮爾遜,2011。

並不是:

王遠航、鄧超、吳軍、王迎春、熊耀。
工程設備的糾正性維護計畫。
工程失效分析,36:269–283,2014 年。

理查德·C·多爾夫和羅伯特·H·畢肖普。
現代控制系統。
皮爾遜,2011。

但這就是我得到的:

在此輸入影像描述

提前致謝。

更新:這是期刊提供給我的 cls 檔案:IWCOMP.cls

答案1

我可以使用該選項重現輸出openbib

\begin{filecontents*}{\jobname.bib}
@article{wang-et-al2014,
  author={{Yuanhang Wang} and {Chao Deng} and {Jun Wu} and {Yingchun Wang} and {Yao Xiong}},
  title={A corrective maintenance scheme for engineering equipment},
  journal={Engineering Failure Analysis},
  volume={36},
  pages={269–283},
  year=2014,
}
@book{dorf-bishop2011,
  author={Richard C. Dorf and Robert H. Bishop},
  title={Modern control systems},
  publisher={Pearson},
  year=2011,
}
\end{filecontents*}

\documentclass[openbib]{article}
\usepackage[authoryear]{natbib}

\begin{document}

\cite{wang-et-al2014}, \cite{dorf-bishop2011}

\bibliographystyle{unsrtnat}
\setcitestyle{authoryear,open={(},close={)}}
\bibliography{\jobname}

\end{document}

在此輸入影像描述

檢查您的文件類別是否未設定該選項。

相關內容