On Thu, Sep 29, 2011 at 9:58 PM, Hans Aberg <haber...@telia.com> wrote:
> 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.
It's not a solution of your problem, but this work

\setupbodyfont[dejavu]
\definetyping[code]
\setuptyping[code][margin=yes]

\starttext
 \startcode
 for ∀ i,j ∈ I
  do a(i,j) ≔ b(i,j)
 \stopcode
\stoptext


-- 
luigi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to