Citations in exponent with vertical align
Hi everybody !
I try to modify some style for zotero and I still have a problem for citations.
I want them in "exponent". It works for the figures but not for the commas when I have several references!
I don't know where is the problem... Could you help me ??
I copy you my code..
Thanks.
------------------------------------------------------------------------------------------------------------
<macro name="author">
<names variable="author" suffix=". ">
<name sort-separator=" " initialize-with=". " name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always" text-case="capitalize-first" font-variant="small-caps"/>
<label form="short" prefix=" (" suffix=".)" text-case="lowercase"/>
<substitute>
<names variable="editor"/>
</substitute>
</names>
</macro>
<macro name="editor">
<names variable="editor" suffix=". ">
<name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always" text-case="capitalize-first"/>
<label form="short" prefix=" (" suffix=".)" text-case="lowercase"/>
</names>
</macro>
<macro name="publisher">
<choose>
<if variable="publisher-place">
<text variable="publisher-place" suffix=" : "/>
</if>
</choose>
<choose>
<if variable="publisher">
<text variable="publisher" suffix=", "/>
</if>
</choose>
<choose>
<if variable="issued">
<date variable="issued" suffix=". ">
<date-part name="year"/>
</date>
</if>
</choose>
</macro>
<macro name="access">
<choose>
<if variable="DOI">
<text value="Disponible sur : " prefix=" "/>
<group prefix="<" suffix=">">
<text value="http://dx.doi.org/"/>
<text variable="DOI"/>
</group>
</if>
<else>
<if variable="URL">
<text value="Disponible sur : " prefix=" "/>
<group prefix="<" suffix=">">
<text variable="URL"/>
</group>
</if>
</else>
</choose>
</macro>
<macro name="accessed date">
<choose>
<if variable="URL">
<group prefix="(" suffix=")" delimiter=" ">
<text value="consulte le"/>
<date variable="accessed" suffix="">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</if>
<else-if variable="DOI">
<group prefix="(" suffix=")" delimiter=" ">
<text value="consulte le"/>
<date variable="accessed" suffix="">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</else-if>
</choose>
</macro>
<macro name="journal title">
<choose>
<if type="article-journal article-magazine article-newspaper chapter webpage paper-conference" match="any">
<group suffix=". ">
<text variable="container-title" font-style="italic" form="short"/>
<choose>
<if variable="URL DOI" match="any">
<text value="en ligne" prefix=" [" suffix="]" text-case="capitalize-first"/>
</if>
</choose>
</group>
</if>
<else>
<text variable="container-title" font-style="italic" suffix=". " form="short"/>
</else>
</choose>
</macro>
<macro name="title">
<group delimiter=" ">
<choose>
<if type="article-journal article-magazine article-newspaper chapter webpage paper-conference" match="none">
<text variable="title" font-style="italic" suffix="."/>
<choose>
<if variable="URL DOI" match="any">
<text value="en ligne" prefix=" [" suffix="]" text-case="capitalize-first"/>
</if>
</choose>
</if>
<else>
<text variable="title" prefix="« " suffix=" »."/>
</else>
</choose>
</group>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="collection">
<choose>
<if variable="collection-number">
<text variable="collection-title" prefix="("/>
<text variable="collection-number" prefix=", " suffix=")"/>
</if>
<else>
<text variable="collection-title" prefix="(" suffix="). "/>
</else>
</choose>
</macro>
<macro name="locators">
<text variable="volume" prefix=" Vol. " suffix=","/>
<text variable="issue" prefix=" n°" suffix=","/>
<text variable="page" prefix=" p. " suffix="."/>
</macro>
<citation>
<option name="collapse" value="citation-number"/>
<layout delimiter=", " >
<text variable="citation-number" vertical-align="sup"/>
</layout>
</citation>
<bibliography>
<option name="entry-spacing" value="1"/>
<option name="line-spacing" value="1"/>
<option name="et-al-min" value="4"/>
<option name="et-al-use-first" value="1"/>
<option name="second-field-align" value="true"/>
<sort>
<key macro="author"/>
</sort>
<layout>
<text variable="citation-number" prefix="[" suffix="]"/>
<text macro="author"/>
<text macro="title" suffix=". "/>
<choose>
<if type="thesis">
<text variable="genre" suffix=". "/>
<text macro="publisher" prefix=""/>
<text variable="number-of-pages" suffix=" p."/>
</if>
<else-if type="book">
<text macro="edition"/>
<text macro="publisher" prefix=""/>
<text variable="number-of-pages" suffix=" p."/>
<text macro="collection"/>
</else-if>
<else-if type="patent">
<text variable="number" suffix=". "/>
<date variable="issued">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year" suffix="."/>
</date>
</else-if>
<else-if type="chapter webpage" match="any">
<group prefix=" ">
<text value="Dans" suffix=" : " text-case="capitalize-first"/>
<text macro="editor"/>
<text macro="journal title"/>
<text variable="event" suffix=". " font-style="italic"/>
</group>
<text macro="publisher" prefix=""/>
<text variable="page" prefix=" p. " suffix="."/>
</else-if>
<else>
<text macro="journal title"/>
<group suffix=".">
<date variable="issued" suffix=".">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" " text-case="capitalize-first"/>
<date-part name="year" suffix="."/>
</date>
</group>
<group suffix=". ">
<text macro="locators"/>
</group>
</else>
</choose>
<text macro="access"/>
<text macro="accessed date" prefix=" "/>
<choose>
<if type="book chapter report paper-conference" match="any">
<text variable="ISBN" prefix="ISBN : " suffix="."/>
</if>
</choose>
</layout>
</bibliography>
</style>
I try to modify some style for zotero and I still have a problem for citations.
I want them in "exponent". It works for the figures but not for the commas when I have several references!
I don't know where is the problem... Could you help me ??
I copy you my code..
Thanks.
------------------------------------------------------------------------------------------------------------
<macro name="author">
<names variable="author" suffix=". ">
<name sort-separator=" " initialize-with=". " name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always" text-case="capitalize-first" font-variant="small-caps"/>
<label form="short" prefix=" (" suffix=".)" text-case="lowercase"/>
<substitute>
<names variable="editor"/>
</substitute>
</names>
</macro>
<macro name="editor">
<names variable="editor" suffix=". ">
<name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always" text-case="capitalize-first"/>
<label form="short" prefix=" (" suffix=".)" text-case="lowercase"/>
</names>
</macro>
<macro name="publisher">
<choose>
<if variable="publisher-place">
<text variable="publisher-place" suffix=" : "/>
</if>
</choose>
<choose>
<if variable="publisher">
<text variable="publisher" suffix=", "/>
</if>
</choose>
<choose>
<if variable="issued">
<date variable="issued" suffix=". ">
<date-part name="year"/>
</date>
</if>
</choose>
</macro>
<macro name="access">
<choose>
<if variable="DOI">
<text value="Disponible sur : " prefix=" "/>
<group prefix="<" suffix=">">
<text value="http://dx.doi.org/"/>
<text variable="DOI"/>
</group>
</if>
<else>
<if variable="URL">
<text value="Disponible sur : " prefix=" "/>
<group prefix="<" suffix=">">
<text variable="URL"/>
</group>
</if>
</else>
</choose>
</macro>
<macro name="accessed date">
<choose>
<if variable="URL">
<group prefix="(" suffix=")" delimiter=" ">
<text value="consulte le"/>
<date variable="accessed" suffix="">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</if>
<else-if variable="DOI">
<group prefix="(" suffix=")" delimiter=" ">
<text value="consulte le"/>
<date variable="accessed" suffix="">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</else-if>
</choose>
</macro>
<macro name="journal title">
<choose>
<if type="article-journal article-magazine article-newspaper chapter webpage paper-conference" match="any">
<group suffix=". ">
<text variable="container-title" font-style="italic" form="short"/>
<choose>
<if variable="URL DOI" match="any">
<text value="en ligne" prefix=" [" suffix="]" text-case="capitalize-first"/>
</if>
</choose>
</group>
</if>
<else>
<text variable="container-title" font-style="italic" suffix=". " form="short"/>
</else>
</choose>
</macro>
<macro name="title">
<group delimiter=" ">
<choose>
<if type="article-journal article-magazine article-newspaper chapter webpage paper-conference" match="none">
<text variable="title" font-style="italic" suffix="."/>
<choose>
<if variable="URL DOI" match="any">
<text value="en ligne" prefix=" [" suffix="]" text-case="capitalize-first"/>
</if>
</choose>
</if>
<else>
<text variable="title" prefix="« " suffix=" »."/>
</else>
</choose>
</group>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="collection">
<choose>
<if variable="collection-number">
<text variable="collection-title" prefix="("/>
<text variable="collection-number" prefix=", " suffix=")"/>
</if>
<else>
<text variable="collection-title" prefix="(" suffix="). "/>
</else>
</choose>
</macro>
<macro name="locators">
<text variable="volume" prefix=" Vol. " suffix=","/>
<text variable="issue" prefix=" n°" suffix=","/>
<text variable="page" prefix=" p. " suffix="."/>
</macro>
<citation>
<option name="collapse" value="citation-number"/>
<layout delimiter=", " >
<text variable="citation-number" vertical-align="sup"/>
</layout>
</citation>
<bibliography>
<option name="entry-spacing" value="1"/>
<option name="line-spacing" value="1"/>
<option name="et-al-min" value="4"/>
<option name="et-al-use-first" value="1"/>
<option name="second-field-align" value="true"/>
<sort>
<key macro="author"/>
</sort>
<layout>
<text variable="citation-number" prefix="[" suffix="]"/>
<text macro="author"/>
<text macro="title" suffix=". "/>
<choose>
<if type="thesis">
<text variable="genre" suffix=". "/>
<text macro="publisher" prefix=""/>
<text variable="number-of-pages" suffix=" p."/>
</if>
<else-if type="book">
<text macro="edition"/>
<text macro="publisher" prefix=""/>
<text variable="number-of-pages" suffix=" p."/>
<text macro="collection"/>
</else-if>
<else-if type="patent">
<text variable="number" suffix=". "/>
<date variable="issued">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year" suffix="."/>
</date>
</else-if>
<else-if type="chapter webpage" match="any">
<group prefix=" ">
<text value="Dans" suffix=" : " text-case="capitalize-first"/>
<text macro="editor"/>
<text macro="journal title"/>
<text variable="event" suffix=". " font-style="italic"/>
</group>
<text macro="publisher" prefix=""/>
<text variable="page" prefix=" p. " suffix="."/>
</else-if>
<else>
<text macro="journal title"/>
<group suffix=".">
<date variable="issued" suffix=".">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" " text-case="capitalize-first"/>
<date-part name="year" suffix="."/>
</date>
</group>
<group suffix=". ">
<text macro="locators"/>
</group>
</else>
</choose>
<text macro="access"/>
<text macro="accessed date" prefix=" "/>
<choose>
<if type="book chapter report paper-conference" match="any">
<text variable="ISBN" prefix="ISBN : " suffix="."/>
</if>
</choose>
</layout>
</bibliography>
</style>
I was just necessary to put vertical-align with layout delimiter and not text variable..
Sorry for the question ! ;)