I'm using docutils to generate LaTeX files, with custom roles for using latex specific commands in the rst files.
My problem is, that docutils automatically escapes underscores in the parameters of the custom commands. E.g.
becomes (after expanding the internal macros)
This generates an error.
I want to avoid patching docutils. Is there a way to 'unescape' the underscore in latex? Also, is there a general way to do this for other escaped characters?