count_inline | R Documentation |
counts inline elements embedded within the latex file currently supported inlines : math (based on $$), code (based on \code) and Citations (based on \cite,\citealp, \citep, \citet)
count_inline(article_dir, inline)
article_dir |
path to the directory which contains RJ article |
inline |
name of the inline element |
count of the inline element, FALSE otherwise
article_dir <- system.file("examples/article",
package = "texor")
math <- texor::count_inline(article_dir, "math")
code <- texor::count_inline(article_dir, "inlinecode")
cite <- texor::count_inline(article_dir, "cite")
print(paste("math inlines : ", math, "\n",
"code inlines : ", code, "\n",
"citations : ", cite))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.