tikz.init: tikz.init

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/tikzutils.R

Description

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

Usage

1
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

1
2
3
4
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 Jan. 13, 2021, 8 a.m.