natverse / natverse_hugo

https://natverse.github.io/packages/
Creative Commons Attribution Share Alike 4.0 International
0 stars 2 forks source link

Add publication list from bib file #24

Closed jefferis closed 5 years ago

jefferis commented 5 years ago

I don't think there's any automated way to collect publications. Anything that cites Manton et al is a good candidate, but there are plenty of others. So I think the best way is to collect a .bib file and use it like this:

https://github.com/rbind/blogdown-demo/blob/master/content/post/2017-08-28-adding-citations-to-posts.Rmd

jefferis commented 5 years ago

@jdmanton maybe you could look at this one. The bib file is in the google drive folder 2019nat/natverse-papers.bib

jdmanton commented 5 years ago

I failed at diagnosing why, but the instructions at [https://github.com/rbind/blogdown-demo/blob/master/content/post/2017-08-28-adding-citations-to-posts.Rmd] did nothing, just leaving the raw tags in the final page. I also tried writing a custom YAML processor, based on converting the .bib file using pandoc-citeproc but that ended up looking like a lot of work, so I resorted to a hand-curated approach with LaTeX -> Word -> RegEx, added in 3e4451e.

jefferis commented 5 years ago

OK. Thanks. Just checking, but does it matter if the file is an .Rmd vs .md?

jdmanton commented 5 years ago

OK. Thanks. Just checking, but does it matter if the file is an .Rmd vs .md?

I'm an idiot. I'll push shortly...

jdmanton commented 5 years ago

Autogenerated publication list added in 7634e2a (albeit one ordered by surname of first author, not year).

jefferis commented 5 years ago

Super. That's great! We can look into the ordering at some point, but this great.