Modify existing citation-style to sort multiple author-date citations
Hello,
I've tried different approaches (which were discussed years ago in this forum) to add a function to an existing citation style to modify the order of multiple in text author-date citations. Currently its just the order I've added the different citations eg. (Cole and Kendrick 1981; Abrol 2014; Hajek and Leger 1994) but I need them to be in ascending chronological order.
Sadly my trials didn't showed any results (haven't thought, this would be problematic).
Maybe anyone of you can help me with either a short instruction with which syntax and at which position changes need to be made or suggest me a citation style which already fits my needs and just needed to be adjusted according to et. al. minima and group delimiter (this is may easier?).
Thanks for your reply!
I've tried different approaches (which were discussed years ago in this forum) to add a function to an existing citation style to modify the order of multiple in text author-date citations. Currently its just the order I've added the different citations eg. (Cole and Kendrick 1981; Abrol 2014; Hajek and Leger 1994) but I need them to be in ascending chronological order.
Sadly my trials didn't showed any results (haven't thought, this would be problematic).
Maybe anyone of you can help me with either a short instruction with which syntax and at which position changes need to be made or suggest me a citation style which already fits my needs and just needed to be adjusted according to et. al. minima and group delimiter (this is may easier?).
Thanks for your reply!
<sort>
<key macro="date-in-text"/>
</sort>
placed between the lines starting with <citation... and <layout... will work. For other styles, the macro name will be different, just checked what is used in the citation.
your suggestion worked in some way: The citaions are now sorted, but alphabetical not chronological.
Any ideas?
Still thanks for your help!
I've entered your code via the Style Editor between the starting citation and layout (nearly to the end of the document) changed title and ID, saved the style and imported it in Zotero (worked fine). When the document, preferences are now set to the manually changed style any new citations will be sorted alphabetical, already existing ones will also be affected.
This: (Araújo and Hughes 2016; Hajek and Leger 1994; Brey, Latge, and Prevost 1986; Beran et al. 2014)
Is soted to be this way:
(Araújo and Hughes 2016; Beran et al. 2014; Brey, Latge, and Prevost 1986; Hajek and Leger 1994)
I'm completely with you, it's odd. Is there may an other function which need to be deactivated or something similar?
The current surrounding code is (without starting <):
/macro>
citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name" collapse="year">
sort>
key macro="date-in-text"/>
/sort>
layout prefix="(" suffix=")" delimiter="; ">
group delimiter=", ">
Is there a possibility to upload the file for troubleshooting?
Still thankful for your time!
Instead, you can use https://hastebin.com/ and press the page with the plus sign to create the document, then paste URL here.
hope, this works.
https://hastebin.com/epamizorec.xml
This citation style: American Psychological Association 6th edition (curriculum vitae, sorted by descending date) does sort by descending date properly, so may its the easiest to suggest an already existing style that is similar to Chicago and is sorting the in text citations by date?
Still thanks to anyone who is trying to solve this odd problem.
Btw: I'm Using Zotero version 5.0.54
Microsoft Office Word 2007 (12.0.6612.1000) SP3
For existing styles, try
Ecology and Society or
Journal of Product Innovation Management
I don't have any clue.
Journal of Product Innovation Management works fine for me, thanks. Ecology and Society generates some weird structures in the biblography like:
Page in N. Wilding, N. M. Collins, P. M. Hammond, and J. F. Webber, editors. Insect-fungus interactions.
What is page supposed to predicate? and why is there an "in" (italic) in front of the editors which aren't named after the Title? But these are other points which dont need to be discussed here.
I'm still confused, why the manual modifications doesn't work, but nevertheless thanks a lot for your help. If there is a solution to this weird problem I would like to be updated!