Removing space after title

edited September 19, 2019
I am trying to create a custom style, based on Chicago, full note.

I needed to remove the parentheses from the place,publisher,date in citations which I did by replacing:


<else-if variable="publisher-place event-place publisher" match="any">
<group prefix="(" suffix=")" delimiter=", ">
<text macro="event-note"/>
<group delimiter="; ">
<text macro="originally-published"/>
<group delimiter=", ">
<text macro="reprint-note"/>
<text macro="publisher"/>
</group>
</group>
<text macro="issued"/>
</group>
</else-if>

(starting in line 1091) with:

<else-if variable="publisher-place event-place publisher" match="any">
<group prefix=", " suffix="," delimiter=", ">
<text macro="event-note"/>
<group delimiter="; ">
<text macro="originally-published"/>
<group delimiter=", ">
<text macro="reprint-note"/>
<text macro="publisher"/>
</group>
</group>
<text macro="issued"/>
</group>
</else-if>



This almost gets me the desired result except that the title looks like this:

MyTitle , New York, SomePublisher, 2015

MyTitle is in italic of course but I have an extra space after it that I need to get rid of.

Thanks for your assistance
  • You need to wrap your code into code brackets, otherwise we can't see anything: <code>asdf</code>
  • edited September 19, 2019
    Thanks - I fixed that so the code should be visible now
  • The space is in a group delimiter in the citation section, but given the nested nature and complexity of Chicago style, this isn't exactly straightforward to change.

    If you don't need the details of CMoS, might be easier to start with a simpler style.
  • Do you have a suggestion for another style? I started with Chicago because it is so close to what I need.
  • I would really like to stick with Chicago if it is any way to do it because it has localization that I need and I have no idea how to add that to another style.
  • Hard to say without knowing what you're requirements are. Either looking through the available footnote styles here: https://www.zotero.org/styles?format=note&dependent=0
    or using http://editor.citationstyles.org/searchByExample/ should give you some options.
  • You helped me with this by pointing out the right location and it looks like it works now. I changed


    <else>
    <group delimiter=", ">
    <group delimiter=": ">
    <group delimiter=", ">
    <group delimiter=" ">
    <group delimiter=", ">
    <group delimiter=" ">
    <group delimiter=", ">
    <group delimiter=", ">
    <text macro="contributors-note"/>
    <text macro="title-note"/>
    <text macro="issue-map-graphic"/>
    </group>
    <text macro="description-note"/>
    <text macro="secondary-contributors-note"/>
    <text macro="container-title-note"/>
    <text macro="container-contributors-note"/>
    </group>
    <text macro="locators-note-join-with-space"/>
    </group>
    <text macro="locators-note-join-with-comma"/>
    <text macro="collection-title"/>
    <text macro="issue-note-join-with-comma"/>
    </group>
    <text macro="issue-note-join-with-space"/>
    </group>
    <text macro="locators-newspaper"/>
    <text macro="point-locators-join-with-comma"/>
    </group>
    <text macro="point-locators-join-with-colon"/>
    </group>
    <text macro="access-note"/>
    </group>
    </else>


    to:


    <else>
    <group delimiter=", ">
    <group delimiter=": ">
    <group delimiter=", ">
    <group delimiter="">
    <group delimiter=", ">
    <group delimiter=" ">
    <group delimiter=", ">
    <group delimiter=", ">
    <text macro="contributors-note"/>
    <text macro="title-note"/>
    <text macro="issue-map-graphic"/>
    </group>
    <text macro="description-note"/>
    <text macro="secondary-contributors-note"/>
    <text macro="container-title-note"/>
    <text macro="container-contributors-note"/>
    </group>
    <text macro="locators-note-join-with-space"/>
    </group>
    <text macro="locators-note-join-with-comma"/>
    <text macro="collection-title"/>
    <text macro="issue-note-join-with-comma"/>
    </group>
    <text macro="issue-note-join-with-space"/>
    </group>
    <text macro="locators-newspaper"/>
    <text macro="point-locators-join-with-comma"/>
    </group>
    <text macro="point-locators-join-with-colon"/>
    </group>
    <text macro="access-note"/>
    </group>
    </else>


    That is - removing the space in the 4th delimiter. Looks perfect now. Hope it is OK but I appreciate if you tell me that this will create other problems.

    Thanks
  • I think you'd be safe if you remove the prefix=", " from the group in the macro and add ", " as the group delimiter where you've removed the space. Should be the same for the items you're looking at, but you're less likely to get missing spaces on other items.
  • I am not sure about the name of the macro or the location you are referring to. Can you please give me more details? Thanks.
  • I mean where you changed prefix="(" to prefix=", " (you say it's after line 1091) above. Just remove that prefix entirely and instead change the group delimiter you now have as delimiter="" to delimiter=", "
Sign In or Register to comment.