Style Request: Contributor last name in all caps in notes

I am editing a dissertation for a university whose house style requires last names to be all caps but only in notes/citations. (Bibliography names should be upper/lowercase as usual.)

Example:
Jameson TAYLOR, “Beyond Nature: Karol Wojtyla’s Development of the Traditional Definition of Personhood,” The Review of Metaphysics 63, no. 2 (2009): 423.

I've been able to tweak the Zotero CSL for other quirks of the house style, but I cannot locate the specific target to change for surnames, conditional for notes. Help?
  • edited 23 days ago
    It's always easier for us to help if you told us which style you used or share your current custom style.

    But if your author macro (or author section) looks like this...
    <macro name="author">
    <names variable="author">
    <name and="text"/>
    <label form="short" strip-periods="false" prefix=" (" suffix=")"/>
    </names>
    <group/>
    </macro>


    you'd want to adapt it like so.
    <macro name="author">
    <names variable="author">
    <name and="text">
    <name-part name="family" text-case="uppercase"/>
    </name>
    <label form="short" strip-periods="false" prefix=" (" suffix=")"/>
    </names>
    <group/>
    </macro>
  • Ah, gotcha. I'm using the Chicago Manual of Style 17th edition (full note, short title subsequent) CSL. I've managed to change it to always give full name with short titles, but beyond that I'm stumped. Would your adaptation still work here?
  • The basics, yes. The relevant macro is called contributors-note, not author in the style, but the name uppercasing would look exactly like above (remove the / from the end of the current <name... line, add the name part line exactly as given as well as the </name> line.
  • I think I have it almost there, but it's giving a compiling error.

    This is how the macro is worded now:


    <macro name="contributors-note">
    <group delimiter=" ">
    <names variable="author">
    <name and="text">
    <name-part name="family" text-case="uppercase"/>
    </name>
    <name and="text" sort-separator=", " delimiter=", "/>
    <label form="short" prefix=", "/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    </substitute>
    </names>
    <text macro="recipient-note"/>
    </group>
    </macro>


    It's saying there's an error in the line

    <name and="text" sort-separator=", " delimiter=", "/>


    Do I need to move the /name line farther down?
  • edited 23 days ago
    You can't have 2 "name" in a "names". Delete the 2nd one.
  • (that is, delete the entire line that's throwing an error)
  • Do I need to move any of it to the prior "name" line?
  • By which I mean aren't "sort-separator" and "delimiter" also important to keep?
  • I don't think so, no. One is irrelevant, the other one the default anyway.
  • Thank you both. The code is working for first citations, but the subsequent citations (where the full name must also be given) is still lowercasing the family name. I tried adding the same lines to the contributors-short macro but it's giving an error when compiling?

    Is this just a case where I can't have it both ways?


    <macro name="contributors-short">
    <group delimiter=" ">
    <names variable="author">
    <name and="text"/>
    <name-part name="family" text-case="uppercase"/>
    </name>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    </substitute>
    </names>
    <text macro="recipient-short"/>
    </group>
    </macro>
  • it needs to be
    <name and="text"> (you're closing the name tag two lines below)
  • Amazing! That works so great. I have 850 citations and this will save so much trouble. Appreciate your time and expertise!
Sign In or Register to comment.