Skip to content

Commit

Permalink
new function tikz_dict() to generate tikz dictionary path
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Mar 5, 2012
1 parent 6a6b05a commit 88314ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88314ce

Please sign in to comment.