Square brackets for "et al."
I am creating custom style and I need square brackets around et. al. for authors and editors:
Style is for MLZ (4.0m350) and validates against 1.1mlz1 scheme.
I wrote such a macro:Adam Smith [et al.]
<macro name="editor">
<names variable="editor" font-style="normal" delimiter=", ">
<name delimiter-precedes-et-al="always" delimiter-precedes-last="always" et-al-min="4" et-al-use-first="1" initialize="false" initialize-with=". " sort-separator=" "/>
<et-al term="and others" prefix="[" suffix="]"/>
<label form="short" prefix=" (" suffix=")"/>
</names>
</macro>
And similar code is for the authors. But there is no luck at all – I don't see any brackets. What I am doing wrong?Style is for MLZ (4.0m350) and validates against 1.1mlz1 scheme.
http://citationstyles.org/downloads/specification.html#et-al
My recommendation would be to define the et al. term with square brackets as in
<locale xml:lang="en">
<terms>
<term name="et-al">[et al.]</term>
</terms>
</locale>
If you also need an et al without brackets in the same style, you can redefine (and set) "and others" for that purpose.
I did that even before appending affixes to "et al." and result was quite strange: – there is no delimiter before "et al." at all. Removing only bracket-preffix in term definition curates that: Is it bug?
<locale xml:lang="en">
<terms>
<term name="et-al"> [et al.]</term>
</terms>
</locale>
gets you what you want.
@maras: Use the method suggested by adamsmith. Thanks for pointing out that this validates. I should restrict affixes on et-al in the extended schema to prevent confusion.
I must add comma in the term definition to get comma before "et al." into the reference. And MLZ automatic terms change by language isn't working (I must add appropriate translations of term to all locales to get it working). But that is very small bug ant there is good workaround.
@fbennet: Glad to help you.