get_texfile_name: Get the name of the tex file included within wrapper file

View source: R/file-tools.R

get_texfile_nameR Documentation

Get the name of the tex file included within wrapper file

Description

The wrapper file refers to an external tex file which contains the actual document content.

Usage

get_texfile_name(article_dir)

Arguments

article_dir

path to the directory which contains tex article

Value

String name of the tex-file name

Examples

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::get_texfile_name(your_article_path)
unlink(your_article_folder,recursive = TRUE)

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