tex_requirements: Query TeX file for Required Packages

View source: R/tex_check.R

tex_requirementsR Documentation

Query TeX file for Required Packages

Description

Parse TeX file for usepackage calls and return a vector of the packages.

Usage

tex_requirements(
  file = system.file("tmpl.tex", package = "texPreview"),
  lines = NULL
)

Arguments

file

character, Path to TeX file, Default: system.file("tmpl.tex", package = "texPreview")

lines

character, character vector containing TeX script, Default: NULL

Details

If file is NULL then function will use the the value in lines. The default path used in file is the internal template that the package uses.

Value

character

Examples

tex_requirements()

metrumresearchgroup/texPreview documentation built on Feb. 4, 2024, 6:33 p.m.