chapitre

Quand j'ajoute une citation, devant la case d'introduction de la page où se trouve la citation, il est possible par liste déroulante de choisir un autre type de repérage (chapitre, folio, section, volume, etc.).
Seulement, ces critères ne sont pas retenus dans la citation et retombre toujours sur p. XXX .
Que dois-je faire pour valider ces options ?
Merci.
  • Which citation style are you using?
    That just might have an error and would be quick to fix.
  • Ok, cela dépend donc du style de citation. Ouf! cela va être difficile à corriger car je ne maitrise pas la modification du style!
  • If you would tell me which style then I could actually help you.
  • Comment faire ? J'ai oublié le nom du style (français) que j'ai un peu modifié pour répondre à mes besoins. Je peux vous envoyer mon fichier .csl si vous prenez contact directement avec moi c.maillebouis@laposte.net ...
  • You can put it on pastebin.com and share the link here.
  • Add the following macro to your style:
    <macro name="cite-locator">
    <group delimiter=" ">
    <label variable="locator" form="short"/>
    <text variable="locator"/>
    </group>
    </macro>


    Replace your "yearpage" macro with this:
    <macro name="yearpage">
    <choose>
    <if type="bill book graphic legal_case motion_picture paper-conference manuscript report song thesis" match="any">
    <group delimiter=", " font-style="normal">
    <date variable="issued">
    <date-part name="year"/>
    </date>
    <group>
    <text term="volume" form="short" suffix="."/>
    <text variable="number-of-volumes" prefix=". " suffix="/"/>
    <text variable="volume"/>
    </group>
    <text macro="cite-locator"/>
    </group>
    </if>
    <else-if type="chapter entry-dictionary entry-encyclopedia" match="any">
    <group delimiter=" " font-style="normal">
    <date variable="issued">
    <date-part name="year" suffix=", "/>
    </date>
    <group>
    <text term="volume" form="short" suffix="."/>
    <text variable="number-of-volumes" prefix=". " suffix="/"/>
    <text variable="volume" suffix=","/>
    </group>
    <choose>
    <if variable="locator" match="any">
    <text macro="cite-locator"/>
    </if>
    <else-if variable="locator" match="none">
    <label variable="page" form="short"/>
    <text variable="page"/>
    </else-if>
    </choose>
    </group>
    </else-if>
    <else-if type="article-journal" match="any">
    <group delimiter=" " font-style="normal">
    <choose>
    <if variable="locator" match="any">
    <text macro="cite-locator"/>
    </if>
    <else-if variable="locator" match="none">
    <label variable="page" form="short"/>
    <text variable="page"/>
    </else-if>
    </choose>
    </group>
    </else-if>
    <else-if type="article-newspaper article-magazine" match="any">
    <group delimiter=" " font-style="normal">
    <date variable="issued" form="numeric">
    <date-part name="day"/>
    <date-part name="month"/>
    <date-part name="year"/>
    </date>
    <group delimiter=" " font-style="normal">
    <choose>
    <if variable="locator" match="any">
    <text macro="cite-locator"/>
    </if>
    <else-if variable="locator" match="none">
    <label variable="page" form="short"/>
    </else-if>
    </choose>
    </group>
    </group>
    </else-if>
    <else-if type="webpage" match="any">
    <group delimiter=" " font-style="normal">
    <text value="consulté le" suffix=" " prefix=" "/>
    <date variable="accessed" form="text">
    <date-part name="day"/>
    <date-part name="month"/>
    <date-part name="year"/>
    </date>
    </group>
    </else-if>
    </choose>
    </macro>


    Replace your "citation" section with the following:
    <citation>
    <layout suffix="." delimiter=" ; ">
    <choose>
    <if position="ibid-with-locator">
    <group delimiter=", ">
    <text term="ibid" text-case="capitalize-first" font-style="italic" suffix="."/>
    <text macro="cite-locator"/>
    </group>
    </if>
    <else-if position="ibid">
    <text term="ibid" text-case="capitalize-first" font-style="italic"/>
    </else-if>
    <else-if position="subsequent">
    <group delimiter=", ">
    <text macro="author"/>
    <choose>
    <if type="bill book graphic legal_case motion_picture report song thesis" match="any">
    <text variable="title" form="short" font-style="italic"/>
    </if>
    <else>
    <text variable="title" text-case="capitalize-first" form="short" quotes="true" font-style="normal"/>
    </else>
    </choose>
    <text term="cited" font-style="italic" suffix="."/>
    <text macro="cite-locator"/>
    </group>
    </else-if>
    <else>
    <group delimiter=", ">
    <text macro="author"/>
    <text macro="title"/>
    <text macro="translator"/>
    <text macro="edition"/>
    <text macro="pub-place"/>
    <text macro="publisher"/>
    <text macro="collection"/>
    <text macro="yearpage"/>
    </group>
    </else>
    </choose>
    </layout>
    </citation>
  • Merci. Aux premiers tests, cela semble fonctionner.
    Cela fait longtemps que j'aimerais une autre modification :
    A la première occurence d'un auteur, le prénom est donné en entier (comme maintenant. Par exemple: "Christian Maillebouis"). Puis aux occurences suivantes, le prénom est donné seulement avec son initiale comme cela : "C. Maillebouis".
    Est-ce compliqué à coder pour vous ?
  • Make a copy of your “author” macro and change form=“short”

    In the citation layout section, add a “choose” test for <if position="first"> and use the current macro. Then in <else> use the new short macro
Sign In or Register to comment.