我只是通过艰难的方式发现这很重要。
例如,
\cite{aref, bref}
不同于
\cite{aref,bref}
注意第一个逗号后面的空格。如果这确实很重要,那么在我看来这真的很愚蠢。
我只是想验证一下是否确实如此。
补充一下,我正在使用米克泰克斯和纺织机械商
现在的情况如下:
\cite{jiang2006research,datta2006distributed,bandyopadhyay2006clustering}
之前是这样的:
\cite{jiang2006research, datta2006distributed, bandyopadhyay2006clustering}
以下是失败的代码的完整示例:
\documentclass[twoside,11pt]{article}
\usepackage{jair, theapa, rawfonts}
\begin{document}
\begin{abstract}
Abstracts will go here.
\end{abstract}
\section{Introduction}
\label{Introduction}
\subsection{Thesis Background}
As expected, most of the work involved combination of the disciplines of \textit{Data Mining} and \textit{Computer Networks} \cite{jiang2006research, datta2006distributed, bandyopadhyay2006clustering}.
\vskip 0.2in
\bibliographystyle{theapa}
\bibliography{refs}
\end{document}
refs.bib 如下所示:
@article{bandyopadhyay2006clustering,
title={Clustering distributed data streams in peer-to-peer environments},
author={Bandyopadhyay, S. and Giannella, C. and Maulik, U. and Kargupta, H. and Liu, K. and Datta, S.},
journal={Information Sciences},
volume={176},
number={14},
pages={1952--1985},
year={2006},
publisher={Elsevier}
}
@article{datta2006distributed,
title={Distributed data mining in peer-to-peer networks},
author={Datta, S. and Bhaduri, K. and Giannella, C. and Wolff, R. and Kargupta, H.},
journal={Internet Computing, IEEE},
volume={10},
number={4},
pages={18--26},
year={2006},
publisher={IEEE}
}
@article{jiang2006research,
title={Research issues in data stream association rule mining},
author={Jiang, N. and Gruenwald, L.},
journal={ACM Sigmod Record},
volume={35},
number={1},
pages={14--19},
year={2006},
publisher={ACM}
}
@book{datta2008probabilistic,
title={Probabilistic approximate algorithms for distributed data mining in peer-to-peer networks},
author={Datta, S.},
year={2008},
publisher={ProQuest}
}
答案1
相信自己的眼睛;-)
\documentclass[
12pt,a4paper]{scrartcl}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@ARTICLE{mwe2012,
author = {Smith, A. and Johnson, B. and Willians, C.},
title = {The three most common surnames in the United States of America},
journal = {Review of Useless Knowledge},
year = {2012},
volume = {8},
number = {1},
pages = {290--290}
}
@ARTICLE{mwe2011,
author = {Miller, J. and Brown, D.},
title = {Most used surnames in fake passports},
journal = {Journal of Nosense Ranks},
year = {2011},
volume = {5},
number = {3},
pages = {1--130},
pmid = {1234567},
url = {http://www.mwe.com/mwe2011},
doi = {http://dx.doi.org/10.1016/jnr.2011.01.01},
}
\end{filecontents*}
%----------------------------------------------------------------------
\begin{document}
\section{First section}
nonumy eirmod tempor invidunt~\cite{mwe2011,mwe2012}.
\noindent nonumy eirmod tempor invidunt~\cite{mwe2011, mwe2012}.
\bibliographystyle{unsrt}
\bibliography{\jobname}
\end{document}
更新:
从上面的评论来看,您似乎想使用 APA 样式引用。以下代码说明了解决方案(我使用了apacite
包)
\documentclass{article}
\usepackage[a4paper,margin=2cm]{geometry}
\usepackage{apacite} %% for APA style
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{bandyopadhyay2006clustering,
title={Clustering distributed data streams in peer-to-peer environments},
author={Bandyopadhyay, S. and Giannella, C. and Maulik, U. and Kargupta, H. and Liu, K. and Datta, S.},
journal={Information Sciences},
volume={176},
number={14},
pages={1952--1985},
year={2006},
publisher={Elsevier}
}
@article{datta2006distributed,
title={Distributed data mining in peer-to-peer networks},
author={Datta, S. and Bhaduri, K. and Giannella, C. and Wolff, R. and Kargupta, H.},
journal={Internet Computing, IEEE},
volume={10},
number={4},
pages={18--26},
year={2006},
publisher={IEEE}
}
@article{jiang2006research,
title={Research issues in data stream association rule mining},
author={Jiang, N. and Gruenwald, L.},
journal={ACM Sigmod Record},
volume={35},
number={1},
pages={14--19},
year={2006},
publisher={ACM}
}
@book{datta2008probabilistic,
title={Probabilistic approximate algorithms for distributed data mining in peer-to-peer networks},
author={Datta, S.},
year={2008},
publisher={ProQuest}
}
\end{filecontents*}
%----------------------------------------------------------------------
\begin{document}
\section{First section}
tempor invidunt~\cite{jiang2006research,datta2008probabilistic}.
\noindent
tempor invidunt~\cite{jiang2006research, datta2006distributed}.
\bibliographystyle{apacite}
\bibliography{\jobname}
\end{document}
并且您的代码(带有apacite
)将是
\documentclass{article}
\usepackage{apacite} %% for APA style
\usepackage{jair,rawfonts}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{bandyopadhyay2006clustering,
title={Clustering distributed data streams in peer-to-peer environments},
author={Bandyopadhyay, S. and Giannella, C. and Maulik, U. and Kargupta, H. and Liu, K. and Datta, S.},
journal={Information Sciences},
volume={176},
number={14},
pages={1952--1985},
year={2006},
publisher={Elsevier}
}
@article{datta2006distributed,
title={Distributed data mining in peer-to-peer networks},
author={Datta, S. and Bhaduri, K. and Giannella, C. and Wolff, R. and Kargupta, H.},
journal={Internet Computing, IEEE},
volume={10},
number={4},
pages={18--26},
year={2006},
publisher={IEEE}
}
@article{jiang2006research,
title={Research issues in data stream association rule mining},
author={Jiang, N. and Gruenwald, L.},
journal={ACM Sigmod Record},
volume={35},
number={1},
pages={14--19},
year={2006},
publisher={ACM}
}
@book{datta2008probabilistic,
title={Probabilistic approximate algorithms for distributed data mining in peer-to-peer networks},
author={Datta, S.},
year={2008},
publisher={ProQuest}
}
\end{filecontents*}
%----------------------------------------------------------------------
\begin{document}
\begin{abstract}
Abstracts will go here.
\end{abstract}
\section{Introduction}
\label{Introduction}
\subsection{Thesis Background}
As expected, most of the work involved combination of the disciplines of \textit{Data Mining} and \textit{Computer Networks} \cite{jiang2006research, datta2006distributed, bandyopadhyay2006clustering}.
\vskip 0.2in
\bibliographystyle{apacite}
\bibliography{\jobname}
\end{document}
编译并亲自查看。不使用theapa.bst
和theapa.sty
它们已经过时了。改用apacite
。