编辑:@PLK 实际上,这种情况只发生在使用 biblatex 3.4 的 texlive 2016(最新版本)上,而不会发生在使用 texlive 2015 最新版本上......我忘了我使用的是 texlive 2016,而不是稳定版本。

================

编辑:@PLK,这是 MWE。在 xelatex-biber-xelatex 之后,我确实得到了第一张图片,这正是我想要的,但如果我再次仅使用 xelatex 进行编译,那么我就会丢失它并得到第二张图片。

\documentclass{article}




  \usepackage{fontspec}
  \setmainfont{TeX Gyre Termes}
  \usepackage{polyglossia}
  \setmainlanguage{spanish}
\setotherlanguage{german}

%\usepackage[german]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,   citetracker=true, citestyle=alphabetic, bibstyle=ieee-alphabetic, sorting=ynt,sortcites=true]{biblatex}


\addbibresource{testcite.bib} 


\usepackage{filecontents} \begin{filecontents}{testcite.bib}
@book{a01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
@book{a02,
  author = {Author, A.},
  year = {2002},
  title = {Bravo},
}
@article{c01,
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie},
}
@article{c02,
  author = {Cuthor, C.},
  year = {2004},
  title = {Charlie},
}

@article{c03,
  author = {Cuthor, C.},
  year = {1978},
  title = {Charlie},
}
@article{c04,
  author = {Cuthor, C.},
  year = {1981},
  title = {Charlie},
}

@article{ac01,
  author = {Cuthor, C. and Author, A.},
  year = {1987},
  title = {Charlie},
}
@article{ac02,
  author = {Cuthor, C. and Author, A.},
  year = {1973},
  title = {Charlie},
}

@article{ac03,
  author = {Cuthor, C. and Author, A.},
  year = {1981},
  title = {Charlie},
}
\end{filecontents}



\begin{document}
Refs. \cite{a01, a02, ac01, ac02, c01, c02, c03, c04, ac03}

\today

%\clearpage


\newrefcontext[sorting=nyt]
\selectlanguage{german}
\printbibliography[ heading=subbibliography,title={Journals}]
\endrefcontext
\end{document}

这是我第一次启动 biber 和 xelatex 时发生的情况

当我不断启动 xelatex 时会发生这种情况

编辑:@PLK,你是对的,但是我使用排序来打印参考书目nyt,而我想要引用,就像你说的ynt......这是我用来打印参考书目的代码(我使用xelatex

\clearpage


\newrefcontext[sorting=nyt]
%\selectlanguage{english}
\printbibliography
\endrefcontext

当我把这个放进去时newrefcontext,引用的排序就从ynt变为 了nyt

=============================================================

@murugan

检查您编译的文件夹中是否有包 filecontents和文件...the title of your personal document.bib

==========================================

我使用以下设置,我的引用没有排序

\documentclass{article}

\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[citestyle=alphabetic,bibstyle=ieee-alphabetic, backend=biber,sortcites=true]{biblatex}
\renewbibmacro*{bbx:savehash}{} % Remove annoying dash
\addbibresource{\jobname.bib}
\usepackage{filecontents} \begin{filecontents}{\jobname.bib}
@book{a01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
@book{a02,
  author = {Author, A.},
  year = {2002},
  title = {Bravo},
}
@article{c01,
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie},
}
@article{c02,
  author = {Cuthor, C.},
  year = {2004},
  title = {Charlie},
}

@article{c03,
  author = {Cuthor, C.},
  year = {1978},
  title = {Charlie},
}
@article{c04,
  author = {Cuthor, C.},
  year = {1981},
  title = {Charlie},
}

@article{ac01,
  author = {Cuthor, C. and Author, A.},
  year = {1987},
  title = {Charlie},
}
@article{ac02,
  author = {Cuthor, C. and Author, A.},
  year = {1973},
  title = {Charlie},
}

@article{ac03,
  author = {Cuthor, C. and Author, A.},
  year = {1981},
  title = {Charlie},
}


\end{filecontents}



\begin{document}
Refs. \cite{a01, a02, ac01, ac02, c01, c02, c03, c04, ac03}\\
\end{document}

这是我寻求的秩序

  • 首先按年份排序
  • 对于同一年的两篇文章,按第一作者的姓名排序
  • 如果项目的年份和第一作者相同,则将项目放在第一位只有 1 位作者,然后是合著者 [这些有合著者的作品将首先按年份排序,然后按第一位合著者的名字字母顺序排序]

我想我已经陈述了所有的情况。明确地说,我目前得到,

[Aut01;Aut02;CA73;CA81;CA87;Cut03;Cut04;Cut78;Cut81]

我想

[CA73;Cut78;Cut81;CA81;CA87;Aut01;Aut02;Cut03;Cut04]

答案1

只需将 biblatex 选项添加sorting=ynt到您的 biblatex 选项中,因为sortcites使用全局排序方案。这会为您提供所需的顺序。如果您希望对实际参考书目列表进行不同的排序,您可以将您的放在具有不同排序方案的\printbibliographya 中\refsection

相关内容