Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.26 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.26 KB

rmarkdown-polyglot

A simple demo of rmarkdown's versatility for academic publishing. (Thanks to pandoc.)

To get this running you just need to install rstudio and pandoc-crossref, and make sure the rmarkdown package is installed in R.

If you have make, you can use the Makefile, otherwise you can run the commands in it from the shell. (Just replace $(SOURCE) with demo_paper). So, to make a tex file, do Rscript -e 'rmarkdown::render("demo_paper.Rmd", "pdf_document")'

Building this will fail unless you install pandoc-crossref, which you need to make equation and figure refs work, anyway. The options eqnPrefix and figPrefix specified above can be changed to your liking. If you don't want to deal with it, just delete the line - pandoc-crossref and the --filter above it.

More Resources

Thanks

To Jon Craton for the document on which apa_styles.docx was based, Rintze Zelle for ecology.csl, Rstudio for rmarkdown, and John MacFarlane for pandoc!