Makes an arbitrary string safe to drop into a LaTeX document by escaping the
characters that would otherwise be interpreted as markup
(\ { } $ & # _ % ~ ^ < >). Use it on variable names, factor-level
labels, captions – anything user-supplied that reaches the .tex. This
is what prevents a dependent variable called tlx_mental from producing
an un-compilable tlx_mental (a subscript error) in Overleaf.