Adding italics in CSL introduces a random comma?
I'm editing the "report" type for AMA style. This is what I have so far:
It works fine, and gives me this:
Bongaarts J, Completing the fertility transition in the developing world: the role of educational differences and fertility preferences, New York: Population Council, 2003, Policy Research Division Working Papers, No. 177.
However, I would like "Policy Research Division Working Papers" (in the genre field) to be italicized, so I do this:
Now the genre is italicized BUT there is a weird new comma in front of it, so it looks like this:
Bongaarts J, Completing the fertility transition in the developing world: the role of educational differences and fertility preferences, New York: Population Council, 2003,, Policy Research Division Working Papers, No. 177.
What am I doing wrong? Thanks in advance for any suggestions!
<else-if type="report" match="any">
<group prefix=" " delimiter=" ">
<text macro="editor"/>
<text variable="container-title" text-case="title" font-style="italic" suffix=","/>
<text variable="collection-title" font-style="italic" suffix=","/>
<group>
<text macro="publisher"/>
<group prefix=", ">
<date variable="issued">
<date-part name="year" suffix=","/>
</date>
<text variable="genre" font-style="italic" prefix=", "/>
<text variable="number" prefix=", No. "/>
It works fine, and gives me this:
Bongaarts J, Completing the fertility transition in the developing world: the role of educational differences and fertility preferences, New York: Population Council, 2003, Policy Research Division Working Papers, No. 177.
However, I would like "Policy Research Division Working Papers" (in the genre field) to be italicized, so I do this:
<else-if type="report" match="any">
<group prefix=" " delimiter=" ">
<text macro="editor"/>
<text variable="container-title" text-case="title" font-style="italic" suffix=","/>
<text variable="collection-title" font-style="italic" suffix=","/>
<group>
<text macro="publisher"/>
<group prefix=", ">
<date variable="issued">
<date-part name="year" suffix=","/>
</date>
<text variable="genre" font-style="italic" prefix=", "/>
<text variable="number" prefix=", No. "/>
Now the genre is italicized BUT there is a weird new comma in front of it, so it looks like this:
Bongaarts J, Completing the fertility transition in the developing world: the role of educational differences and fertility preferences, New York: Population Council, 2003,, Policy Research Division Working Papers, No. 177.
What am I doing wrong? Thanks in advance for any suggestions!
But even better would be to paste your code to a secret gist at gist.github.com and post a link here.
(Ignore the title macro weirdness, I just took that out)
I got rid of the various prefix commas and just added it as a delimiter in the group that sits on top of it.
I do not have the Propachi plugin installed.
(that's damnation's style above), and copy&paste it to the style editor in Zotero, you get that error? Does it depend on which references you have selected?
If so, I'd suggest making sure you have saved copies of your custom styles and then reset styles from the advanced tab of the Zotero preferences.