Problems with adjusting of page numbers in visual citation editor

edited October 17, 2023
Hello everyone,

I'm currently adjusting the citation style to APA 7th using the visual editor for my thesis.

Everything is working fine except for 2 problems related to page numbers.

Problem 1:
Instead of "p."/"pp.," I'd like to display "S." I can't figure out where to edit this.

Problem 2:
Wwhen using a page number, the citation should look like this: (Author 2023, S. 1). Currently, there is a space between the year and the comma (Author 2023 , S. 1), which I can't remove. I can't find where to edit this without messing up the formatting for all citations.

I would greatly appreciate any help.
  • edited October 16, 2023
    #1
    This will already work just by changing the language of the citation style under "Document Preferences" in the Zotero tab in Word/Libre/GDocs.

    #2
    I assume you messed around with the style and made a mistake. But hard to tell without seeing your code.
    Revert to the original APA style or share your code via pastebin.com and we can pinpoint the error.

  • Thank you for your helpful reply!

    The #1 is perfectly working with changing the language.

    I haven“t figured out my mistake with my #2 problem. If someone can help me with editing the citation from the original APA I can try that.

    And you can see the code I adjusted in the Zotero editor here: https://pastebin.com/dfF9uc8z

  • #2
    1. You added the comma in the wrong place. Delete the prefix from line 1726.
    2. Replace lines 1740-44 with the following:
    <group delimiter=", ">
    <group delimiter=" ">
    <text macro="author-intext"/>
    <text macro="date-intext"/>
    </group>
    <text macro="citation-locator"/>
    </group>


    Also, you'll need to actually change the style ID, self link etc. as explained here. Otherwise it'll just get overwritten with the original apa.csl style.
    https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step
  • Hello damnation,

    thank you, you are saving my master thesis!

    I found one last problem I have, I need a hyphen instead of an indent for the page numbers. I found other discussions and code for changing page-range-delimiter, but it doesn't function if I try to implement it in my code.
  • Where/how are you changing the page range delimiter? It's a term that gets set as part of a locale (that can be custom in the style)
Sign In or Register to comment.