-
Notifications
You must be signed in to change notification settings - Fork 7
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
How to use :numeric
but with :nyt
sorting
#29
Comments
Well, in principle, the sorting is very much inherent in the That being said, you can overwrite the sorting for the
in your |
Thanks for the reply! I tried overwriting DocumenterCitations.jl/src/bibliography.jl Lines 103 to 116 in 04ed974
with some custom code, but I could not get to the proper result, as the inputs entry and citations do not really provide sufficient information to implement this. Instead the function would need to have access to the whole bibliography. Is there any way this could be provided such that such a citation style would be possible? If an alphabetic style with numeric labels would be of interest I would be happy to make a PR for this.
|
The numbers in the citations and bibliography entries don't match? Did you restart your Julia session? I don't seem to be able to reproduce any mismatch… Or, are you just saying you want the bibliography to be numbered in order, but the citations to be jumbled? That would be a very non-standard citation style. You really should be using If you did want to implement such a style, you would have to define a struct, e.g., This is the same approach that I just used for the improved
No, if you want to use such as style for your project, you can do that. But I would strongly discourage anyone from using this style, as it runs against all established conventions. As I said, it sounds like what you should be using is |
If I use What I'd like to have is a bibliography ordered by author-year, but compact citations as numbers according to this author-year ordering. This does not seem highly non-standard, it is even the very first example that appears in this overleaf article on "Bibliography management in LaTeX". |
Huh, okay… I must have suppressed that the LaTeX style In any case, this will require a "stateful" style, i.e., an object (not just a symbol) to be passed as More generally, though, if you don't have the entire I'm going to think about this more, but maybe I'll change how the internal |
If found a more elegant solution in #31 (comment) with a new internal Assuming the current #31 is merged, putting the following in
This simply overwrites the numeric citation keys with the number of the entry after sorting. Since that marks every entry in the
is equivalent to
Alternatively, you could filter to only existing keys in I'm not totally sure how easy it would be to implement this style for full generality. If someone figures out a complete solution, I'd consider merging a PR for a |
I followed this part of the documentation to try to get the list of references sorted in a name-year-title manner, but it seems that when using
:numeric
all cited references are still sorted in order of appearence, and only the non-cited references are then sorted. Is there a way to sort all references in a name-year-title manner, even when using:numeric
? I also only use the*
-type bibliography as I want to have one extensive list of references.The text was updated successfully, but these errors were encountered: