![](https://secure.gravatar.com/avatar/d558f7d2c62b984d42b1e276bbdfc2c7.jpg?s=120&d=mm&r=g)
29 Sep
2011
29 Sep
'11
9:58 p.m.
I want to define an environment for computer code including non-ASCII characters, using Xits or STIXGeneral except in the ASCII range, where some monospace font like Courier should be used. If I do: \setupbodyfont[xits,10pt] \definetyping[code] \setuptyping[code][margin=yes] \starttext \startcode for ∀i, j ∈ I do a(i, j) ≔ b(i, j) \stopcode \stoptext Then the math characters won't show. They will show using \setuptyping[code][style=normal,margin=yes] but then the ASCII range isn't monospace. In LaTeX, one can use \setmathfont[range={"0001-...,}] to set ranges for fonts, but I could not find that for ConTeXt. Hans