在 Bibtex 中对引文进行排序

在 Bibtex 中对引文进行排序

我试图得到的输出

我的代码:

\documentclass{article}
\title{Ref}
\author{Ref}
\begin{document}

There is a very useful mathematics text book for engineering students written by Erwin Kreysig \cite{aem}. For those of you interested in the hazard from \textit{Clostridium botulinum} associated with 
Alaskan native foods should refer to. For information on fast index assignment algorithm that uses quadratic assignment, see 

\bibliographystyle{plain}
\bibliography{References}
\end{document}

参考:

@book{aem,
    title={Advance Engineering Mathematics},
    author={Erwin Kreyszig},
    edition={6th},
    year={1988}
    }
    
@inproceedings{speech,
    title={A quadratic index assignment algorithm for vector quantisation over noisy transmission channels},
    author={Nicola Talbot and Gavin Cawley},
    booktitle={Proceedings of the Institute of Acoustics Autumn Conference on Speech and Hearing},
    volume={18},
    pages={195--199},
    month=nov,
    year={1996}
    }

@incollection{image,
    title={A fast index assignment algorithm for robust vector quantisation over noisy transmission channels},
    author={Gavin Cawley and Nicola Talbot},
    publisher={Santa Barbara},
    booktitle={Proceedings of the I.E.E.E International Conference on Image Processing},
    address={California, USA},
    month=oct,
    year={1997}
    }

@article{noise,
    title={A fast index assignment algorithm for robust vector quantisation over noisy transmission channels},
    author={Gavin Cawley and Nicola Talbot},
    journal={I.E.E Electronic Letters},
    volume={32},
    pages={1343--1344},
    number=15,
    month=jul,
    year={1996}
    }

我对图像中的第 5 个参考文献以及如何对引用进行排序并获得输出 [3,1,4] 感到困惑

答案1

据我了解,您的 bib 文件包含错误(作者顺序很重要……)。要引用多个参考文献,只需使用\cite{<key1>,<key2>,…,<keyN>}

\documentclass{article}

\title{Ref}
\author{Ref}

\begin{filecontents}{\jobname.bib}
%[2]
@book{aem,
    title={Advanced Engineering Mathematics},
    author={Kreyszig, Erwin},
    publisher={Wiley},
    edition={6th},
    year={1988}
}
%[3]
@inproceedings{speech,
    title={A quadratic index assignment algorithm for vector quantisation over noisy transmission channels},
    author={Talbot, Nicola and Cawley, Gavin},
    booktitle={Proceedings of the Institute of Acoustics Autumn Conference on Speech and Hearing},
    volume={18},
    pages={195--199},
    month=nov,
    year={1996}
}
%[4]
@incollection{image,
    title={A fast index assignment algorithm for robust vector quantisation of image data},
    author={Talbot, Nicola and Cawley, Gavin},
    publisher={Santa Barbara},
    booktitle={Proceedings of the I.E.E.E International Conference on Image Processing},
    address={California, USA},
    month=oct,
    year={1997}
}
%[1]
@article{noise,
    title={A fast index assignment algorithm for vector quantization over noisy transmission channels},
    author={Cawley, Gavin and Talbot, Nicola},
    journal={I.E.E Electronic Letters},
    volume={32},
    pages={1343--1344},
    number=15,
    month=jul,
    year={1996}
}
\end{filecontents}

\begin{document}
    
    There is a very useful mathematics text book for engineering students written by Erwin Kreysig \cite{aem}. For those of you interested in the hazard from \textit{Clostridium botulinum} associated with 
    Alaskan native foods should refer to. For information on fast index assignment algorithm that uses quadratic assignment, see \cite{speech,noise,image}.
    
    \bibliographystyle{plain}
    \bibliography{\jobname}
\end{document}

产生 在此处输入图片描述

编辑

添加第 5 个引用并使用biblatex。运行biber并确保具有更新的.bib文件。

% !BIB TS-program = biber
% !TeX encoding = utf8
% !TeX spellcheck = en_GB
% !TeX TS-program = pdflatex

\documentclass{article}\usepackage[%
language=english,
%   defernumbers=true,
backend=biber,
%   backend=bibtex,
%   sorting=ynt,
sorting=nyt,
%   url=false,
%backref=true,
    style=numeric,
]{biblatex}

\title{Ref}
\author{Ref}

\begin{filecontents}{\jobname.bib}
%[2]
@book{aem,
    title={Advanced Engineering Mathematics},
    author={Kreyszig, Erwin},
    publisher={Wiley},
    edition={6th},
    year={1988}
}
%[3]
@inproceedings{speech,
    title={A quadratic index assignment algorithm for vector quantisation over noisy transmission channels},
    author={Talbot, Nicola and Cawley, Gavin},
    booktitle={Proceedings of the Institute of Acoustics Autumn Conference on Speech and Hearing},
    volume={18},
    pages={195--199},
    month=nov,
    year={1996}
}
%[4]
@incollection{image,
    title={A fast index assignment algorithm for robust vector quantisation of image data},
    author={Talbot, Nicola and Cawley, Gavin},
    publisher={Santa Barbara},
    booktitle={Proceedings of the I.E.E.E International Conference on Image Processing},
    address={California, USA},
    month=oct,
    year={1997}
}
%[1]
@article{noise,
    title={A fast index assignment algorithm for vector quantization over noisy transmission channels},
    author={Cawley, Gavin and Talbot, Nicola},
    journal={I.E.E Electronic Letters},
    volume={32},
    pages={1343--1344},
    number=15,
    month=jul,
    year={1996}
}
@inbook{Wainwright1993,
    author = {Wainwright, Robert B.},
    title = {Hazards from northern native foods},
    booktitle = {Clostridium botulinum : ecology and control in foods},
    year = {1993},
    bookauthor = {Hauschild, Andreas, H. W. and Dodds, Karen, L.},
    publisher = {M. Dekker},
    language = {english},
    location = {New York},
    chapter = {12},
    pages = {305-322},
}

\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
    
    There is a very useful mathematics text book for engineering students written by Erwin Kreysig \cite{aem}. For those of you interested in the hazard from \textit{Clostridium botulinum} associated with 
    Alaskan native foods should refer to. For information on fast index assignment algorithm that uses quadratic assignment, see \cite{speech,noise,image}.
    
    And \cite{Wainwright1993}
    \printbibliography
\end{document}

在此处输入图片描述

相关内容