Skip to content

Add Vancouver with subscript parentheses citation style #7514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MHirmas
Copy link

@MHirmas MHirmas commented Apr 10, 2025

This CSL style presents Vancouver numeric references as subscript numbers enclosed in parentheses, e.g. ₍₁₎.

It was developed to meet formatting preferences requested by health researchers in Chile.

Validated locally using CSL validator.

Author: Macarena Hirmas

Copy link

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.

Copy link

😟 There are some issues with your submission.

7 tests failed

vancouver-subscript-parentheses: must validate against the CSL 1.0.1 schema
Please check your style at http://validator.citationstyles.org/

expected `[[1, "1:0: ERROR: Element style failed to validate attributes"], [1, "1:0: ERROR: Expecting an elemen...ment info failed to validate content"], [1, "1:0: ERROR: Element style failed to validate content"]].empty?` to be truthy, got false

vancouver-subscript-parentheses: must have a "self" link

expected `#<CSL::Style xmlns="http://purl.org/net/xbiblio/csl" version="1.0" children=[2]>.has_self_link?` to be truthy, got nil

vancouver-subscript-parentheses: must define a citation-format (<category citation-format="..."/>)

expected: not nil
     got: nil

vancouver-subscript-parentheses: must have a "class" attribute that matches the "citation-format" attribute

expected: "in-text"
     got: nil

(compared using ==)

vancouver-subscript-parentheses: must have a style ID

expected `#<CSL::Info children=[1]>.has_id?` to be truthy, got false

vancouver-subscript-parentheses: style ID must be of the form "http://www.zotero.org/styles/" + style file name (without ".csl" extension, e.g. "http://www.zotero.org/styles/apa")

expected: "http://www.zotero.org/styles/vancouver-subscript-parentheses"
     got: nil

(compared using ==)

vancouver-subscript-parentheses: must have a <rights> element

expected `#<CSL::Info children=[1]>.has_rights?` to be truthy, got false

Please check the test report for details.

@bwiernik
Copy link
Member

Can you share what university and department this style is for and a link to the style requirements? This is a fairly unusual format for Vancouver-like styles (very few styles use subscript rather than superscript citations), so we would want to make it a style specific for the department, rather than a generic name.

@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 11, 2025
@bwiernik
Copy link
Member

Don't worry about the failed tests, I can help fix them once we have information about the university.

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