extract_optional_LaTeX_argument: Extract optional argument

Description Usage Arguments

View source: R/extract_optional_LaTeX_argument.R

Description

Extract optional argument

Usage

1
2
3
4
5
6
extract_optional_LaTeX_argument(
  tex_lines,
  command_name,
  n = 1L,
  by.line = FALSE
)

Arguments

tex_lines

A character vector reading from a LaTeX document.

command_name

Name of command (without backslash)

n

Which optional argument to extract.

by.line

Should the output be one row per command (FALSE, the default), with extracts concatenated via paste0(..., collapse = "") or one row per line per command?


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