Uppercasing the author name

Hello everyone,

I have been trying for the last few days to adapt the style of Aging Cell to what I need for my thesis project in terms of citation and bibliography, but it seems I have run into a problem I haven't been able to fix.
I tried to use the name-part formatting to make author family names to be shown in uppercase in citations (e.g. JONES et at., 1997), but the validation keeps telling me name-part is not allowed. I'm not sure why it tells me that, and I could not access the PURL that it gives me.

If anyone could please take a quick look at what I have so far and help me, I would really appreciate. Here is the code: http://pastebin.com/taNsyALx

Thanks beforehand to anyone that could lend a hand.

Cheers,
Renata
  • cs:name-part can only be used as a child element of cs:name. See http://citationstyles.org/downloads/specification.html#name-part-formatting
  • I see...
    I'm obviously not familiar at all with the CSL language, so perhaps, could you suggest another way to make the author name show in uppercase in the in-text citation?

    I have tried changing the lowercase commands for the author but the viewer showed no change, so I'm not sure what it is that I'm missing.

    Thanks again for any help you can lend.

    Cheers,
    Renata
  • looks like you're almost there:
    change your author-short macro to this:

    <macro name="author-short">
    <names variable="author">
    <name form="short" and="symbol" delimiter=", " delimiter-precedes-last="never" initialize-with=". ">
    <name-part name="family" text-case="uppercase" />
    </name>
    <et-al font-style="italic"/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <text macro="anon"/>
    </substitute>
    </names>
    </macro>

    (to rephrase what Rintze writes above: the "name-part" needs to be a sub-element of "name" - i.e. it needs to be framed by the tag starting name (<name....> and the one ending it (</name>))
  • I feel a bit embarrassed now, but I guess it goes to proving I'm not really familiar with the CSL language (if you actually do call it a language).
    Anyway, it worked like a charm! Finished a few more modifications that the validation allowed (thank God!) and now I'm set to go.
    Thank you both for the help.

    Cheers,
    Renata
  • precisely speaking is the CS language :-) - no reason to be embarrassed at all, especially if you're not used to xml, it takes a little while to wrap your mind around this.
  • And, here I am again, with yet another problem I hadn't noticed before.
    My in-text citations come as (NAME YEAR) for citations with only one author, and I would like to make it (NAME, YEAR). I tried putting a suffix in the author-short section, but then even the et al. ones changes from NAME et al. YEAR to NAME, et al. YEAR. I don't really want the et al ones to change, and I haven't been able to figure out how to change the codes (again).

    I have updated the paste of what I got, not much changed from last time, but just in case the changes I did do make a difference for this case. Here is the paste: http://pastebin.com/KAUf9Tx7

    Thanks again for any help guys.

    Cheers!
  • Oh, never mind! I found a post from you adamsmith explaining the same thing to someone else, and your tip on that post actually worked for me!

    You already helped without even knowing!
    Funny thing, I have been looking for an answer for about an hour and when I decide to post for help, I stumble on the answer...

    Anyway, thanks!

    Cheers!

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.