citation style using a single page

Hello,

I'm creating a citation style for Rapid Communications in Mass Spectrometry. In this style, cited papers should include only the first page:

--
[1] P.J. Weaver, A.M.-F. Laures, J.-C. Wolff. Investigation of the advanced functionalities of a hybrid quadrupole orthogonal acceleration time-of-flight mass spectrometer. Rapid. Commun. Mass Spectrom. 2007, 21, 2451.
--

I did not find any example CSL-file using a singe page; they all use the form "2451-2458". Can the page text variable be tweaked to show only the first page?

By the way, if one creates a CLS-file based on another, existing style, is it appropriate to change the author/contributor fields? Should the author of the style upon which it is based, stay the author of the new style, even when thouroughly altered?

thanks!
  • 1. This isn't possible in Zotero 2.0.9 - in Zotero 2.1b, using the new csl 1.0 version, this can be done using the variable "page-first"
    http://citationstyles.org/downloads/specification.html#appendix-i-variables

    2. The common practice is to move the old author(s) into a contributor field to acknowledge their work, but it's useful if the person who actually adapted the style is the main author - the logic there being that you'd be the best person to fix potential problems in a style that you adapted.
    There are no hard and fast rules on when to change an author to a contributor, but that seems how most people proceed.
  • Ok, thanks. I'll have to make a csl1.0 style then.

    I guess that zotero's style repository uses exclusively csl 0.8. Does this mean I cannot upload my 1.0 style?
  • I believe you can upload - it might be marked as invalid, though.
    But maybe some of the csl folks can chime in about how they see things developing as more people contribute csl 1.0 styles.
  • You can just upload the style (the Zotero Style Repository already contains a few CSL 1.0 styles):

    http://www.zotero.org/styles/GOST-R-7.0.5-2008-csl-1.0/dev
    http://www.zotero.org/styles/McGillv7/dev
    http://www.zotero.org/styles/medsci/dev

    The issue is a bit trickier for styles that also have a CSL 0.8.1 version in the repository. For the GOST style, we have both GOST-R-7.0.5-2008-csl-1.0.csl (for CSL 1.0) and GOST-R-7.0.5-2008.csl (for CSL 0.8.1). It would be preferable to have a single, stable ID for such styles, but I don't see a better solution.
  • edited January 25, 2011
    ... maybe some of the csl folks can chime in about how they see things developing as more people contribute csl 1.0 styles.
    I'm really trying to move 1.0+ style development off zotero svn, but have yet to hear from anyone on the zotero side about this.
  • yes, that's what I thought - it would be good to get that clarified asap.
  • Hi kobbejager

    You were creating a citation style for Rapid Communications in Mass Spectrometry. Have you succeeded or is it available somewhere?
    With best regards,
    Eugen
  • Hello,

    I have also run into a road block with the Rapid Communications in Mass Spectrometry citation style. I can't seem to make the "page-first" variable work, and therefore cannot create an accurate style. Is anyone able to offer help or develop a citation style for this journal?

    Thanks,
    Hannah
  • page-first definitely works, at least with Zotero. What's the problem?
    For style requests see
    https://github.com/citation-style-language/styles/wiki/Requesting-Styles
  • Thank you for the response, adamsmith. I am new to CSL and tried to create my own file from a similar one that did not have the page-first setting. Could you provide an example of the appropriate code I should be using?
  • edited April 21, 2014
    obviously depends on the specifics, but see e.g.
    https://github.com/citation-style-language/styles/blob/master/advanced-engineering-materials.csl#L107

    (the form="short" set on the variable doesn't do anything, you can leave that out).

    edit: and if you have a problem getting a style to work, post what you have to a public gist at gist.github.com (no registration necessary) and link to it.
  • Okay, I have posted my test file here
    https://gist.github.com/anonymous/11151592
  • that works for me. how are you testing this?
  • Great, thanks for testing it. I had uploaded it to my Zotero styles and had applied it to my document in Microsoft Word. I just tried closing and reopening the document, and then changing styles to a different one and back to my Rapid Communications in Mass Spectrometry test. Now it seems to be working for me! I don't know what made the difference, but thanks so much for your help, adamsmith. I appreciate your immediate feedback.
  • yup, changing a style back and forth is necessary for changes in the style to take effect.
Sign In or Register to comment.