Editing CSL style to remove comma after et al. when author in text is outside parentheses

edited January 16, 2020
I edited Harvard1 style and added comma after each et al. in text.
(Author et al., year)

However, comma after et al. when author in text is outside parentheses is something I do not want.
Right now I have:
Author et al., (year)
and I would like that comma removed but I do not know how to fix it.

Also, I tried to italicize et al in text with no luck... in CSL editor it seems to work but when I apply it in my doc, it does not work. I use Qiqqa in cite.

I am attaching code that has some modifications (such as added comma and italicized et al that did not work):

Thank you very much!

[style code removed — D.S.]
  • edited January 16, 2020
    Please post your style to hastebin.com or similar and provide a link here — the style won't display here if you just paste it in.
  • edited January 16, 2020
    You probably added that comma as a pre or suffix, right? It'll always show up then, even if you supress the author.
    So you'd want to put the author and issue in a group.

    <group delimiter=", ">
    <macro name="author"/>
    <macro name="issued"/>
    </group>

    That would do that, assuming that you have those macros. Adapt as necessary. But share your code, then we can help more specifically.
  • Thank you!

    Please see my code below. The macro is called author-short


    <?xml version="1.0" encoding="utf-8"?>



    MYstyle
    http://www.zotero.org/styles/alastyle



    Rintze Zelle
    http://twitter.com/rintzezelle



    0012-9658
    2018-02-20T01:16:07+00:00
    This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License







  • I apologize... I pasted the code but it does not seem to show here. What am I doing wrong?
  • edited February 4, 2020
    It is blank again :(
  • See dstillman's post above:
    Please post your style to hastebin.com or similar and provide a link here — the style won't display here if you just paste it in.
  • (And it’s possible to make code show here, but if you are posting more than a few lines, it’s much easier to read if you put on hastebin.com and link here.)
Sign In or Register to comment.