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 =
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
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)
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
\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
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!
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
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