Skip to content
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

Question about conditional citation and bibliography formatting #6531

Open
sbihorel opened this issue May 8, 2023 · 2 comments
Open

Question about conditional citation and bibliography formatting #6531

sbihorel opened this issue May 8, 2023 · 2 comments
Labels
waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor

Comments

@sbihorel
Copy link

sbihorel commented May 8, 2023

Hi

Before I invest time into learning more about csl syntax / customization, I would like to know if it is possible with a custom csl file to format in-text citations and bibliography entries differently based upon the item type. Specifically, I'd like to format technical reports differently from articles/book/book chapters.

In the mock example below, the citation to a technical report shows as the report name/number, while the citation to an article shows "author name, year". The structure of the entries in the bibliography also differs.

  • In text citation: " The concentrations of XYZ were measured using a validated assay (XYZ123) based upon the method developed by Smith, 2020."
  • Bibliography:
    Smith J, Doe J. A revolutionary method to measure XYZ in thin air. Journal of awesome findings. 2020, 21(2) 100-125.
    XYZ123 Validation Report : Measurement of XYZ in thin air. BigPharm, Inc. 2022.

If csl provides this type of capabilities, I would greatly appreciate if you could point me towards a relevant csl style example to complement the csl specifications website material that I would need to read.

Thanks

@POBrien333
Copy link
Contributor

Yes, absolutely.
A typical style tests for the various item types or item groups and formats them differently.

I recommend you to just find a closely matching style using the following tool and use that as a base.
https://editor.citationstyles.org/searchByExample/

Note that you can switch through the different item types there and that you need to use the meta data that is provided on the left.
You will likely find a match that is very close and then will only need to make smaller edits.

@adam3smith
Copy link
Member

Well, we don't have many styles with a completely different in-text format for different item types -- here I imagine XYZ123 would just be the short title. It's absolutely possible, but I don't think you'll find much in terms of templates for that.

@github-actions github-actions bot added the waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor label May 11, 2023
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

No branches or pull requests

3 participants