From 88314ce650566b78209c1711ab2306c2b0519ccd Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Sun, 4 Mar 2012 18:19:24 -0600 Subject: [PATCH] new function tikz_dict() to generate tikz dictionary path --- R/utils.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/utils.R b/R/utils.R index 2f21069b6d..a64c69c7c9 100644 --- a/R/utils.R +++ b/R/utils.R @@ -191,6 +191,10 @@ is_tikz_dev = function(options) { options$dev == 'tikz' && !options$external } +tikz_dict = function(path, normal) { + str_c(if (normal) file_path_sans_ext(basename(path)) else 'unknown', '-tikzDictionary') +} + ## compatibility with Sweave and old beta versions of knitr fix_options = function(options) { ## compatibility with Sweave