texPreview (version 1.4.3)

texPreview: Render and Preview snippets of TeX in R Viewer deprecated

Description

This function has been deprecated, use tex_preview instead.

Usage

texPreview(obj, tex_lines = NULL, stem = "tex_temp",
  overwrite = TRUE, keep_pdf = FALSE, tex_message = FALSE,
  fileDir = tex_opts$get("fileDir"), margin = tex_opts$get("margin"),
  imgFormat = tex_opts$get("imgFormat"),
  returnType = tex_opts$get("returnType"),
  resizebox = tex_opts$get("resizebox"),
  usrPackages = tex_opts$get("usrPackages"),
  engine = tex_opts$get("engine"), cleanup = tex_opts$get("cleanup"),
  density = tex_opts$get("density"), svg_max = tex_opts$get("svg_max"),
  print.xtable.opts = tex_opts$get("print.xtable.opts"),
  opts.html = tex_opts$get("opts.html"), markers = interactive(), ...)

Arguments

obj

object to convert to TeX script

tex_lines

vector of character, in case of special needs, instead of asking texPreview to build up, you may choose to pass in the contents of the complete LaTeX file directly. It should be a vector of character with each element as a line of raw TeX code.

stem

character, name to use in output files, Default: "tex_temp"

overwrite

logical, controls if overwriting of output stem* files given their existences, Default: TRUE

keep_pdf

logical, controls if the rendered pdf file should be kept or deleted, Default: FALSE

tex_message

logical, controls if latex executing messages are displayed in console. Default: FALSE

fileDir

character, output destination. If NULL a temp.dir() will be used and no output will be saved, Default: tex_opts$get('fileDir')

margin

table margin for pdflatex call, Default: tex_opts$get('margin')

imgFormat

character, defines the type of image the PDF is converted to Default: tex_opts$get('imgFormat')

returnType

character, one of "viewer", "html", or "tex" determining appropriate return type for the rendering process, Default: tex_opts$get('returnType')

resizebox

logical, forces a tabular tex object to be constrained on the margins of the document, Default: tex_opts$get('resizebox')

usrPackages

character, vector of usepackage commands, see details for string format

engine

character, specifies which latex to pdf engine to use ('pdflatex','xelatex','lualatex'), Default: tex_opts$get('engine')

cleanup

character, vector of file extensions to clean up after building pdf, Default: tex_opts$get('cleanup')

density

numeric, controls the density of the image. Default is 150: tex_opts$get('density)

svg_max

numeric, maximum svg file size allowable to preview, Default: tex_opts$get('svg_max')

print.xtable.opts

list, contains arguments to pass to print.table, relevant only if xtable is used as the input, Default: tex_opts$get('print.xtable.opts')

opts.html

list, html options, Default: tex_opts$get('opts.html')

markers

logical, if TRUE then RStudio markers will be invoked to create links for the log file on rendering errors, Default: interactive()

...

passed to system2