Author names and the "and" term with uppercase?

In the bibliography section of a paper, how to return everything of the author part with uppercase, including the "and" term between the last and second last authors? With the code shown below, I can only get the author names with uppercase, but the "and" term is lowercase:
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" and="text" sort-separator=", "
delimiter=", " form="long" text-case="uppercase"
delimiter-precedes-last="never" initialize-with=". "/>
<label form="short" prefix=" (" suffix=".)" text-case="capitalize-first"/>
</names>
</macro>
  • if you don't need it in the text, you can define and as uppercase using
    <locale xml:lang="en">
    <terms>
    <term name="and">AND</term>
    </terms>
    </locale>

    as described here
    http://citationstyles.org/downloads/specification.html#locale
    (substitute "en" with the appropriate language code).
  • I am new in Zotero. Could you please teach me where to put the code you told me? I have tried some locations, but it is not working.
  • right below the info section, i.e. between
    </info>
    and the first macro. But if you use a non-English version of FF and your style doesn't default to English you'll need to change the "en" in <locale xml:lang="en"> to the respective language - as in "ru" for Russian, "es" for Spanish, "de" for German etc.
  • Dear Adamsmith,
    Thank you for your quick feedback!

    I have tried your suggestions and the changed code looks like below:
    <style xmlns="http://purl.org/net/xbiblio/csl">
    <info>
    ...........
    </info>
    <locale xml:lang="zh">
    <terms>
    <term name="and">AND</term>
    </terms>
    </locale>
    <macro name="editor">
    <names variable="editor" delimiter=", ">
    <label form="verb" text-case="lowercase" suffix=" "/>
    <name and="text" initialize-with=". " delimiter=", " name-as-sort-order="all"/>
    </names>
    </macro>
    <macro name="anon">
    <text term="anonymous" form="short" text-case="capitalize-first"/>
    </macro>
    <macro name="author">
    <names variable="author">
    <name name-as-sort-order="all" and="text" sort-separator=", "
    delimiter=", " form="long" text-case="uppercase"
    delimiter-precedes-last="always" initialize-with=". "/>
    <label form="short" prefix=" (" suffix=".)" text-case="capitalize-first"/>
    </names>
    </macro>
    ..........
    </style>

    However, it's still not working. The CSL code I'm modifying is based on the code of the "American Geophysical Union general format". I'm using the firefox 4.0.1 version in Traditional Chinese language, Zotero 2.1.8 version, and Office 2003 SP3.

    Hope the problem could be solved through changing the CSL code.
  • looks like you're modifying a csl 0.8 style - that might be possible, too (maybe by switching the <terms> and <locale> tags?) but I can't test it and I wouldn't recommend it - you can find an updated version of AGU on the repository, or you could manually update your modified style to csl 1.0
    http://citationstyles.org/downloads/upgrade-notes.html#updating-csl-0-8-styles
    once that done, the above code should work.
  • I am pretty sure that I am modifying a CSL 1.0 style.
  • <style xmlns="http://purl.org/net/xbiblio/csl">
    is not a valid style element for csl 1.0 - in 1.0 the style element requires class and version.
    post the whole style to a public gist at gist.github.com
  • edited June 21, 2011
    The problem is solved after using the code below:
    <terms>
    <locale xml:lang="en">
    <term name="and">AND</term>
    </locale>
    </terms>

    Thank you for your help.
  • that means your style is in csl 0.8.1 - as I say above, locale and terms were reversed during the upgrade.
Sign In or Register to comment.