tikz.init: tikz.init

View source: R/tikzutils.R

tikz.initR Documentation

tikz.init

Description

initialize and finalize a tikzDevice and carry out optional post-processing

Usage

tikz.init(basename, standAlone = TRUE, engine, ...)

Arguments

basename

the base of the files which will be used by tikzDevice, e.g. "basename" -> "basename.pdf", etc.

standAlone

A logical value indicating whether the output file should be suitable for direct processing by LaTeX. A value of FALSE indicates that the file is intended for inclusion in a larger document.

engine

used to specify the LaTex engine. If missing, the standard engine of tikz is used.

...

optional arguments which are passed to tikz, see tikzDevice::tikz

Details

Convenience Functions for tikzDevice

Value

tikz.init returns a list with character vector members, $pdf, $tex, $aux $log containing the corresponding filenames

Author(s)

Bartosz Kostrzewa, bartosz.kostrzewa@desy.de

See Also

Other tikzutils: tikz.finalize()

Examples


tikzfiles <- tikz.init("plotname",width=3,height=4)
plot(x=c(1:3), y=c(1:3)^2, xlab="$x$", ylab="$y$")
tikz.finalize(tikzfiles=tikzfiles, clean=TRUE)
file.remove("plotname.pdf")


hadron documentation built on Sept. 9, 2022, 5:06 p.m.