On Oct 29, 1:50 am, Roberto Bonvallet <rbonv...@gmail.com> wrote:
>
> Is there a simple way to map unicode symbols within math roles to their
> LaTeX versions?

You can use latex_elements['utf8extra'] in conf.py, e.g.:

latex_elements = {
    'utf8extra': r"""
         \DeclareUnicodeCharacter{00A0}{\nobreakspace}
         \DeclareUnicodeCharacter{03C3}{\ensuremath{\sigma}}
         \DeclareUnicodeCharacter{2212}{\ensuremath{-}}
         """
}

03C3 is σ.

Marcin

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to