Parse author first/last name from myst metadata #2368
-
|
Hi all, I'm not sure whether this is the right place to ask, feel free to forward or close if not. That being said: I am working on writing up a jupyter book (v2) for a specification document and would like to add all contributors as authors. The respective section in the authors:
- id: some_name
name: First Last
affiliations:
- whatever1
- whatever2Now, is it possible to somehow specify what exactly the first and the last names are? I would like to add a small piece of code to the build process that reads the metadata and produces a Example: Thanks in advance for the advice! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
There is a way to export from the myst.yml to a citation.cff! Add: And then: This will do all of the name reformatting for you. If the name does not get parsed correctly from a string, you can be more explicit in myst by turning it into an object, which may contain Hope that helps! For going the other way, I have opened an issue to track the feature request here: |
Beta Was this translation helpful? Give feedback.
-
|
@rowanc1 Thanks a lot, works like a charm :) Is this documented somewhere in the jupyter book pages? Could offer to send a small PR that makes note of this. |
Beta Was this translation helpful? Give feedback.
There is a way to export from the myst.yml to a citation.cff!
Add:
And then:
This will do all of the name reformatting for you.
If the name does not get parsed correctly from a string, you can be more explicit in myst by turning it into an object, which may contain
given,surname,non_dropping_particle,dropping_particle,suffix, and full nameliteral. (docs).Hope that helps!
For going the other way, I have opened an issue to track the feature request here: