我应该从不同的 .bib 文件中引用 @articles 和 @inproceedings 吗?

我应该从不同的 .bib 文件中引用 @articles 和 @inproceedings 吗?

.bbl 文件截图dtbase.bib我以以下方式将文章和会议记录保存在文件中:

@article{Russell17012003,
author = {Russell, Philip}, 
title = {Photonic Crystal Fibers},
year = {2003}, 
journal = {Science} 
}


@inproceedings{Hansen:02, 
author = {Kim P. Hansen and Jacob Riis Jensen and Christian Jacobsen and           Harald R. Simonsen and Jes Broeng and Peter M. W. Skovgaard and Anders Petersson    and Anders Bjarklev}, 
booktitle = {Optical Fiber Communications Conference}, 
journal = {Optical Fiber Communications Conference},
keywords = {Nonlinear optics, fibers},
publisher = {Optical Society of America},
title = {Highly Nonlinear Photonic Crystal Fiber with Zero-Dispersion at     1.55\&\#x00B5;m}, 
year = {2002},
pages = {FA9},
}

虽然我的 tex 文件 try.tex 读为-

\documentclass{elsarticle}

\begin{document}

\begin{frontmatter}

\title{blablabla}

\author{bla bla}

\address{blabla}

\begin{abstract}
blalbal

\end{abstract}

\begin{keyword}

bla

\end{keyword}

\end{frontmatter}


\section{Introduction}

 microstructured \cite{Russell17012003}  blabla birefringence     etc.\cite{Knight96} high nonlinearity required blabla \cite{Hansen:02} 


\section*{References}
\bibliographystyle{elsarticle-num} 
\bibliography{dtbase}

\end{document}

\endinput

每当我将文章和论文放在同一个 bib 文件中时,在编译 tex 文件后都会显示以下警告 -

Citation 'Hansen:02' on page 1 undefined. 

但它没有显示正在进行的内容。我做错了什么?我正在使用 Texmaker 编辑 .bib 文件和 .tex 文件。

答案1

文章elsarticle-num)使用纳特比布-package,所以你需要bibtex参考,而不是biber,参见这里了解更多信息。

按顺序pdflatex file- bibtex file- pdflatex file-运行以下示例pdflatex file(不带文件结尾)。它应该可以工作。

Knight96您的问题中缺少该条目,因此我编了一个。

\documentclass{elsarticle}
\usepackage{filecontents}
\begin{filecontents*}{dtbase.bib}
@article{Russell17012003,
author = {Russell, Philip}, 
title = {Photonic Crystal Fibers},
pages = {358-362}, 
year = {2003}, 
doi = {10.1126/science.1079280}, 
journal = {Science} 
}

@inproceedings{Hansen:02, 
author = {Kim P. Hansen and Jacob Riis Jensen and Christian Jacobsen and           Harald R. Simonsen and Jes Broeng and Peter M. W. Skovgaard and Anders Petersson    and Anders Bjarklev}, 
booktitle = {Optical Fiber Communications Conference}, 
journal = {Optical Fiber Communications Conference},
keywords = {Nonlinear optics, fibers},
publisher = {Optical Society of America},
title = {Highly Nonlinear Photonic Crystal Fiber with Zero-Dispersion at     1.55\&\#x00B5;m}, 
year = {2002},
pages = {FA9},
}

@book{Knight96,
title = {How to become a Knight},
author = {Notaknight Yet},
year = {1296},
publisher = {Rich Merchant},
}
\end{filecontents*}


\bibliographystyle{elsarticle-num} 
\begin{document}

\begin{frontmatter}
\title{blablabla}
\author{bla bla}
\address{blabla}
\begin{abstract}
blalbal
\end{abstract}
\begin{keyword}
bla
\end{keyword}
\end{frontmatter}

\section{Introduction}
 microstructured \cite{Russell17012003}  blabla birefringence     etc.\cite{Knight96} high nonlinearity required blabla \cite{Hansen:02} 

\section*{References}
\bibliography{dtbase}

\end{document}

相关内容