How do I get rid of the "p." and "pp."

Hey everybody,

down below you'll find the CSL that I use. My problem at the moment is, that I need to get rid of the "p." and "pp." for example: (Merton, 1989: pp. 29-49)... I just want it to be (Merton, 1989: 29-49) or of it is just one page ((Merton, 1989: 29) insted of (Merton, 1989: p. 29) .... can some one tell me which lines in the CSL I'll have to delete or modify to fix that? thanx a lot!!!

</info>
<macro name="editor">
<names variable="editor" delimiter="; ">
<name name-as-sort-order="all" sort-separator=", " delimiter="; "
delimiter-precedes-last="always" form="long"/>
<label form="short" prefix=" (" suffix=".)"/>
</names>
</macro>
<macro name="anon">
<text value="o. A."/>
</macro>
<macro name="author">
<names variable="author" delimiter="; ">
<name name-as-sort-order="all" sort-separator=", " delimiter="; "
delimiter-precedes-last="always" form="long"/>
<label form="short" prefix=" (" suffix=".)"/>
<substitute>
<text macro="editor"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author" delimiter="; ">
<name form="short" delimiter=", " initialize-with=". " delimiter-precedes-last="always"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
<if variable="DOI">
<text variable="DOI" prefix="doi: "/>
</if>
<else-if variable="URL">
<text variable="URL" prefix="URL: "/>
<group prefix=" (" suffix=")">
<date variable="accessed">
<date-part name="month" suffix=" " form="long"/>
<date-part name="year" form="long"/>
</date>
</group>
</else-if>
</choose>
</macro>
<macro name="title">
<choose>
<if type="book">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title" prefix="„" suffix="“"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
<text value="o. J."/>
</else>
</choose>
</macro>
<macro name="locator">
<choose>
<if type="article-journal">
<text variable="volume" suffix=" "/>
<!-- <date variable="issued">
<date-part name="year" prefix="(" suffix=")"/>
</date>-->
<text variable="issue" prefix="(" suffix=")"/>
</if>
</choose>
</macro>
<macro name="published-date">
<choose>
<if type="article-newspaper">
<date variable="issued">
<date-part name="day" form="ordinal" suffix=" "/>
<date-part name="month" form="long"/>
</date>
</if>
</choose>
</macro>
<macro name="pages">
<choose>
<if type="chapter article-journal" match="any">
<label variable="page" form="short" suffix=". "/>
<text variable="page"/>
</if>
</choose>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group>
<number variable="edition" form="numeric" suffix=". "/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="container-prefix">
<choose>
<if type="chapter article-journal" match="any">
<text term="in" text-case="capitalize-first" suffix=":"/>
</if>
</choose>
</macro>
<macro name="isbn">
<text variable="ISBN" prefix="ISBN: "/>
</macro>
<citation>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="et-al-subsequent-min" value="3"/>
<option name="et-al-subsequent-use-first" value="1"/>
<option name="disambiguate-add-year-suffix" value="true"/>
<option name="collapse" value="year"/>
<layout prefix="(" suffix=")" delimiter="; ">
<choose>
<if position="ibid-with-locator">
<label variable="locator" form="short" suffix=". "/>
<text variable="locator"/>
</if>
<else-if position="ibid">
<text term="ibid" suffix="."/>
</else-if>
<else>
<group delimiter=", ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<group>
<label variable="locator" form="short" suffix=". " prefix=": "/>
<text variable="locator"/>
</group>
</else>
</choose>
</layout>
</citation>
<bibliography>
<option name="hanging-indent" value="true"/>
<option name="et-al-min" value="4"/>
<option name="et-al-use-first" value="3"/>
<option name="entry-spacing" value="0"/>
<sort>
<key macro="author"/>
<key variable="title"/>
</sort>
<layout>
<group delimiter=" " suffix=".">

