CSL Page number inline citation

Hi all,

I just started to use the Visual CSL Editor to adapt an existing style to my needs. Now I have some issues with the page number for direct quotations.

Current state:
Text (Author, 2016, p123)

Target state:
Text (Author, 2016, p. 123)

In the Bibliography there should be no period after the p / pp. Thus I defined the terms as follows:

<term name="page" form="short">
<single>p</single>
<multiple>pp</multiple>
</term>

So is there any chance to change the style only for inline citations? Or better, can I define Affixes for the page number in inline citations? What I am wondering about at the moment is that there is actually no variable for inline citations what would depict the page number but nevertheless it is showing a page number if you insert a page with zotero.
I hope you know what I mean.

Thanks in advance!
  • if you're using the visual editor, you can click on example citations at the top right and then, for one of the selected items, click on the "Normal Citation" dropdown and select:"Locator: Pages 244-255".
    That will allow you to actually see what your modifications are doing and you'll also be able to click on the page range in the citation to get to the right place in the code.

    For your particular instance, you will not want to change this in the term definition (an you'd preobably want to put the period back for the terms -- you can always remove it for the bibliography using strip-periods="true") and then do something like

    <group delimiter=" ">
    <label variable="locator" form="short"/>
    <text variable ="locator"/>
    </group>


    There are other ways of doing this, e.g. using a prefix on locator, but that's probably the cleanest.
  • It works! Thank you very much.

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.