Problem generating subsequent notes in custom style

I'm attempting to create a custom style for a journal (Journal of Glass Studies) that requests subsequent references be formatted as "Last name [note X], p. XX". This is my first time trying to create a custom style and I am probably doing something simple wrong.
All my first notes look fine using the custom style, and subsequent notes from my custom style all have "Last name, p. XX". But I can't figure out how to get the [note X] added. I've got the following code right now (apologies for inelegance!), edited from a previously-functioning-just-fine style.
(If it makes a difference, I am using Zotero standalone with Word for Mac 2011 and the word-processor plugin, editing the style in the Zotero reference test pane.)

<if position="subsequent">
<group delimiter=", ">
<text macro="author-short"/>
<text variable="first-reference-note-number" prefix="[note " suffix="]" delimiter = ", "/>
<text variable="locator" prefix="p. "/>
</group>
</if>
  • this looks generally right. Remove the delimiter=", " bit from the <text variable="first-reference.... line; that doesn't belong there.

    Then, note that the note number won't preview in the test pane, you'll have to test this in Word. There, make sure that you're actually using the most recent version of your custom style by switching to a different style and back.

    If none of that helps, post the full style somewhere easily accessible (ideally gist.github.com -- you don't need to register for an account) and we can take a look.
  • Hrm, that didn't work, unfortunately (I also reinstalled the Word plugin, just in case that was the issue). I've posted the entire code here. It's dreadfully slapdash, I'm sure, but I'm trying to get it done for an article that's due this month. This previous note reference thing is actually the main reason I'm using Zotero for this article, so any help you can offer is most appreciated.
    https://gist.github.com/anonymous/2c89bf09e207c821408b40809b45de48
  • Also, I forgot to add to my previous reply: Thank you SO MUCH for the assistance and the prompt attention. I really appreciate your time.
  • Works for me with that style (Word 2013/Windows, but that really shouldn't matter). Have you tried in a fresh document with just 2-3 sample citations?
  • Ok, I finally figured it out - Zotero was not reading the most recent version of the style. I uninstalled the whole style and reinstalled from the correct file and it finally worked in my test document! Thanks so much for all your help. I already really like the program, but the quick and helpful responses in the forum have made me love it. I'll definitely be recommending to students and colleagues.

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.