View source: R/equation-tools.R
patch_equations | R Documentation |
this function patches equations (particularly eqnarray)
patch_equations(article_dir)
article_dir |
path to the directory which contains tex article |
patches equations environments in LaTeX file and also backs up the old file before modification
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::patch_equations(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.