How to Adapt Any LaTeX Template for Use With R Markdown in Four Steps
You may often want to use a LaTeX template from some journal with R Markdown. Is is relatively simple to do so, but it can be frustrating to figure out how.
You may often want to use a LaTeX template from some journal with R Markdown. Is is relatively simple to do so, but it can be frustrating to figure out how.
In a package I’m developing, I had a problem around highlighting text in LaTeX and HTML output. The solution I found involved using pandoc filters to take full control over the final document. Here’s a guide to writing such filters when R Markdown ain’t got what you need.
What to do when the chunk options you need to get R Markdown to do what you want are missing? You create the ones you need. It is incredibly useful to be able to do so — unfortunately it can be a bit tricky to figure out how. Here’s a quick guide.
In a previous blog post, I detailed at length the nitty-gritty of how one might take the ACM Master Article LaTeX templates and get them to play nicely with R Markdown. To make it super easy in practice, I created two R packages which supply easy-to-use R Markdown templates in RStudio for CHI Proceedings and CHI Extended Abstracts.
I love R Markdown, but struggled for hours and hours to get it to play nicely with arbitrary LaTeX templates, especially for submissions to the ACM CHI conference. I cracked it in the end (I think). Here’s a tutorial explaining how to write CHI articles in R Markdown using ACM’s new article template.