參考書目風格“unsrt”不起作用

參考書目風格“unsrt”不起作用

我正在使用unsrtbibliographystyle,但在 pdf 的參考文獻部分中得到了錯誤的序列。這是 .tex 檔的內容:

\documentclass{article}
\bibliographystyle{unsrt}
\title{\textbf{\large{Title Goes Here}}}
\author{
Author Name
}
\date{\today}
\begin{document}
\maketitle
\section{Introduction} 
I am using unsrt.
I want to cite these two: ~\cite{JMechPhysSol_analytical} and ~\cite{OrigPaper}.
But they appear in the reverse order.
\begin{thebibliography}{00}
  \bibitem{OrigPaper}
  J. Cheng, E. H. Jordan, B. Barber, M. Gell, 
  ``Thermal/Residual Stress in an Electron Beam Physical Vapor Deposited Thermal Barrier          
  \textit{Acta Mater.}, \textbf{46}, 5839-5850 (1998).
  \bibitem{JMechPhysSol_analytical}
  D. S. Balint, J.W. Hutchinson,
  ``An Analytical model of rumpling in thermal barrier coatings.''
  \textit{J. Mech. Phys. Solids}, \textbf{53}, 949-973 (2005).

\end{thebibliography}
\end{document}

這是輸出:

在此輸入影像描述

答案1

您需要讓 BibTeX 執行參考書目的組織(以及排序,如果需要)。如果您\bibitem手動輸入 s,則無法根據您的風格對其進行排序/排列 ( unsrt)。因此,請遵循以下順序:

  1. .bib使用適當的方法將參考書目寫在單獨的文件中BibTeX 條目格式
  2. 編譯filename.tex一次(為了獲得正確/當前的.aux)。
  3. 運行bibtex filename(為了獲得正確/當前的.bbl)。
  4. 再次編譯filename.tex(為了包含正確/當前的.bbl)。

.bib這是一個嵌入在.texusing中的範例filecontents

在此輸入影像描述

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{OrigPaper,
  author = {J Cheng and EH Jordan and B Barber and M Gell},
  title = {Thermal/Residual Stress in an Electron Beam Physical Vapor Deposited Thermal Barrier},
  journal = {Acta Mater.},
  volume = {46},
  pages = {5839-5850},
  year = {1998}
}
@article{JMechPhysSol_analytical,
  author = {DS Balint and JW Hutchinson},
  title = {An Analytical model of rumpling in thermal barrier coatings.},
  journal = {J.\ Mech.\ Phys.\ Solids},
  volume = {53},
  pages = {949-973},
  year = {2005}
}
\end{filecontents*}
\bibliographystyle{unsrt}
\title{\textbf{\large{Title Goes Here}}}
\author{Author Name}
\date{\today}
\begin{document}
\maketitle

\section{Introduction} 
I am using \verb|unsrt|.
I want to cite these two:~\cite{JMechPhysSol_analytical} and~\cite{OrigPaper}.

\bibliography{\jobname}
\end{document}

請注意,其中沒有對期刊或編號的格式進行規範.bib- 所有這些都是由 BibTeX 完成的。

相關內容