About page ranges, can it be no range?

My page field normally has the page range like following
123-126

In the citation, I just want show the starting page, i.e.
123
but not as described in CSL 1.0,
123-126
123-6
123-26

How can I write the CSL 1.0 style?

Thanks!
  • first page isn't currently possible. I don't know why, but somehow that didn't make it into the csl 1.0 specs.
  • This is weird. My field is Chemistry, and a bunch of journals requires first page only in citation. I think the implementation for this is easy. Hope the author can add this feature.
  • edited October 12, 2010
    For the starting page, try the (virtual) variable "page-first". It will render the first page of the range (or it should, and if it doesn't we'll bring it into line).
  • edited October 12, 2010
    Nope, it does not work in a construction like this:
    <group delimiter=" ">
    <!-- TODO: Change to page-first when Zotero supports it -->
    <text variable="page-first" form="short"/>
    </group>

    BTW, is there any way to support italic and bold in citation generator?
  • edited October 12, 2010
    Try using page-first without the "short" label - that doesn't make any sense for a first page.

    Where exactly do you want to use italics or bold?
    In CSL code I believe it's still font-style="italic" or font-weight="bold"

    as part of a title or suffix you can use <b> </b> or <i></i> tags which the 2.1 csl processor will convert into rich text.

    edit - corrected above to reflect the edit.
  • edited October 13, 2010
    <group delimiter=" ">
    < -- TODO: Change to page-first when Zotero supports it -->
    <text variable="page-first" form="short"/>
    </group>
    If the page-first text node is the only item inside the group, it would make sense to remove the group wrapper to keep things simple.

    [Edit: I can confirm that the group wrapper is the cause of the problem. Remove the wrapper, and the page number will render okay. The failure with the group wrapper in place is a bug, but in the short term, tidying up the style code will bring things right.]

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.