Skip to content

Update nature.csl (line spacing)#8136

Open
oncebo wants to merge 1 commit intocitation-style-language:masterfrom
oncebo:patch-1
Open

Update nature.csl (line spacing)#8136
oncebo wants to merge 1 commit intocitation-style-language:masterfrom
oncebo:patch-1

Conversation

@oncebo
Copy link
Copy Markdown

@oncebo oncebo commented Apr 6, 2026

Change line spacing to 1 to match the real Nature citation style.

Improve numeric formatting in the bibliography to make it more compatible with Word processors, avoiding unwanted line breaks after the reference number.

CSL Styles Pull Request Template

You're about to create a pull request to the CSL styles repository.
If you haven't done so already, see https://github.com/citation-style-language/styles/blob/master/CONTRIBUTING.md for instructions on how to contribute, and https://github.com/citation-style-language/styles/blob/master/STYLE_REQUIREMENTS.md for the requirements a style must meet before acceptance.
In addition, please fill out the pull request template below.

Description

(Briefly describe the style or changes you're proposing.)

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 (e.g., <text variable="page" prefix="pp. "/>).
  • Check that you've not used <text value="... if not absolutely necessary.
  • Check that you've not changed line 1 of the style.

Change line spacing to 1 to match the real Nature citation style.

Improve numeric formatting in the bibliography to make it more compatible with Word processors, avoiding unwanted line breaks after the reference number.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

Awesome! You just created a pull request to the Citation Styles Language styles repository. One of our human volunteers will try to get in touch soon (usually within a week). In the meantime, I will run some automated checks. You should be notified of the results in a few minutes.

If you haven't done so yet, please make sure your style validates and follows all our other Style Requirements.

To update this pull request, visit the "Files changed" tab above, click on the ellipsis button in the top-right corner of your style, and then select "Edit file" to start editing:

If you have any questions, please leave a comment and we'll get back to you. While we usually respond in English, feel free to write in whatever language you're most comfortable.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

😃 Your submission passed all our automated tests.

Below are some sample citations generated based on your proposed changes:

nature.csl (modified style)
2,4
1,5
3

1. CSL search by example. Citation style editor https://editor.citationstyles.org/searchByExample/ (2012).
2. Fenner, M. et al. A data citation roadmap for scholarly data repositories. Sci. Data 6, (2019).
3. Galindo-Castañeda, T. et al. Locating the microbes along the maize root system under nitrogen limitation: a root phenotypic approach. Ann. Bot. 136, 1143–1162 (2025).
4. Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy. (Oxford University Press, Oxford, 2007). doi:10.1093/acprof:oso/9780199206483.001.0001.
5. Mares, I. Firms and the welfare state: when, why, and how does social policy matter to employers? in Varieties of capitalism: the institutional foundations of comparative advantage (eds Hall, P. A. & Soskice, D.) 184–212 (Oxford University Press, Oxford, 2001). doi:10.1093/0199247757.003.0005.
 <span style="vertical-align: super">2,4</span><br/>
 <span style="vertical-align: super">1,5</span><br/>
 <span style="vertical-align: super">3</span><br/>
 <hr/>
-1.CSL search by example. <i>Citation style editor</i> https://editor.citationstyles.org/searchByExample/ (2012).<br/>
-2.Fenner, M. <i>et al.</i> A data citation roadmap for scholarly data repositories. <i>Sci. Data</i> <b>6</b>, (2019).<br/>
-3.Galindo-Castañeda, T. <i>et al.</i> Locating the microbes along the maize root system under nitrogen limitation: a root phenotypic approach. <i>Ann. Bot.</i> <b>136</b>, 1143–1162 (2025).<br/>
-4.<i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i>. (Oxford University Press, Oxford, 2007). doi:10.1093/acprof:oso/9780199206483.001.0001.<br/>
-5.Mares, I. Firms and the welfare state: when, why, and how does social policy matter to employers? in <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (eds Hall, P. A. &amp; Soskice, D.) 184–212 (Oxford University Press, Oxford, 2001). doi:10.1093/0199247757.003.0005.<br/>
+1. CSL search by example. <i>Citation style editor</i> https://editor.citationstyles.org/searchByExample/ (2012).<br/>
+2. Fenner, M. <i>et al.</i> A data citation roadmap for scholarly data repositories. <i>Sci. Data</i> <b>6</b>, (2019).<br/>
+3. Galindo-Castañeda, T. <i>et al.</i> Locating the microbes along the maize root system under nitrogen limitation: a root phenotypic approach. <i>Ann. Bot.</i> <b>136</b>, 1143–1162 (2025).<br/>
+4. <i>Beyond Varieties of Capitalism: Conflict, Contradictions, and Complementarities in the European Economy</i>. (Oxford University Press, Oxford, 2007). doi:10.1093/acprof:oso/9780199206483.001.0001.<br/>
+5. Mares, I. Firms and the welfare state: when, why, and how does social policy matter to employers? in <i>Varieties of capitalism: the institutional foundations of comparative advantage</i> (eds Hall, P. A. &amp; Soskice, D.) 184–212 (Oxford University Press, Oxford, 2001). doi:10.1093/0199247757.003.0005.<br/>

@POBrien333 POBrien333 changed the title Change line spacing in bibliography from 2 to 1 Update nature.csl (line spacing) Apr 6, 2026
@POBrien333
Copy link
Copy Markdown
Contributor

Thank you for your PR.
Can you explain why you suggest this change?
In the guidelines I see "Contributions should be double-spaced and written in English (spellings as in the Oxford English Dictionary)."

@github-actions github-actions Bot added the waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor label Apr 7, 2026
@oncebo
Copy link
Copy Markdown
Author

oncebo commented Apr 11, 2026

Thank you.
I checked the published Nature papers, and the line spacing used there is not double‑spaced, so I changed it to match the actual format.
The other extra blank in the numeric format is an unknown bug in some text editors, which causes an unintended line break in the bibliography information. Adding an extra blank can help to fix this issue.

@github-actions github-actions Bot removed the waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor label Apr 11, 2026
@POBrien333
Copy link
Copy Markdown
Contributor

I understand. Many publisher request a certain style though and then do the typesetting themselves. So, unless an editor at Nature has requested this I am not sure we'd accept this change.

@github-actions github-actions Bot added the waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor label Apr 12, 2026
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.

2 participants