# Locator label affecting page range label?

**URL:** <https://discourse.citationstyles.org/t/locator-label-affecting-page-range-label/1763>\
**Category:** CSL Usage\
**Created:** [May 26, 2022, 1:00pm UTC](https://discourse.citationstyles.org/t/locator-label-affecting-page-range-label/1763 "2022-05-26T13:00:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcarterwood](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/jcarterwood/32/313_2.png) [@jcarterwood](https://discourse.citationstyles.org/u/jcarterwood)\
**Post date:** [May 26, 2022, 1:00pm UTC](https://discourse.citationstyles.org/t/locator-label-affecting-page-range-label/1763/1 "2022-05-26T13:00:25Z")

</div>

In adapting a CSL style for my institution’s house style, I’ve run into an issue that seems to involve locator labels (p./pp.) affecting page range labels.

I am using pandoc (2.18) / citeproc (0.7) to convert markdown to docx. Bibliographic references are in a json file, created with Zotero.

In our house style, for, say chapters and articles, the first citation should give both the full page range as well as, if necessary, the specifically cited range of pages.

However, when the locator is a single page (p.), the label for the full page range also reverts to singular (p.); if the locator is plural, both labels are “pp.”.

If I insert the same citation directly via Zotero into the document using the same CSL file, the formatting is correct.

See the screenshot below: footnote 1 is produced using pandoc/citeproc; footnote 2 using a direct insertion into LibreOffice via Zotero. #1 is incorrectly formatted, #2 is correctly formatted. Both use the same CSL file.

![CSL-locator](https://canada1.discourse-cdn.com/flex029/uploads/citationstyles/original/1X/b6b7937e08f8a5101a05e6661bd1decf0e795b6a.png)

Here is a link to [my CSL file](https://pastebin.com/czZyj41X).

Is this an issue with citeproc? Or am I incorrectly formatting my CSL? Does anyone have any ideas what’s going on here?

---

<div class="post-metadata">

**Author:** ![Sebastian\_Karcher](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/sebastian_karcher/32/176_2.png) [@Sebastian\_Karcher](https://discourse.citationstyles.org/u/Sebastian_Karcher)\
**Post date:** [May 26, 2022, 2:37pm UTC](https://discourse.citationstyles.org/t/locator-label-affecting-page-range-label/1763/2 "2022-05-26T14:37:29Z")

</div>

Yeah, you’re doing everything right. I haven’t tested myself with pandoc, but your CSL style looks good and what you describe would be a pandoc/pandoc-citeproc bug. I’d report it over there with a MWE.

---

<div class="post-metadata">

**Author:** ![jcarterwood](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/jcarterwood/32/313_2.png) [@jcarterwood](https://discourse.citationstyles.org/u/jcarterwood)\
**Post date:** [May 26, 2022, 2:57pm UTC](https://discourse.citationstyles.org/t/locator-label-affecting-page-range-label/1763/3 "2022-05-26T14:57:27Z")

</div>

Thanks for the quick reply! I guess I’m glad it’s not just me not knowing what I’m doing, on the other hand, that makes this problem unsolvable for me for the moment.

Would that bug report (it would be my first) be best directed to the [citeproc github page](https://github.com/jgm/citeproc)?

An MWE would include a 1) markdown file, 2) CSL file and 3) json file with references, I believe, or would there be some other element as well?

Thanks again!

---

<div class="post-metadata">

**Author:** ![Sebastian\_Karcher](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/sebastian_karcher/32/176_2.png) [@Sebastian\_Karcher](https://discourse.citationstyles.org/u/Sebastian_Karcher)\
**Post date:** [May 26, 2022, 3:00pm UTC](https://discourse.citationstyles.org/t/locator-label-affecting-page-range-label/1763/4 "2022-05-26T15:00:47Z")

</div>

John at pandoc tends to be pretty quick with bug fixes, thankfully. Yes, reporting to the citeproc github and yes on the MWE – if you can pare down your CSL file to the bare minimum that reproduces the issue, that’ll surely be appreciated.

---

<div class="post-metadata">

**Author:** ![jcarterwood](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/jcarterwood/32/313_2.png) [@jcarterwood](https://discourse.citationstyles.org/u/jcarterwood)\
**Post date:** [May 26, 2022, 6:33pm UTC](https://discourse.citationstyles.org/t/locator-label-affecting-page-range-label/1763/5 "2022-05-26T18:33:31Z")

</div>

Done: [Locator label affecting page range label · Issue #107 · jgm/citeproc · GitHub](https://github.com/jgm/citeproc/issues/107)

I failed in the paring down of the CSL file. Every effort to make it smaller threw up errors. This is my first real attempt at CSL editing. I hope I can contribute to a solution.
