page citation with ibid (APA 7)

edited March 27, 2024
Hello,

with the wonderful help of this forum I managed to include ibid citation into my APA style, however if I want to add a page number to the second citation, it gets swallowed and the citation just reads (ibid). Can anyone help me fix this?

This is my code right now:

<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name-with-initials">
<sort>
<key macro="author-sort" names-min="3" names-use-first="1"/>
<key macro="date-sort-group" sort="ascending"/>
<key macro="date-sort" sort="ascending"/>
<key variable="status"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<choose>
<if match="any" position="ibid-with-locator ibid">
<group delimiter=", ">
<text term="ibid" form="short"/>
<text variable="locator"/>
</group>
</if>
<else>
<group delimiter=", ">
<text macro="author-intext"/>
<text macro="date-intext"/>
<text macro="citation-locator"/>
</group>
</else>
</choose>
</layout>
</citation>


Thank you!
  • edited March 27, 2024
    You will need to add tags to make your code visible on this forum.

    <code> your code </code>

    or perhaps

    <blockquote> your code </blockquote>
  • I have noticed over the years that while the if="ibid-with-locator ibid" should work, I tend to separate it out because I noticed it doesn't always.

    Change it to:
    if: ibid-with-locator
    else-if: ibid
    else...

  • Sorry, here is the code again, I hope you can see it this time. What exactly would I put into the if/else-if then?


    <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name-with-initials">
    <sort>
    <key macro="author-sort" names-min="3" names-use-first="1"/>
    <key macro="date-sort-group" sort="ascending"/>
    <key macro="date-sort" sort="ascending"/>
    <key variable="status"/>
    </sort>
    <layout prefix="(" suffix=")" delimiter="; ">
    <choose>
    <if match="any" position="ibid-with-locator ibid">
    <group delimiter=", ">
    <text term="ibid" form="short"/>
    <text variable="locator"/>
    </group>
    </if>
    <else>
    <group delimiter=", ">
    <text macro="author-intext"/>
    <text macro="date-intext"/>
    <text macro="citation-locator"/>
    </group>
    </else>
    </choose>
    </layout>
    </citation>
Sign In or Register to comment.