escape_latex function

Escape problematic characters to allow compilation in LaTeX

Escape problematic characters to allow compilation in LaTeX

Copied from knitr for internal use because it is unexported and CRAN rejects :::

escape_latex(x, newlines = FALSE, spaces = FALSE)

Arguments

  • x: a character string to escape
  • newlines: boolean
  • spaces: boolean
  • Maintainer: Vincent Arel-Bundock
  • License: GPL-3
  • Last published: 2025-02-02