Skip to content
cpfaff edited this page May 20, 2013 · 1 revision

Compile the document

The compile process is guided via the Open-Science-Paper makefile and can be started by issuing the make command while you are inside of the Open-Science-Paper root folder. The steps below show you how to do this:

  • Open a Terminal

  • Change to your Open-Science-Paper folder

cd /path/to/your/paper_writing_folder/Open-Science-Paper/

  • Use make to compile the document

make

If you use a LaTeX editor you can check if it offers an option to call the makefile for you. I use Vim to edit my latex file and defined a shortcut inside my ~.vimrc to do this for me.

nnoremap <silent> <leader>c :!make<CR>

This only works when the working directory in Vim is same as the one the one the makefile is in (Open-Science-Paper folder). This is usually the case when you start editing the mainfile open_science_paper.Rnw before you start to open the sub documents in buffers or tabs.

Clone this wiki locally