casile icon indicating copy to clipboard operation
casile copied to clipboard

E-Book meta-data can have names split

Open alerque opened this issue 2 years ago • 0 comments

So for we're saving names in meta data as full given names. This is usually what's needed, but sometimes (e.g. for some ebook metadata fields) we need names split up. One way to do that would be with this trick:

$ echo '@misc{x,author={Caleb Ede Maclennan}}' | pandoc -f bibtex -t gfm -s | grep -v -- '---' | yq -y .references[0].author
- family: Maclennan
  given: Caleb Ede

alerque avatar Dec 20 '21 10:12 alerque