What is the difference between the visual editor and code editor?
I'm wondering whether there is a difference in what can be achieved with the visual csl editor compared to the code editor. Are there modifications one can make in the code editor that are not possible to make in the visual editor or vice versa?
And soooometimes one can't find where a certain comma/dot is coming from and it is then easier to look in the code.
If you need help, post youre code on Hastebin and share the link with us here. :)
I would very much appreciate some help with this if possible!
You have a delimiter set in the "Inline citations" group. This group adds a space between authors+(year), but also between (year) and the pages.
To get rid of it the 2nd space, but keep it between author and date, you can do the following.
<citation et-al-min="6" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name">
<sort>
<key macro="author" names-min="8" names-use-first="6"/>
<key macro="issued-sort"/>
</sort>
<layout delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<group delimiter=", ">
<text macro="issued-citation"/>
<text macro="citation-locator"/>
</group>
</group>
</layout>
</citation>
(Replace citation section from 1401.... with this).
I don't think you can get Author (year, year) generated by a citation style, I'm afraid. The only way to do this is to use suppress author in an (author year) style and write the author in the text.
I put the brackets around the year as prefix and suffix, perhaps this has something to do with the problem?
Is there a way to fix this?
1. Doe (2000 when there is no suffix (and Doe (2000a) when there is a suffix)
2. Doe (2000)a)
I'm not sure how to get Doe (2000) when there is no suffix and Doe (2000a) when there is...
Accadia et al. (2012a), (2012b); Mares (2001)
Code:
<macro name="issued-year">
<group prefix="(" suffix=")">
<choose>
<if type="personal_communication">
<choose>
<if variable="archive DOI publisher URL" match="none">
<date variable="issued" form="text"/>
</if>
<else>
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</if>
<else>
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
<text variable="year-suffix"/>
</group>
</macro>
(I have used the style you had posted on Pastebin as a base. It might be different now if you have changed this part a lot.)
How do I change this?
If You, with Your style, want something else you can change that of course.