locate_mandatory_LaTeX_argument: Locate contents of LaTeX commands

Description Usage Arguments

View source: R/locate_mandatory_LaTeX_argument.R

Description

Provides the locations of LaTeX commands with mandatory arguments.

Usage

1
2
3
4
5
6
locate_mandatory_LaTeX_argument(
  tex_lines,
  command_name,
  n = 1L,
  parsed_doc = NULL
)

Arguments

tex_lines

A character vector of a LaTeX document, – for example as obtained from readLines("mydoc.tex").

command_name

The command (without backslash) whose arguments' locations are desired.

n

Integer vector: which argument(s) to locate. If n = NA, the n-th argument positions for all n.

parsed_doc

The result of parse_tex(tex_lines).


TeXCheckR documentation built on Nov. 17, 2020, 9:08 a.m.