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
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
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.
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
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>))
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
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!
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!
delimiter-precedes-et-al="true" in
cs:citation
(i.e. include that in the line that starts with <citation ...)
This isn't actually officially supported yet, but it's about to be and already works in Zotero:
http://rst.projectfondue.com/api/v1/rst2html/?rst_url=https://raw.github.com/citation-style-language/documentation/master/release-notes-CSL-1.0.1.txt&css_url=http://citation-style-language.github.com/styles/css/screen.css&output_type=html&callback=&document_output=whole&highlight_style=manni#delimiter-precedes-et-al