0

I'm trying to do something that I'm sure it's possible to do with BibLaTeX and Biber, but I'm struggling to figure it out. So, I have two .bib files, mystuff.bib and otherstuff.bib. Throughout the document, otherstuff.bib entries are cited, and they should be output in the \printbibliography at the end of the document. But: during the document, I need a section which contains everything listed in mystuff.bib (accessed by \nocite{*}) sorted using ydnt rather than the normal nyt. I can get a section with all of mystuff.bib by using the following:

\begin{refsection}[mystuff.bib]
\nocite{*}
\printbibliography
\end{refsection}

But, I don't have individual control over how it is sorted. I've tried using \addsectionbib but I'm not sure I understand how to use it to achieve what I want.

So. I want two bibliographies, using different bibresources, and different sorting options, within one document. How?

Seamus
  • 73,242
  • Try \newrefcontext[sorting=ydnt] before the \printbibliography. (Untested because a full MWE is missing.) – moewe Sep 29 '19 at 14:12
  • That appears to work. Thanks! If you could turn that into an answer I can accept it. – Seamus Sep 29 '19 at 15:00

1 Answers1

1

You can change the sorting by switching to a different refcontext. You may want to try

\begin{refsection}[mystuff.bib]
\nocite{*}
\newrefcontext[sorting=ydnt]
\printbibliography
\end{refsection}
moewe
  • 175,683
  • I had to make use of the workarounds in this answer to make this work in the actual use case. – Seamus Oct 01 '19 at 14:07
  • @Seamus At least with an up-to-date system you shouldn't have to, but without a full MWE and more detailed description of what you want to do I can not investigate the issue further, I'm afraid. – moewe Oct 02 '19 at 12:36