count_env: count latex environments

View source: R/stat-tools.R

count_envR Documentation

count latex environments

Description

count common environments like table,figure,verbatim etc..

Usage

count_env(article_dir, env_name)

Arguments

article_dir

path to the directory which contains RJ article

env_name

name of the environment

Value

count of the environment, FALSE otherwise

Examples

article_dir <- system.file("examples/article",
                 package = "texor")
figures <- texor::count_env(article_dir, "figure")
print(paste("figure count : ", figures))

texor documentation built on Oct. 15, 2024, 5:08 p.m.