Skip to contents

Identify top-level LaTeX operators in an expression

Usage

latex_top_level_operators(
  latex_str,
  operators = c("+", "-", "\\\\cdot", "\\\\div", "=")
)

Arguments

latex_str

A LaTeX math string

operators

Vector of operators to detect at top level

Value

Data frame of matched operators and positions