modifying CSL- how to I remove "p." + add single quotation marks to journal title?
Hi,
I am modifying the American Psychological Association style for a different journal style. Many features were easy to fix, but I found a few areas which I couldn't fix. Please help me.
1. I keep getting this: (White 1999 p.22-23), but I want this:(White 1999:22-23). How do I get this? I looked at this forum and thus deleted <label variable="locator" form="short"/> but it did not help at all.
2. I want to put single quotation marks around journal title but I don't seem to get it.
I attach my csl text here just in case you want to take a look. Thanks for your help.
<citation et-al-min="6" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name">
<sort>
<key macro="author"/>
<key macro="issued-sort"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="issued-year"/>
<text macro="citation-locator"/>
</group>
</layout>
</citation>
<bibliography hanging-indent="true" et-al-min="8" et-al-use-first="7" entry-spacing="0" line-spacing="2">
<sort>
<key macro="author"/>
<key macro="issued-sort" sort="ascending"/>
</sort>
<layout>
<group suffix=".">
<group delimiter=". ">
<text macro="author"/>
<text macro="issued"/>
</group>
<group delimiter=", ">
<text macro="title" prefix=" '" suffix="'"/>
<group>
<text macro="container-contributors"/>
<text macro="secondary-contributors"/>
<group delimiter=", ">
<text macro="container"/>
<text variable="collection-title"/>
</group>
</group>
</group>
<text macro="locators"/>
<group delimiter=", " prefix=". ">
<text macro="event"/>
<text macro="publisher"/>
</group>
</group>
<text macro="access" prefix=" "/>
</layout>
</bibliography>
+ there is a section for locators and I wonder something is wrong here (about removing pp. or p.):
<macro name="locators">
<choose>
<if type="article-journal article-magazine" match="any">
<group prefix=", " delimiter=": ">
<group>
<text variable="volume"/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
<text variable="page"/>
</group>
</if>
<else-if type="article-newspaper">
<group delimiter=" " prefix=", ">
<label variable="page" form="short"/>
<text variable="page"/>
</group>
.....
I am modifying the American Psychological Association style for a different journal style. Many features were easy to fix, but I found a few areas which I couldn't fix. Please help me.
1. I keep getting this: (White 1999 p.22-23), but I want this:(White 1999:22-23). How do I get this? I looked at this forum and thus deleted <label variable="locator" form="short"/> but it did not help at all.
2. I want to put single quotation marks around journal title but I don't seem to get it.
I attach my csl text here just in case you want to take a look. Thanks for your help.
<citation et-al-min="6" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name">
<sort>
<key macro="author"/>
<key macro="issued-sort"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="issued-year"/>
<text macro="citation-locator"/>
</group>
</layout>
</citation>
<bibliography hanging-indent="true" et-al-min="8" et-al-use-first="7" entry-spacing="0" line-spacing="2">
<sort>
<key macro="author"/>
<key macro="issued-sort" sort="ascending"/>
</sort>
<layout>
<group suffix=".">
<group delimiter=". ">
<text macro="author"/>
<text macro="issued"/>
</group>
<group delimiter=", ">
<text macro="title" prefix=" '" suffix="'"/>
<group>
<text macro="container-contributors"/>
<text macro="secondary-contributors"/>
<group delimiter=", ">
<text macro="container"/>
<text variable="collection-title"/>
</group>
</group>
</group>
<text macro="locators"/>
<group delimiter=", " prefix=". ">
<text macro="event"/>
<text macro="publisher"/>
</group>
</group>
<text macro="access" prefix=" "/>
</layout>
</bibliography>
+ there is a section for locators and I wonder something is wrong here (about removing pp. or p.):
<macro name="locators">
<choose>
<if type="article-journal article-magazine" match="any">
<group prefix=", " delimiter=": ">
<group>
<text variable="volume"/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
<text variable="page"/>
</group>
</if>
<else-if type="article-newspaper">
<group delimiter=" " prefix=", ">
<label variable="page" form="short"/>
<text variable="page"/>
</group>
.....
- we usually need to see the whole style, not just the citation and bibliography section. Also, this forum is a bad place to post xml - use gist.github.com or pastebin.com and post links here - neither of those requires registration.
- The p./pp. is set in the macro citation-locator with <label variable="locator" form="short"/> if deleting that has no effect I'd suspect you broke something else in the style prior to deleting in (hence the need to see the whole thing).
- the easiest way to get single quotes is to set default-locale="en-GB" in cs:style, i.e. the first line of the style. I believe the only other major change to en-US is that it will put punctuation on the outside, instead of the inside of quotation marks. If that's not acceptable for whatever reason, you need to change the terms for your locale - that's a bit more involved, look at this
http://citationstyles.org/downloads/specification.html#locale
as well as the full locale files here:
https://github.com/citation-style-language/locales
I posted the entire thing here.
I will greatly appreciate your help.
+ I changed the locale but it did not help.
I get no quotation marks for journal titles...
e.g. I want 'Blahblah in Perspective', journal title...
Thanks.
https://gist.github.com/3101714
Also, are you using Zotero? Where/how are you testing the style?
Yes I am using Zotero. And I need the style for Ms word.
chrome://zotero/content/tools/csledit.xul
or the online visual editor (still under development)
http://steveridout.com/csl/visualEditor/
to test styles.
Also, please remember to submit the style for inclusion in the repository once you feel it's sufficiently reliable:
https://github.com/citation-style-language/styles/wiki/Submitting-Styles