Closed hubgit closed 3 years ago
That is interesting, can we use it for affilitation, how would it be translated in jats format ?
Interesting. What's the difference between an anchor and the id?
Interesting. What's the difference between an anchor and the id?
An anchor (&
) is a YAML feature that's used to identify nodes so that they can be included by reference using an alias (*
).
Gosh, pointers! Question would be: Is this really helpful for our purposes?
To me it's important to keep in mind. I wouldn't want to require users to learn these YAML features, but I also wouldn't want to make it impossible to use them. But that's up to tooling and thus a different story.
I think the example has great value because it shows how we need to link different parts of the metadata tree. For pandoc-scholar we used an 'id' field, but a numerical author index would work just as well.
Should we the go for anchor + id like in the example, for authors and for affiliation ?
I agree that these pointers/anchors could be useful, but I don't think that we ourselves need to bother with them, as – if I don't overlook a giant elephant in the room – they wouldn't interfere with a standard (e.g., if I understand them correctly, you can either define a property ONCE and reference it everywhere, or copy all its data to all places where we need it). Hence, I think keeping this in mind is good for keeping the code DRY, but apart from that I don't think we need to spend particular focus on it. Or did I miss something obvious here?
I like to use anchors to identify authors, so that they can be referenced from other metadata sections without having to repeat anything:
e.g. https://github.com/hubgit/mdx-paper-example/blob/master/metadata.yml