Custom page-range-format
Hi all,
I'm just getting started, but have been able to find almost everything I need on the forums and in the documentation. One problem I can't seem to find a solution to is changing the rules of the
Currently, applying the
Is there a way to edit the rule or create a custom one? I'm looking to add a conditional that preserves the 1 if it is the second-to-last digit.
I'd appreciate any and all help. Thanks for your time,
Carl
I'm just getting started, but have been able to find almost everything I need on the forums and in the documentation. One problem I can't seem to find a solution to is changing the rules of the
page-range-format
attribute.Currently, applying the
"minimal"
rule changes, say, 125–126 to 125–6, which is wonderful, but it also changes 115–116 to 115–6. I'm assuming there are some styles that prefer this, otherwise it wouldn't be implemented, but in my experience the preference has always been to maintain the "1" in all groups ending in 10–19, so: 125–6 but 115–16. I'm surprised there isn't already a rule in the CSL spec taking this into account.Is there a way to edit the rule or create a custom one? I'm looking to add a conditional that preserves the 1 if it is the second-to-last digit.
I'd appreciate any and all help. Thanks for your time,
Carl
When you say what is this based on? It's not what Vancouver style/Citing Medicine does, which is by far the most widely use family of styles with abbreviated page ranges, and it's not what the Chicago Manual (for which we have separate rules as you saw) does. In fact, as far as I'm aware, you're literally the first person to ever ask about this in the 10+ years of CSL
It's blowing my mind that no one has asked this before… Thanks again for letting me know.