Closed fkohrt closed 1 year ago
AFAIK this is a conseuqnece of how the tikzDevice
support has been implemented in knitr
. The resulting .tex
file is always processed using tikzDefaultengine
, c.f. https://github.com/yihui/knitr/blob/master/R/plot.R#L174
This is also documented at https://github.com/yihui/knitr/blob/master/inst/examples/knitr-graphics.Rnw#L249-L251
Then this should be an issue of {knitr}. I will create one there.
When using
tikzDevice
as device when plotting with knitr and rmarkdown, there appear to be differences between using global options and chunk options for setting the PDF engine. I will demonstrate this with a R Markdown document with embedded PDF documents.Setting
engine = "luatex"
has no effect when using thedev.args
chunk option, the PDF metadata still indicatepdfTeX
as creator: