Problems capitalizing initials of first name in a list of authors

edited 8 days ago
Hello, I've had some help previously to show only capital initials in lists of authors. It is not quite working correctly as the first author shows the wrong way around e.g. it shows as
Smith, P, F Smith, T Smith, and K Smith
I need to to be
P Smith, F Smith, T Smith, and K Smith

I've worked on line 40 and line 70, as it is a footnote style.
I can't work this one out and why it is treating the first name in a list differently if anyone can please help?!

My code link is here:
https://github.com/annie-berry/ofstedhousestyle/blob/main/v1
Thanks in advance
  • That's because you have set name-as-sort-order="first" .
    You can remove that completely.
  • Thank you that's really helpful. I have now removed that from line 40. It wasn't in line 70. They now show correctly when using footnotes, but when I create a bibliography from an item, it is still showing the first name differently.
    Is there somewhere else I haven't spotted that would be doing this?
    I see around line 430-433 it mentions names/first subsequent, but I don't think that's it...
  • You should be getting P Smith in the bibliography -- have you tested in the Zotero style editor?
  • Thank you. I hadn't but I've tried it just now. I can see that the citation style shows correctly i.e. S Hawking and I Mares. But the Bibliography style shows Hawking, S and Mares, I.

    I often use the option to right click on an item and select 'Create bibliography from item'. If I select Output mode 'Notes' then it shows correctly. If I select Output mode 'Bibliography' then it doesn't.

    So there is something amiss in the bibliography part (around line 40?) which I can't spot
  • edited 8 days ago
    The style you had shared earlier was correct already. Can you update your repository?

    (The "author" macro is what you need to be looking at though)
  • Sorry I'm not exactly sure what you mean by updating my repository, it's all quite new to me every time a change is needed - I need to revise my language every time.
    I have been uploading the style in Zotero from the one I shared earlier, which I am editing: https://raw.githubusercontent.com/annie-berry/ofstedhousestyle/main/v1

    But the hint about author macro I think has solved it...on line 304 I added the initialize-with=""/ ... first time incorrectly, but after validating it and correcting it, that now seems to have done the trick.
    Thanks for your help!
Sign In or Register to comment.