Differences between reference pane and MS Word bibliography

Hi all,

Did some searches and saw nothing on this, apologies if this has been covered already.

I've been editing a .csl file to create a new style for a journal that didn't have one previously in the repository.

Using the reference test pane, my book section component of the csl shows up correctly. Example:

Deignan, H. G. (1964). Birds of the Arnhem Land expedition. In ‘Records of the American-Australian scientific expedition to Arnhem Land. Vol. 4’. (Ed C. P. Mountford.) pp. 345–425. (Melbourne University Press: Melbourne, Australia).

When I look at the results in MS Word, however, it doesn't show up correctly. Example:

Deignan, H. G. (1964). Birds of the Arnhem Land expedition. In C. P. Mountford, ed. Records of the American-Australian scientific expedition to Arnhem Land. Vol. 4. Melbourne University Press: Melbourne, Australia, pp.345–425.

The problem appears to be that the reference pane recognizes a Zotero entry with Item Type: Book Section as such (am I right that this is referred to as "chapter" in the csl file? per: http://gsl-nagoya-u.net/http/pub/csl-fields/bookSection.html), while the MS Word plugin does not, and defaults to the last else statement in the csl file, e.g. the display for some other item type.

Thanks for any help you can offer!
  • we'd have to see the style. This is unlikely to happen with valid CSL code (though there's always the possibility that you've discovered a bug), but invalid syntax may very well be interpreted differently by the two.
    Post the style to gist.github.com or pastebin.com and provide a link and we can take a look.
  • You're right, I tried to validate on github's thing and it gave some errors:

    stdin:55:10: error: missing attributes of http://purl.org/net/xbiblio/csl^text
    required:
    attribute ^macro
    attribute ^term
    attribute ^value
    attribute ^variable
    allowed:
    attribute ^form
    attribute ^plural
    attribute ^form
    attribute ^prefix
    attribute ^display
    attribute ^font-style
    attribute ^font-variant
    attribute ^font-weight
    attribute ^text-decoration
    attribute ^vertical-align
    attribute ^quotes
    attribute ^strip-periods

    error: invalid input

    Link: https://gist.github.com/3751067

    Any help as to what I did to screw the file up would be greatly appreciated.

    Thanks!
  • delete line 55:
    <text text-case="capitalize-first" suffix=" "/>
  • Well your fix definitely magically made the code valid--thank you!! But the problem with the book section showing up right in the test pane and wrong in MS Word did not go away. The problem is also there for theses.

    What gives?
  • works for me (same, correct, result with plugin and test panel). Try deleting your old style from the styles tab of the Zotero preferences and install this:
    https://gist.github.com/raw/3751375/c89f9ed7bca46b77c24ed8963d343bfa335fb88e/emu.csl
    Note that in an existing document, you may have to switch to a different style and back.
  • that did it--thanks a lot!
  • Once everything is tested out, see here for contributing your style:
    https://github.com/citation-style-language/styles/wiki/Submitting-Styles
  • I went ahead and did that. The updated version is here (I went with option C for uploading):

    https://gist.github.com/3756913

    Let me know if I should do something different (e.g. start a new thread for this)
  • if you don't mind, have another looks at 2 and 4 here and touch those up.
    https://github.com/citation-style-language/styles/wiki/Style-Requirements
    also, I'd suggest using the full journal title - i.e. Emu - Austral Ornithology for title, ID, and file name.

    Thanks!
  • Ok, I attended to those and updated the file at the above link. Thanks again!
  • The style is up. It will show up on the repository within 30mins. It may take up to a day for the preview to work.
    If you want to update the style in the future, please always start with the version on the repository, since we usually touch up some formatting etc. (if you're interested, note how I've replace the quotation marks with quotes="true" which has some important advantages.

    Thanks for contributing!
  • Ok, thanks! I'll make sure to start with the current version if updating.
  • edited October 12, 2012
    Hi to all
    Re-opening this conversation since the topic is the same
    The style I have encoded (that validates; git://gist.github.com/3880061.git), anything goes nice with the test panel but nothing goes with MS Word 2007.
    The main (and sole) problem lies around using
    to create a carriage return in the bibliography.
    Other CR code tested (
    ) didn't work neither in word.
    What could I do?
    Thanks in advance
  • Actual CR code:& # 13 ;
    Tested: & # 10 ;
  • Lost in translation (and in CSL)
  • Pourquoi avez-vous besoin de ces CR? Espacer deux références en biblio?
  • Respecter les normes de la revue, et faire sauter l'auteur dans la biblio:

    Smith, J. [CR]
    2010: Blablabla [CR]
    2011: Blablabla

    Zmith, R. [CR]
    2009: Bla [CR]
    2010: Blablabla [CR]
    2011: Blablabla
  • edited October 12, 2012
    Il faut utiliser l'attribut "display", regardez le deuxième exemple ici: http://citationstyles.org/downloads/specification.html#display

    Cf. l'autre discussion.
Sign In or Register to comment.