make_pdf: compile tex files using biber for bibliographies

View source: R/make_pdf.R

make_pdfR Documentation

compile tex files using biber for bibliographies

Description

compile tex files using biber for bibliographies

Usage

make_pdf(
  texfile,
  bibfolder,
  figfolder,
  clean_up = FALSE,
  open_file = FALSE,
  drytest = FALSE
)

Arguments

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 FALSE)

open_file

logical, should the result be opened in the system viewer (by default FALSE). This probably works on MacOS anyway...

drytest

logical, stop before compilation and return temp directory (default is FALSE)

Details

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.

Value

an invisible list with three entries for latex console output (corresponding to three latex passes) and one item for biber console output


gobbios/cfp documentation built on April 11, 2022, 2:22 a.m.