The sweave (R
+ latex
) files used to generate the rethomics manuscript.
Curently available under the CC-BY license as a preprint on biorxiv
IMPORTANT do not modify the .tex
files (see below).
- Clone this repo
- check you have the arch packages
texlive-most gcc-fortran r
- Install the
R
packages required:
# these should take a few min
install.packages(c("devtools",
"knitr",
"cowplot",
"ggetho",
"zeitgebr",
"damr"),
repos = c(CRAN = "http://cran.rstudio.com"))
# sleepr installed from github (ignore the warning about submodule)
devtools::install_github("rethomics/sleepr")
Once the necessary packages are installed, we can compile
the whole manuscript with a makefile using make all
.
The generates two targets:
geissmann_et_al_2018.pdf
-- The whole formated manuscriptmanuscript-changes.pdf
-- The manuscript with track changes for revisions (made with latexdiff)
To clean the project, one can run make clean
IMPORTANT do not modify the .tex
files. Tex files are compiled from the .Rnw
files.
The text of the manuscript is contained in two files:
manuscript.Rnw
-- All the text, except the result sectionresults.Rnw
-- The result section only