Skip to content

Commit

Permalink
ACL: check if edition is ordinal before printing the word "edition"
Browse files Browse the repository at this point in the history
To address the problem that "edition" is being printed spuriously (acl-org/acl-anthology#2156).
(macro copied from APA 6th edition)
  • Loading branch information
nschneid committed Oct 1, 2022
1 parent 7bde3e4 commit cebec0e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions association-for-computational-linguistics.csl
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,17 @@
</choose>
</macro>
<macro name="edition">
<number variable="edition" form="ordinal"/>
<text term="edition" prefix=" "/>
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<macro name="volume-or-number">
<choose>
Expand Down

0 comments on commit cebec0e

Please sign in to comment.