Editing and adding a csl style

Hi guys,

I'm trying to edit the APA sigle spaced style just to eliminate the indent and has an entry spacing of 1 intead of 0 in the bibliiography.
I'm just editing that line

to


I do it by open the csl in my Notepad, I edit it, then I sabe it with the same name ensuring that is a csl file (.csl), and, when I double click in the file to add it again in my style it says "It is not CSL 1.0.2. file".

Can someone help me, please?

Actually, what I need to do is to change the order of the bibliiogrphy so when I list them, the are chronological listed by only the first author, but the thing is that I'm not being able to add it as style with just changing the indent...

Thnks in advanced.
  • edited May 9, 2022
    To show your code, upload it to pastebin.com and share the link.
    Small snippets can be shared like this: <code>asdf</code> (but share your entire code, then we can help better)

    Make sure you also edit the ID, self link etc. as explained here, otherwise your style will be overwritten/not show.
    https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step
  • On the other hand, if I change the name of the csl file and try to add it, in my style, it says "An un expected error occur while installing xxx.csl"

    To do it, I'm just opening my the Style editor of Zotero, changing the title by this way (I'm avoiding in here the <> so you can see what I'm writing):

    info
    title American Psychological Association 7th edition RRR /title
    title-short APA RRR /title-short
    id http://www.zotero.org/styles/apa-RRR /id

    and saving it in the Zotero\style folder of Windows.

    Can someone help me, please?
  • This will tell you what's wrong: https://validator.citationstyles.org/

    "0" is not a valid value. It has to be 1, 2, 3...
    See https://docs.citationstyles.org/en/stable/specification.html#whitespace
  • Everything is improving.

    How can I do that the bibliography is sorted by the first author and year?
  • Pastebin is not loading for me.

    In the section that starts with "<bibliography..." you'll find a "<sort..." section.
    Move those macros/variables around in order to get the desired order you want.
  • Are you able to see this one (It took me time but then, it opened):
    https://pastebin.com/KAVvCA4s

    As I said before, I'm trying to sort the bibliography by only the first author by year and not as APA that they sort it by all author
  • <key macro="author-bib" names-min="1"/> in the sort section.

    the names-min attribute will make this happen. Generally, the specs have everything explained here: https://docs.citationstyles.org/en/stable/specification.html#sorting
  • I had already tryid that one but it didn't work. It is still doing this:

    Corbella, I. (2008). ESTEC course. Interferometric Aperture Synthesis Radiometry for Earth observation.

    Corbella, I., Camps, A., Zapata, M., Marcos, F., Martínez, F., Torres, F., Vall-llossera, M., Duffo, N., & Bará, J. (2003). End-to-end simulator of two-dimensional interferometric radiometry: SIMULATOR OF 2-D INTERFEROMETRIC RADIOMETRY. Radio Science, 38(3), n/a-n/a. https://doi.org/10.1029/2002RS002665

    Corbella, I., Torres, F., Camps, A., Bara, J., Duffo, N., & Vall-Ilossera, M. (2000). L-band aperture synthesis radiometry: Hardware requirements and system performance. IGARSS 2000. IEEE 2000 International Geoscience and Remote Sensing Symposium. Taking the Pulse of the Planet: The Role of Remote Sensing in Managing the Environment. Proceedings (Cat. No.00CH37120), 7, 2975–2977. https://doi.org/10.1109/IGARSS.2000.860307

    Rubino, R., Duffo, N., González-Gambau, V., Corbella, I., Torres, F., Durán, I., & Martín-Neira, M. (2019b). Refining the Methodology to Correct the Faraday Rotation Angle from SMOS Measurements. IGARSS 2019 - 2019 IEEE International Geoscience and Remote Sensing Symposium.

    and I want it like this:

    Corbella, I., Torres, F., Camps, A., Bara, J., Duffo, N., & Vall-Ilossera, M. (2000). L-band aperture synthesis radiometry: Hardware requirements and system performance. IGARSS 2000. IEEE 2000 International Geoscience and Remote Sensing Symposium. Taking the Pulse of the Planet: The Role of Remote Sensing in Managing the Environment. Proceedings (Cat. No.00CH37120), 7, 2975–2977. https://doi.org/10.1109/IGARSS.2000.860307

    Corbella, I., Camps, A., Zapata, M., Marcos, F., Martínez, F., Torres, F., Vall-llossera, M., Duffo, N., & Bará, J. (2003). End-to-end simulator of two-dimensional interferometric radiometry: SIMULATOR OF 2-D INTERFEROMETRIC RADIOMETRY. Radio Science, 38(3), n/a-n/a. https://doi.org/10.1029/2002RS002665

    Corbella, I. (2008). ESTEC course. Interferometric Aperture Synthesis Radiometry for Earth observation.

    Rubino, R., Duffo, N., González-Gambau, V., Corbella, I., Torres, F., Durán, I., & Martín-Neira, M. (2019b). Refining the Methodology to Correct the Faraday Rotation Angle from SMOS Measurements. IGARSS 2019 - 2019 IEEE International Geoscience and Remote Sensing Symposium.

    I tried changing the date-group-date putting it first but then, it sorts it by year.

    https://pastebin.com/hm6sKZ48
  • Haven't tested but I believe it should be
    <key macro="author-bib" names-min="2" names-use-first="1"/>

    names-min=2 --> For every piece with more than one author
    names-use-first="1" --> Just sort by the first author
  • It is still not working :(
    It keeps appearing the order byall autors instead of by the first author.
    Maybe I'm not explaning myself well. I need the order to be cronologically by the first autor instead of by alphabetically with all authors. :(
  • How are you testing exactly?
  • I create the .csl as https://pastebin.com/PALc6smF and add it in the Zotero library.
  • Also, make sure the first author is actually entered identically. CSL/Zotero treat "Corbella, I." and "Corbella, Ignasio" as separate authors.
  • I'd really recommend testing in the style editor before adding the file to Zotero. You'll save a lot of time.
  • I'm aware of the name to be exactly the same.
    On the other hand, I also tried it in the style editor, and it does not work. :(

    Do you know what else it can be? :(
  • Sorry, it's the et-al-use-last that's still in the style (@bwiernik -- is that actually needed for APA 7?). Remove that and it'll work.
  • Thank you tank you thank you, @adamsmith . Now it is perfect.
    Good bless you A LOT.
  • Yes, it is correct APA 7th edition style to include the last author in a bibliography reference to 21+ authors with et-al-use-last
Sign In or Register to comment.