[NTG-context] typewriter text in formula

2010-10-01 Thread Patrick Gundlach
Hi, how do I get typewriter text in formula? I've tried: \startformula r = \mono{foo} \stopformula but that gives mono from a different font. I'd like to have consolas, but it looks like courier new. And a related question: How do I get an underscore in this: \startformula r =

Re: [NTG-context] typewriter text in formula

2010-10-01 Thread Khaled Hosny
On Fri, Oct 01, 2010 at 12:25:54PM +0200, Patrick Gundlach wrote: Hi, how do I get typewriter text in formula? I've tried: \startformula r = \mono{foo} \stopformula but that gives mono from a different font. I'd like to have consolas, but it looks like courier new. You should

Re: [NTG-context] typewriter text in formula

2010-10-01 Thread Patrick Gundlach
how do I get typewriter text in formula? I've tried: \startformula r = \mono{foo} \stopformula but that gives mono from a different font. I'd like to have consolas, but it looks like courier new. You should get the math mono from the math font you are using (Cambria, I guess)

Re: [NTG-context] typewriter text in formula

2010-10-01 Thread Khaled Hosny
On Fri, Oct 01, 2010 at 02:04:09PM +0200, Patrick Gundlach wrote: how do I get typewriter text in formula? I've tried: \startformula r = \mono{foo} \stopformula but that gives mono from a different font. I'd like to have consolas, but it looks like courier new. You

Re: [NTG-context] typewriter text in formula

2010-10-01 Thread Patrick Gundlach
\mono{}? which you are already using. I tried the file below, and all the three r's are Cambria's, and the last two are mono. \setupbodyfont[cambria] \starttext \startformula r=\mono{r}{\tt r} \stopformula \stoptext Thats what I get, too, but this is not what I want! This looks

Re: [NTG-context] typewriter text in formula

2010-10-01 Thread Patrick Gundlach
Hi all, \setupbodyfont[cambria] \starttext \startformula r=\mono{r}{\tt r} \stopformula \stoptext Mojca gave me the right hint to use \text{.} around the text. And my other problem is solved as well (underscores). Thanks!

Re: [NTG-context] typewriter text in formula

2010-10-01 Thread Hans Hagen
On 1-10-2010 2:38, Patrick Gundlach wrote: Hi all, \setupbodyfont[cambria] \starttext \startformula r=\mono{r}{\tt r} \stopformula \stoptext Mojca gave me the right hint to use \text{.} around the text. And my other problem is solved as well (underscores). fyi: there is a typewriter

Re: [NTG-context] typewriter text in formula

2010-10-01 Thread Patrick Gundlach
fyi: there is a typewriter alphabet in math (unicode) but indeed in your case you need \text in order to get more than the alphabet (and another font). I remember that I came across that (U+1D670 and further) a few days ago and wondered Patrick