我想要使用此链接中的 IOP 模板:
在这个模板中,我遇到了两个问题:
1) 参考文献,我想在论文中引用参考文献。我尝试引用任何参考文献,但失败了。
例如:
欢迎大家\cite{simmons1971conduction}
。
上述引文的参考书目如下:
@article{simmons1971conduction,
title={Conduction in thin dielectric films},
author={Simmons, JG},
journal={Journal of Physics D: Applied Physics},
volume={4},
number={5},
pages={613},
year={1971},
publisher={IOP Publishing}
}
这是乳胶代码
\documentclass[10pt]{iopart}
\newcommand{\gguide}{{\it Preparing graphics for IOP Publishing journals}}
%Uncomment next line if AMS fonts required
%\usepackage{iopams}
\begin{document}
\title[Author guidelines for IOP Publishing journals in \LaTeXe]{How to `prepare and submit an article for`
publication in an IOP Publishing journal using \LaTeXe}
\author{Content \& Services Team}
\address{IOP Publishing, Temple Circus, Temple Way, Bristol BS1 6HG, UK}
\ead{[email protected]}
\vspace{10pt}
\begin{indented}
\item[]February 2014
\end{indented}
\begin{abstract}
This document describes the abstract.
\end{abstract}
% Uncomment for PACS numbers
%\pacs{00.00, 20.00, 42.10}
%
% Uncomment for keywords
%\vspace{2pc}
%\noindent{\it Keywords}: XXXXXX, YYYYYYYY, ZZZZZZZZZ
%
% Uncomment for Submitted to journal title message
%\submitto{\JPA}
%
% Uncomment if a separate title page is required
%\maketitle
%
% For two-column output uncomment the next line and choose [10pt] rather than [12pt] in the \documentclass declaration
\ioptwocol
%
\section{Introduction: file preparation and submission}
Welcom for you all \cite{simmons1971conduction}.
\end{document}
答案1
添加说明
\section*{References}
\bibliographystyle{iopart-num}
\bibliography{testtesttest}
在文档末尾,然后通过 LaTeX、BibTeX 和 LaTeX 重新编译两次,应该会生成参考书目以及引用标注。
\RequirePackage{filecontents} % just to make this example self-contained
\begin{filecontents}{testtesttest.bib}
@article{simmons1971conduction,
title={Conduction in thin dielectric films},
author={Simmons, J G},
journal={Journal of Physics D: Applied Physics},
volume={4},
number={5},
pages={613},
year={1971},
publisher={IOP Publishing}
}
\end{filecontents}
\documentclass[10pt]{iopart}
\begin{document}
\title[Author guidelines]{How to prepare and submit an article for
publication in an IOP Publishing journal using \LaTeXe}
\author{Content \& Services Team}
\address{IOP Publishing, Temple Circus, Temple Way, Bristol BS1 6HG, UK}
\ead{[email protected]}
\vspace{10pt}
\begin{indented}
\item[]February 2014
\end{indented}
\begin{abstract}
This section contains the abstract.
\end{abstract}
\ioptwocol
\section{Introduction: File preparation and submission}
Welcome for you all \cite{simmons1971conduction}.
%% The following three instructions are new:
\section*{References}
\bibliographystyle{iopart-num}
\bibliography{testtesttest}
\end{document}