Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement or improve documentation of sortkey in the extra fields #2977

Closed
zackbatist opened this issue Sep 9, 2024 · 3 comments
Closed
Labels

Comments

@zackbatist
Copy link

Debug log ID

7T4QGVJV-euc/6.7.227-7

What happened?

I'm trying to modify the sorting of bibliographic entries in latex by appending SORTKEY as an extra field for the entries that I would like to manually sort (as per https://tex.stackexchange.com/questions/128387/sort-bibliography-with-same-author-and-same-year-biblatex). However it's not clear to me whether this is actually implemented at all in betterbibtex, since it is not included in the table of extra fields (https://retorque.re/zotero-better-bibtex/exporting/extra-fields/index.html). If it is a current feature, some clarification on how to implement this in practice would be really helpful.

Thank you.

@retorquere
Copy link
Owner

However it's not clear to me whether this is actually implemented at all in betterbibtex

It is not; there is no Zotero field that carries this meaning, and items in Zotero have no intrinsic order, so I have no information I could base this on.

since it is not included in the table of extra fields

which means it is not available this way, this list is exhaustive

If it is a current feature, some clarification on how to implement this in practice would be really helpful.

using the BBT-specific format, from the same page:

tex.sortkey: something

@zackbatist
Copy link
Author

Thank you for pointing out the BBT-specific format. It is still not accomplishing what I need it to do, I suspect it may have to do with how this is outputting as an annotation, as per:

\field{annotation}{SORTKEY = \{b\}}

I'm still trying to figure out how it should be output and to modify my input string accordingly. I will post if/when I figure it out, for future reference.

@zackbatist
Copy link
Author

The solution is to use = instead of :, as per the instructions under the BBT-specific heading on support page to generate "raw latex". Moreover, I used tex.SORTTITLE rather than tex.SORTKEY; the latter put the one labelled {a} at the top of the entire bibliography, whereas the former sorts only the items with the same authors and years.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants