![参考资料设置 TexStudio Ubuntu](https://linux22.com/image/358194/%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99%E8%AE%BE%E7%BD%AE%20TexStudio%20Ubuntu.png)
我想按升序排列我的参考书目。我想按字母顺序列出我的参考文献。我的参考书目代码是:
\bibliographystyle{abbrvnat}
% This specifies the location of the file containing the bibliographic information.
\cleardoublepage % This is needed if the book class is used, to place the anchor in the correct page,
% because the bibliography will start on its own page.
% Use \clearpage instead if the document class uses the "oneside" argument
\phantomsection % With hyperref package, enables hyperlinking from the table of contents to bibliography
% The following statement causes the title "References" to be used for the bibliography section:
\renewcommand*{\bibname}{References}
% Add the References to the Table of Contents
\addcontentsline{toc}{chapter}{\textbf{References}}
\bibliography{mybib}
\nocite{*}
以这种样式显示的参考书目:
但我希望参考编号 4 应该排在 1 号,然后显示第二个,这样它们就按字母顺序排序了。请帮帮我
答案1
我不确定我是否理解了您的问题,但如果您只是想将 Boneh et. al 移到开头,请尝试添加@PREAMBLE{ {\providecommand{\noopsort}[1]{}} }
到您的 bib 文件中并替换Boneh
为{{\noopsort{aaaaaaaaBoneh}}{Boneh}}
。
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@PREAMBLE{ {\providecommand{\noopsort}[1]{}} }
@article{reese,
author = {Reese, Trevor R.},
title = {Georgia in {Anglo-Spanish} Diplomacy, 1736--1739},
journaltitle = {William and Mary Quarterly},
year = 1958,
series = 3,
volume = 15,
pages = {168-190},
langid = {english},
langidopts = {variant=american},
annotation = {An \texttt{article} entry with a \texttt{series} and a
\texttt{volume} field. Note the format of the series. If the
value of the \texttt{series} field is an integer, this number
is printed as an ordinal and the string \enquote*{series} is
appended automatically},
}
@article{sarfraz,
author = {M. {{\noopsort{aaaaaaaaSarfraz}}{Sarfraz}} and M. F. A. Razzak},
title = {Technical section: {An} algorithm for automatic capturing of
the font outlines},
year = 2002,
volume = 26,
number = 5,
pages = {795-804},
issn = {0097-8493},
journal = {Computers and Graphics},
annotation = {An \texttt{article} entry with an \texttt{issn} field},
}
\end{filecontents*}
\begin{document}
\cite{sarfraz,reese}
\bibliographystyle{abbrvnat}
\bibliography{\jobname}
\end{document}