- Write academic papers of Elsevier journals with R markdown syntax.
- A live example is provided. I published it TODAY!
- Create multiple file formats, including .pdf, single .html, gitbook, .md, .epub, docx.
It is today that one of my academic manuscripts is published on Agricultural and Forest Meteorology, one of the top journals in my scientific research area. This paper is the first paper of mine written in R bookdown environment from the preparation to the publication. Hooray! Now it is time to share its bookdown files.
Elsevier is one of the world's major providers of scientific, technical, and medical information. Elsevier owns 2500 journals, which is why I would like to share my bookdown manuscript for re-use.
An Example with Its Repo
The example is the paper I have just published TODAY. It is open-access. Users could either see it online or download the pdf version. Before the publication, a version with numbered lines is recommended for reviewers, which looks like this:
It is produced by my bookdown project, which is available on the GitHub Repo. You could view the .docx, .epub, .html, .pdf, and .tex as well.
I should mention that you will fail in creating the book if you only download the repo and build it with R bookdown. You could see that in 'index.Rmd' there is a line which calls an R script:
paper.R processes my data and creates the data and figures for the manuscript. I would not like to share paper.R at the moment. Anyway, you could get an impression how the pdf is created from the .Rmd files even without seeing paper.R.
Elsevier provides a LaTeX template which is free for using. I modified it as 'tex/template.tex', i.e. something was moved from the original LaTeX template to the yaml of 'index.Rmd'. Users could simply compare them and then get an idea how to convert a LaTeX template into a bookdown template.
- Download the GitHub Repo.
- Revise 'index.Rmd' as your own manuscript.
- Build the book with R bookdown.
Any suggestions are welcome. Just PR the repo!