Minor edits to MHRA style

Hi. I'm afraid I can't get to grips with editing citation styles, and wondered if someone could quickly advise me on a couple of minor customizations I want to make to the MHRA style. These are:

1. Page numbers: I need to remove the space after each "p. " so that e.g.

Denis Donoghue, On Eloquence (Yale University Press, 2010), p. 3.

becomes

Denis Donoghue, On Eloquence (Yale University Press, 2010), p.3.

2. I'd like Zotero to insert ibids whenever I've got a consecutive sequence of notes citing the same book / article; currently it writes out the full citation each time. (I'm aware that MHRA style discourages ibids, but need to use them in this case.)

Any help would be much appreciated!
Thanks.
  • Sorry for the delay:
    1.)
    Find both instances of
    <label variable="locator" form="short" prefix=", " suffix=" "/>
    <text variable="locator"/>

    and change them to
    <label variable="locator" form="short" prefix=", "/>
    <text variable="locator"/>

    2.)

    Find
    <if position="subsequent">
    <group delimiter=", ">
    <text macro="contributors-short"/>
    <text macro="disambiguate"/>
    <text macro="locators-specific-note"/>
    </group>
    <text macro="point-locators-subsequent"/>
    </if

    replace by
    <if position="ibid-with-locator">
    <text term="ibid"/>
    <text macro="point-locators-subsequent"/>
    </if>
    <else-if position="ibid">
    <text term="ibid"/>
    </else-if>
    <else-if position="subsequent">
    <group delimiter=", ">
    <text macro="contributors-short"/>
    <text macro="disambiguate"/>
    <text macro="locators-specific-note"/>
    </group>
    <text macro="point-locators-subsequent"/>
    </else-if>
  • Thanks! That seems to have worked, although the edits to page numbers haven't caught book sections or articles...
  • right, Zotero distinguishes between page numbers you add via word processor add-on and page ranges that are part of the data.

    You'll want to find something along the lines of
    <label variable="page" form="short"/>
    and delete it.
  • Thanks so much for your help -- all of this seems to work.

    For the record, the line you mention

    <label variable="page" form="short"/>

    looked like this in the code

    <label variable="page" form="short" prefix=", " suffix=" "/>

    so I simply deleted the suffix, which worked (deleting the whole thing caused problems.)

    There's now only one type of instance where I still have a space after the 'p.' -- namely, where there's a page range for a chapter or article, followed by a bracketed page number for the citation, e.g.:

    (London: Vision Press, 1990), pp.123–39 (p. 134).

    If possible, could you let me know where in the code I might find this?
Sign In or Register to comment.