Skip to content

preferred-citation for conference-paper #79

Closed

Description

@tgamblin

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?

Activity

  1. hainesr commented on Aug 29, 2021

    @hainesr
    Member

    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-citation is going to need something like #67 to folded in.

  2. added
    bug
    on Aug 29, 2021
  3. tgamblin commented on Aug 29, 2021

    @tgamblin
    Author

    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).

  4. hainesr commented on Aug 29, 2021

    @hainesr
    Member

    I'll leave this issue open so I can track against the different publication types as I try to tick them off 😄

  5. added
    enhancement
    on Aug 29, 2021
  6. self-assigned this
    on Aug 29, 2021
  7. added this to the 1.0 milestone on Aug 29, 2021
  8. monperrus commented on Sep 17, 2021

    @monperrus

    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.

  9. hainesr commented on Sep 18, 2021

    @hainesr
    Member

    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?

    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.

  10. hainesr commented on Sep 26, 2021

    @hainesr
    Member

    ruby-cff now supports @inproceedings and has improved support for conference papers in APA format. Please raise any other issues if there are any other adjustments/cases needed. Thanks!

  11. arfon commented on Oct 6, 2021

    @arfon
    Collaborator

    ...and this is now live on GitHub. Any issues, let me know!

  12. tgamblin commented on Oct 6, 2021

    @tgamblin
    Author

    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.

  13. arfon commented on Oct 6, 2021

    @arfon
    Collaborator

    I assume that means they should have the same UI elements, right?

    Not sure sorry. This looks to be working for me (on the desktop view):

    Screenshot 2021-10-06 at 14 41 49

  14. tgamblin commented on Oct 6, 2021

    @tgamblin
    Author

    Yep! I checked. It's definitely improved in the desktop view. Nice!

    It looks like it is still not respecting the date-start and date-end fields in the conference: part of the CFF, and it doesn't seem to translate notes on 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:

    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: "W. Scott"
      title: "The Spack Package Manager: Bringing Order to HPC Software Chaos"
      conference:
        name: "Supercomputing 2015 (SC’15)"
        city: "Austin"
        region: "Texas"
        country: "USA"
        date-start: 2015-11-15
        date-end: 2015-11-20
    notes: LLNL-CONF-669890
    @inproceedings{gamblin+:sc15,
            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},
            note = {LLNL-CONF-669890},
            title = {{The Spack Package Manager: Bringing order to HPC software chaos}},
            year = {2015}}
    

    But GitHub only shows partial information:

    @inproceedings{Gamblin_The_Spack_Package,
    address = {Austin, Texas, USA},
    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},
    series = {Supercomputing 2015 (SC’15)},
    title = {{The Spack Package Manager: Bringing Order to HPC Software Chaos}}
    }
    
  15. hainesr commented on Oct 6, 2021

    @hainesr
    Member

    Yes, I haven't added note to any BibTeX type yet - I'll add an issue to do that. Same with parsing dates out of start- and end- - we just use plain month and year from the CFF at the moment, but I will add that too.

    It doesn't look like adding a day range into the month field is a standard use for it [1], but is that something that people would generally expect?

    [1] https://www.bibtex.com/f/month-field/

  16. tgamblin commented on Oct 6, 2021

    @tgamblin
    Author

    Ok I tried with month and year, and that nearly gives output that I could paste into a .bib file. The only nit is this:

    @inproceedings{Gamblin_The_Spack_Package_2015,
    address = {Austin, Texas, USA},
    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},
    month = {11},
    series = {Supercomputing 2015 (SC’15)},
    title = {{The Spack Package Manager: Bringing Order to HPC Software Chaos}},
    year = {2015}
    }
    

    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:

    Screen Shot 2021-10-06 at 4 39 54 PM

    Here is the source: https://github.com/tgamblin/bibtest. month = {nov} gets me nov in the output.

    If I specify:

    month = nov
    

    without the braces, then I get this:

    Screen Shot 2021-10-06 at 4 44 07 PM

    Braces in BibTeX usually mean "write this exactly like I wrote it", so that makes sense to me. However, putting 11 for the month gets me 11 in 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.

    It doesn't look like adding a day range into the month field is a standard use for it [1], but is that something that people would generally expect?

    I did some experiments with this, as well. There is supposed to a field eventdate in BibTeX that allows you to specify the date range as 2015-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.

  17. hainesr commented on Oct 7, 2021

    @hainesr
    Member

    There is supposed to a field eventdate in BibTeX that allows you to specify the date range as 2015-11-15/2015-11-20, but it appears that is broken and outputs nothing.

    eventdate looks 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

  18. tgamblin commented on Oct 7, 2021

    @tgamblin
    Author

    Thanks for all the work on this!

  19. adamjstewart commented on Dec 8, 2022

    @adamjstewart

    Any updates on the "month" bug mentioned above? I would expect setting:

    month: 11

    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.

  20. hainesr commented on Dec 11, 2022

    @hainesr
    Member

    Yes, I need to fix this. Apologies for missing it so far.

    I have created #119 to track this, rather than reopen this one.

  21. added a commit that references this issue on Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugenhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions