article_has_tikz | R Documentation |
This simple utiliy function will check for tikzpicture environment
article_has_tikz(article_dir)
article_dir |
path to the directory which contains tex article |
TRUE if tikz image is present else FALSE
article_dir <- system.file("examples/article",
package = "texor")
dir.create(your_article_folder <- file.path(tempdir(), "tempdir"))
x <- file.copy(from = article_dir, to = your_article_folder,recursive = TRUE,)
your_article_path <- paste(your_article_folder,"article",sep="/")
texor::article_has_tikz(your_article_path)
unlink(your_article_folder,recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.