rstudio / rticles

LaTeX Journal Article Templates for R Markdown
https://pkgs.rstudio.com/rticles/
1.47k stars 518 forks source link

Use abstract-to-meta to make it easier to write abstracts #353

Open eliocamp opened 3 years ago

eliocamp commented 3 years ago

Writting the batract section in the yaml is a bit cumbersome, it's not clear how to include inline R code, and RStudio auto indent feature doesn't recognise it properly. Recently I found out about the abstract-to-meta lua filter which allows the user to write the abstract as part of the body and then moves that to the metadata :

https://github.com/pandoc/lua-filters/tree/master/abstract-to-meta

It works like a charm. With it it's even possible to write the abstract as the last section of the document, which would make it even more natural to include results from the analysis.

Would you consider transitioning templates into using this filter?


By filing an issue to this repo, I promise that

I understand that my issue may be closed if I don't fulfill my promises.

cderv commented 3 years ago

Thanks !

This is related to discussion in https://github.com/rstudio/rmarkdown/issues/1963 about including more external lua filter in the tools.

This is something that we could consider. The question is how best and where it should live.

Thank you for the suggestion ! We'll see the upvote on this feature request!