Skip to content

Create cleaner-environmental-system.csl - #8253

Open
LouisFreboeuf wants to merge 5 commits into
citation-style-language:masterfrom
LouisFreboeuf:master
Open

Create cleaner-environmental-system.csl#8253
LouisFreboeuf wants to merge 5 commits into
citation-style-language:masterfrom
LouisFreboeuf:master

Conversation

@LouisFreboeuf

@LouisFreboeuf LouisFreboeuf commented Jul 29, 2026

Copy link
Copy Markdown

Description

This pull request adds a new CSL style for the Cleaner Environmental Systems journal (Elsevier).

The style implements the journal's numeric citation format, with references numbered in order of first appearance. It includes formatting for the principal reference types accepted by the journal, including journal articles, books, book chapters, standards, reports, theses, datasets, software, webpages, and preprints. Journal titles are rendered using their abbreviated forms when available, DOIs are formatted as https://doi.org/..., and URLs include access dates where appropriate.

The style has been tested in Zotero and matches the journal's reference guidelines as closely as possible. A small number of <text value="..."> elements are intentionally retained where CSL does not provide an equivalent built-in term or label.

Checklist

  • Check that you've added a link to the style you used as a template in the <info> block at the beginning of the file with rel="template".
  • Check that you've added a link to the style guidelines with rel="documentation".
  • Check that you've added yourself as the <author> of the style or <contributor> for a style update.
  • Check that you've used the correct terms or labels instead of hardcoding into affixes.
  • Check that you've not used <text value="..."> if not absolutely necessary.
  • Check that you've not changed line 1 of the style.

This XML file defines a citation style for the Cleaner Environmental Systems journal, including formatting for various types of references.
This XML file defines the citation style for the Cleaner Environmental Systems journal, including macros for authors, editors, publication year, and various types of references.
@POBrien333 POBrien333 changed the title Add Cleaner Environmental Systems citation style and update templates Create cleaner-environmental-system.csl Aug 1, 2026
Comment thread cleaner-environmental-system.csl Outdated
<text macro="year"/>
<choose>
<if variable="DOI">
<text value=". " suffix=""/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be set on the macro you're calling directly

Comment thread cleaner-environmental-system.csl Outdated
<text macro="publisher" suffix=", "/>
<text macro="year" suffix=", "/>
<group delimiter=" ">
<text value="pp" suffix=" "/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a label for pages. Please replace

Comment thread cleaner-environmental-system.csl Outdated
<group>
<text macro="author" suffix=", "/>
<text variable="title" suffix=" "/>
<text value="[software]" suffix=", "/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can set this on the title variable above as a suffix instead.

Comment thread cleaner-environmental-system.csl Outdated
</else-if>
<else-if type="report">
<group>
<text macro="author" suffix=", "/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all these suffix commas would be better set on the group level via "delimiter". Please do this for your whole style.

Comment thread cleaner-environmental-system.csl Outdated
<group>
<text macro="author" suffix=", "/>
<text variable="title" suffix=" "/>
<text value="[preprint]" suffix=", "/>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The term preprint exists and should be used instead.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear reviewer,

I, and with the help of mistral.ai, have replied to your comments with the commit: 00e0963

Hope that this now made the style valid !

Kind regards,

Louis Freboeuf

@POBrien333 POBrien333 added the waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor label Aug 1, 2026
- Replace hardcoded '. ' with prefix on doi macro
- Replace [software] with <text term="software">
- Replace [dataset] with <text term="dataset">
- Replace [preprint] with <text term="preprint">
- Replace 'pp' with <text term="page" form="short">
- Use group-level delimiter=", " instead of individual suffix=", " on elements
- Fix indentation in standard type section

Co-authored-by: LouisFreboeuf <LouisFreboeuf@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants