Create cleaner-environmental-system.csl - #8253
Open
LouisFreboeuf wants to merge 5 commits into
Open
Conversation
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
reviewed
Aug 1, 2026
| <text macro="year"/> | ||
| <choose> | ||
| <if variable="DOI"> | ||
| <text value=". " suffix=""/> |
Contributor
There was a problem hiding this comment.
This can be set on the macro you're calling directly
POBrien333
reviewed
Aug 1, 2026
| <text macro="publisher" suffix=", "/> | ||
| <text macro="year" suffix=", "/> | ||
| <group delimiter=" "> | ||
| <text value="pp" suffix=" "/> |
Contributor
There was a problem hiding this comment.
We have a label for pages. Please replace
POBrien333
reviewed
Aug 1, 2026
| <group> | ||
| <text macro="author" suffix=", "/> | ||
| <text variable="title" suffix=" "/> | ||
| <text value="[software]" suffix=", "/> |
Contributor
There was a problem hiding this comment.
You can set this on the title variable above as a suffix instead.
POBrien333
reviewed
Aug 1, 2026
| </else-if> | ||
| <else-if type="report"> | ||
| <group> | ||
| <text macro="author" suffix=", "/> |
Contributor
There was a problem hiding this comment.
all these suffix commas would be better set on the group level via "delimiter". Please do this for your whole style.
POBrien333
reviewed
Aug 1, 2026
| <group> | ||
| <text macro="author" suffix=", "/> | ||
| <text variable="title" suffix=" "/> | ||
| <text value="[preprint]" suffix=", "/> |
Contributor
There was a problem hiding this comment.
The term preprint exists and should be used instead.
Author
There was a problem hiding this comment.
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
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
<info>block at the beginning of the file withrel="template".rel="documentation".<author>of the style or<contributor>for a style update.<text value="...">if not absolutely necessary.