% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/table2_utils.R
\name{sanitize_for_latex}
\alias{sanitize_for_latex}
\title{Sanitize certain symbols for LaTeX}
\usage{
sanitize_for_latex(x)
}
\arguments{
\item{x}{Character vector to sanitize.}
}
\value{
Character vector with special characters escaped for LaTeX.
}
\description{
Escapes special LaTeX characters (%, &, #, _, $, ^, ~, {, }) while
preserving existing LaTeX commands. Uses negative lookbehind to avoid
double-escaping already escaped characters.
}
\keyword{internal}
