Repository navigation
Closed
Description
Hi! Thank for CITATION.cff. I'm attempting to get GitHub to display this citation properly in BibTeX and APA format:
preferred-citation:
type: conference-paper
authors:
- family-names: "Gamblin"
given-names: "Todd"
- family-names: "LeGendre"
given-names: "Matthew"
- family-names: "Collette"
given-names: "Michael R."
- family-names: "Lee"
given-names: "Gregory L."
- family-names: "Moody"
given-names: "Adam"
- family-names: "de Supinski"
given-names: "Bronis R."
- family-names: "Futral"
given-names: "Scott"
title: "The Spack Package Manager: Bringing Order to HPC Software Chaos"
conference:
name: "Supercomputing 2015 (SC’15)"
date-start: 2015-11-15
date-end: 2015-11-20
city: "Austin"
region: "Texas"
country: "USA"I would expect that to come out something like this (abbreviated initials would be fine):
Todd Gamblin, Matthew P. LeGendre, Michael R. Collette, Gregory L. Lee, Adam Moody, Bronis R. de Supinski, and W. Scott Futral. The Spack Package Manager: Bringing Order to HPC Software Chaos. In Supercomputing 2015 (SC’15), Austin, Texas, November 15-20 2015.
and, in BibTeX:
@inproceedings{SomeKindOfKey,
address = {Austin, Texas},
author = {Todd Gamblin and Matthew P. LeGendre and Michael R. Collette and Gregory L. Lee and Adam Moody and Bronis R. de Supinski and W. Scott Futral},
booktitle = {Supercomputing 2015 (SC'15)},
month = {November 15-20},
title = {{The Spack Package Manager: Bringing order to HPC software chaos}},
year = {2015}}
But it seems like the only parts I get are:
Gamblin, T., LeGendre, M., Collette, M. R., Lee, G. L., Moody, A., de Supinski, B. R., & Futral, S. The Spack Package Manager: Bringing Order to HPC Software Chaos
and:
@inproceedings{Gamblin_The_Spack_Package,
author = {Gamblin, Todd and LeGendre, Matthew and Collette, Michael R. and Lee, Gregory L. and Moody, Adam and de Supinski, Bronis R. and Futral, Scott},
title = {{The Spack Package Manager: Bringing Order to HPC Software Chaos}}
}
Am I missing something or is this just not supported yet?
Reacted by David Shriver
Activity
hainesr commentedon Aug 29, 2021
Hi @tgamblin, I think this is similar to #75?
The short answer is "we're working on it" 😄 The longer answer is that I think being able to cover all the different reference types that can be specified by a
preferred-citationis going to need something like #67 to folded in.tgamblin commentedon Aug 29, 2021
Oh I didn’t see #75 — yep — same issue! Feel free to close this as a duplicate.
It’ll definitely be nice to have support for inproceedings (especially for us CS people).
hainesr commentedon Aug 29, 2021
I'll leave this issue open so I can track against the different publication types as I try to tick them off 😄
monperrus commentedon Sep 17, 2021
Hi! In Github, the "Cite this repository" widget doesn't show the year if there is only the year metadat. Has this fix landed on Github's side already?
Thanks.
hainesr commentedon Sep 18, 2021
This has been fixed in ruby-cff but I'm not sure when it'll percolate through to the GitHub UI. There are some other updates coming so it might happen when they are finished - hopefully soon.
hainesr commentedon Sep 26, 2021
ruby-cff now supports
@inproceedingsand has improved support for conference papers in APA format. Please raise any other issues if there are any other adjustments/cases needed. Thanks!arfon commentedon Oct 6, 2021
...and this is now live on GitHub. Any issues, let me know!
tgamblin commentedon Oct 6, 2021
Does it appear on mobile? (Should it?) I looked at https://github.con/tgamblin/spack, where I’ve been experimenting with this, and it doesn’t show up there. I used to be able to ask for the desktop site but that doesn’t seem to be an option in the GitHub UI anymore. I assume that means they should have the same UI elements, right?
I’ll check this out on desktop later today.
arfon commentedon Oct 6, 2021
Not sure sorry. This looks to be working for me (on the desktop view):
tgamblin commentedon Oct 6, 2021
Yep! I checked. It's definitely improved in the desktop view. Nice!
It looks like it is still not respecting the
date-startanddate-endfields in theconference:part of the CFF, and it doesn't seem to translatenoteson the reference. I'm looking at the markdown and json schema descriptions to try to figure out what to write. Neither the APA format nor the BibTeX seem to get these fields.I would expect this CFF yaml:
But GitHub only shows partial information:
hainesr commentedon Oct 6, 2021
Yes, I haven't added
noteto any BibTeX type yet - I'll add an issue to do that. Same with parsing dates out ofstart-andend-- we just use plainmonthandyearfrom the CFF at the moment, but I will add that too.It doesn't look like adding a day range into the
monthfield is a standard use for it [1], but is that something that people would generally expect?[1] https://www.bibtex.com/f/month-field/
tgamblin commentedon Oct 6, 2021
Ok I tried with
monthandyear, and that nearly gives output that I could paste into a.bibfile. The only nit is this:The month still comes out as a number (CFF says it has to be one). If I run that through BibTeX, I get an integer month in the output, like this:
Here is the source: https://github.com/tgamblin/bibtest.
month = {nov}gets menovin the output.If I specify:
without the braces, then I get this:
Braces in BibTeX usually mean "write this exactly like I wrote it", so that makes sense to me. However, putting
11for the month gets me11in the output again.Personally, I think the safest thing to do is to just put the full month (i.e., "November") in braces. I think Zotero does this.
I did some experiments with this, as well. There is supposed to a field
eventdatein BibTeX that allows you to specify the date range as2015-11-15/2015-11-20, but it appears that is broken and outputs nothing. The only way I've seen anyone get proper conference date ranges into their BibTeX is the way I wrote it above, but I would be happy to be proven wrong. I have a feeling that BibTeX is kind of a mess in this regard.Given that I think there is no standard for this, I think putting the date range inside the braces with the month (i.e., "November 15-20") will be nicer than what most sites do. ACM, for example, omits the month entirely in their BibTeX citations.
hainesr commentedon Oct 7, 2021
eventdatelooks like it's BibLaTeX, not BibTeX [1], so I'm going to leave it for now.I'll try outputting a month and day range if there is one, and just the month if there isn't and see how that comes out for a variety of examples.
[1] http://tug.ctan.org/info/biblatex-cheatsheet/biblatex-cheatsheet.pdf
tgamblin commentedon Oct 7, 2021
Thanks for all the work on this!
adamjstewart commentedon Dec 8, 2022
Any updates on the "month" bug mentioned above? I would expect setting:
to add:
month = nov,to the bibtex output instead of:
month = {11},which doesn't parse properly. I can open a new issue for this if that's easier to track.
hainesr commentedon Dec 11, 2022
Yes, I need to fix this. Apologies for missing it so far.
I have created #119 to track this, rather than reopen this one.
Update CITATION.cff
`CITATION.cff`: use `collection-title` field to help `ruby-cff`
`CITATION.cff`: use `collection-title` field to help `ruby-cff`
`CITATION.cff`: use `collection-title` field to help `ruby-cff` (#52319)
`CITATION.cff`: use `collection-title` field to help `ruby-cff` (spac…