<choose>
<if type="chapter">
<group delimiter="; ">
<text macro="author"/>
</group>
</if>
<else>
<group delimiter="; ">
<text macro="author"/>
<text macro="editor"/>
</group>
</else>
</choose>
<text macro="year-date" prefix="(" suffix="):"/>
<text macro="title" suffix="."/>
<text macro="container-prefix"/>
<choose>
<if type="chapter">
<text macro="editor"/>
</if>
</choose>

<text variable="container-title" font-style="italic" suffix="."/>
<text macro="edition"/>
<text variable="genre"/>
<text macro="publisher"/>

<group delimiter=", ">
<group delimiter=", " prefix="(" suffix=")">
<text variable="collection-title"/>
</group>
<text macro="locator"/>
<text macro="published-date"/>
<text macro="pages"/>
<text macro="access"/>
</group>

</group>
<text macro="isbn" prefix=" — "/>
</layout>
</bibliography>
</style>
  • remove both the lines that start with
    <label variable="locator"
    from the citation sections.
    For the second one you'll probably want to move the term prefix=": " into the next line
    (the one starting with <text variable="locator")
    that way you'll get: Author 1999: 23, otherwise the colon will be missing.
  • hi adamsmith,
    thanks for your advice. unfortunately: when i try to install the changed CSL into firefox i get the notion:

    "Mit dieser XML-Datei sind anscheinend keine Style-Informationen verknüpft. Nachfolgend wird die Baum-Ansicht des Dokuments angezeigt." (my browser is set in german :)

    --> no style information is linked to the XML file!

    do you know what i'll have to change to get that working again?

    cheers!
    JWH
  • first of all - if you just past what you have above, it is missing the header for the style (i.e. everything above /info - including the style name, id, etc.

    Otherwise it might be something that your editor (are you using notepad?) is doing wrong -
    someone else who had this problem got it to work by pasting the style into gist.github.com, saving it as a public gist and downloading it using the "Raw" link (renaming it as my-style-name.csl ) Obviously that shouldn't be necessary and there is probably a way to deal with that using your editor (or installing a better one like the free and oss Notepad++ ), but it seems to work.
  • i definately had the header in the CSL.

    the editor i use is "TextEdid" on a mac.
  • have you tried the suggested workaround? Does it work? If so, are there any settings in TextEdit that you can change around?
  • the workaround did the job. but the csl still puts the "pp." in the bibliography (e.g. at the end of articles from editions). i looked for a line that starts with <label variable="locator" in the bibliography section but did not find one... is it a different one there?
  • yes - find this line and delete it:
    <label variable="page" form="short" suffix=". "/>
  • unfortunately I can't tell what's going on with TextEdit - are there any settings in the "save" dialogue that you could play around with?
  • could be that i'm blind but: there seems to be no such line in the bibliography section
  • it's in one of the macros (pages) above that then gets called in the bibliography.
  • great ... it worked!
    now i only have the slight problem left in the bibliography, that there is no comma after the publisher and before the pages. it does:

    ... Cambridge, MA: MIT Press 34–45. in stead of:

    ... Cambridge, MA: MIT Press, 34–45.
  • probier mal ob
    <text macro="pages" prefix=", "/>
    funktioniert
    (also prefix=", " in die Zeile einfügen).

    Könnte allerdings sein, dass das mit den Leerzeichen nicht funktioniert - dann wird das ganze etwas komplizierter.
  • leider kein erfolg :( er installiert die so modifizierte csl zwar korrekt... das ergebnis in der bibliographie ist aber das gleiche
  • ich muss da genauso rumprobieren wie Du -
    dafuer ist das Test Panel gedacht:
    chrome://zotero/content/tools/csledit.xul
    Du kannst da ja sofort sehen, wie sich Aenderungen auswirken -

    indem Du prefix=", " in eine Zeile einfuegst, wird dem item ein Komma mit Leerzeichen vorangestellt.
    Mit suffix="," erhaelst Du ein Komma danach - probier einfach ein bisschen aus, ob Du weiterkommst.
Sign In or Register to comment.