styles that sort by author

I really like one of the citation styles (IEEE), except that it doesn't sort by the last name of the author. So I modified it to do this by adding just a couple lines that were borrowed from another style file (.csl) to do this. And it works great ... except that now the formatting of the entries is changed, too. Specifically, conference venues and journal titles had been in italics, and now they're not. I have no idea why sorting by author would affect whether these items are in italics. Any ideas?
  • no - shouldn't happen. You could have somehow broken the style, we'd have to know more precisely what you did.
  • I took the existing IEEE style and added these four lines (right after the line: <bibliography et-al-min="7" et-al-use-first="1" entry-spacing="0" second-field-align="flush">):

    <sort>
    <key macro="author"/>
    <key variable="issued"/>
    </sort>
  • yes, that should work - please post the full style as you're using it into the window at
    gist.github.com
    click "create public gist" on the bottom and post the link here.
  • git://gist.github.com/1003087.git

    Note also that I had to modify the author/id/name of the style so that it wouldn't conflict/overwrite the existing IEEE style.
  • this looks OK, but the validator doesn't like it - I'm not sure if that's related to the problem but it could be. I'll take a look, but it'll take a couple of days maybe.
  • Your gist is missing a ">" at the closing cs:style tag. Other than that the style validates.

    Are you sure that your unmodified style gives the expected formatting? I'm not sure where you got the IEEE style from, but it might be a different version that the one you had originally installed.
  • the style on github should certainly put journal titles and conference titles in italics.
    l. 182 and 121 respectively.
  • Works for me in chrome://zotero/content/tools/csledit.xul.
  • If remove the 4 lines inserted for sorting, then everything works perfectly and I get (un-sorted) entries with the appropriate italics. I can repeat this experiment.
  • @Rintze: The missing ">" at the end was a copy/paste error from my .csl file into the git webform.
  • Then you've come across a bug :)
  • It works fine in the latest version of the processor. I'd just wait until 2.1.7 comes out (which does contain a number of fixes affecting italics et cetera), and see if that doesn't fix it.
  • @fbennett: Thanks for the info. When/where can I get 2.1.7?
  • Your Zotero copy will auto-update when 2.1.7 comes out - I figure this week.
  • It should be out in a few days. If you want to take an advance look, you can install the branch XPI. Back up data and documents before installing, and be sure to install 2.1.7 manually when it comes out, to avoid receiving sometimes-unstable development updates from the branch.
Sign In or Register to comment.