Cannot add modified style

edited July 26, 2023
Hi,

I am following this post in trying to modify a citation style: https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step

However, when I want to add it to my citation styles in Zotero, the following message pops up:
An unexpected error occurred while installing "/Users/user1/Zotero/styles/apa-single-spaced-modified.csl"

I am just changing the following:

<title>American Psychological Association 7th edition (single-spaced bibliography)</title>
<title-short>APA (single-spaced)</title-short>
<id>http://www.zotero.org/styles/apa-single-spaced</id>;


to

<title>American Psychological Association 7th edition (single-spaced bibliography) modified</title>
<title-short>APA (single-spaced)</title-short>
<id>http://www.zotero.org/styles/apa-single-spaced-modified</id>;


and this:

<name and="symbol" delimiter=", " initialize-with=". "/>

to

<name and="text" delimiter=", " initialize-with=". "/>

Why can't I add the style? Thanks a lot for your help.
  • how/where did you edit? (I assume the semicolons above are not in the style you used; I believe there's a forum bug there)
  • edited July 26, 2023
    On my Zotero desktop app, I opened the Style Editor, made the above mentioned changes, and saved it to the Zotero folder with all the other styles. Then, I went to preferences-->cite and clicked the "+" symbol, selected the previously saved .csl file and the error message shows up.

    edit: I tried the same copy/pasting the code to an .rtf file, making the changes there, and then saving it to the Zotero folder, but the same thing happened.

    Yeah exactly. I tried to remove the semicolons but couldn't. They showed up when I use the code brackets.

  • Yes, use the style editor (don't use RTF, that will definitely not work).
    Could you a) see if the style is already installed if you check? Moving it to the style folder should be sufficient by itself.

    If it isn't, can you try moving it somewhere else (like your Desktop or Documents folder or so) and simply double-clicking the file?)
  • Sweet! Thanks a lot. For some reason, the modified style did not show up in the Zotero preferences, but moving the file from the folder (where I had saved it) to the desktop and then double-clicking it, worked!
Sign In or Register to comment.