make_pdf | R Documentation |
compile tex files using biber for bibliographies
make_pdf( texfile, bibfolder, figfolder, clean_up = FALSE, open_file = FALSE, drytest = FALSE )
texfile |
character, file name of tex source file |
bibfolder |
character, folder location of bib files |
figfolder |
character, folder location of figures for inclusion |
clean_up |
logical, should auxillary files be removed (by default |
open_file |
logical, should the result be opened in the system viewer (by default |
drytest |
logical, stop before compilation and return temp directory (default is |
Note that the locations of tex files and folders must all start in the same place. For example, if I have my tex files in documents/folder1/
and the corresponding figures in documents/folder1/figures/
, while the references are in documents/reffolder/
I need to start all locations from documents
: texfile = "folder1/mytex.tex"
, figfolder = "folder1/figures/"
and bibfolder = "reffolder/"
. This is all pretty convoluted, I realize, but it's due to the structure of my folder system.
In addition, please notice that if there is something wrong with folder/file structure, R might crash (which is most likely due to pdflatex
crashing when it doesn't find referenced files. It is therefore recommended to inspect the temp folder created by setting drytest = TRUE
: this returns the location of the temp folder. You should check the relative location of the different files is correct.
an invisible list with three entries for latex console output (corresponding to three latex passes) and one item for biber console output
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.