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 =  \mono{foo_i} looks wrong (I need the underscore) and \mono{foo\_i} fails
\stopformula


Patrick
-----


My setup:

\usetypescriptfile[type-consolas]
\definetypeface [mainface] [rm] [serif] [cambria]  [default]
\definetypeface [mainface] [ss] [sans]  [corbel]   [default] [rscale=auto]
\definetypeface [mainface] [tt] [mono]  [consolas] [default] [rscale=auto]
\definetypeface [mainface] [mm] [math]  [cambria]  [default]

where type-consolas is this:

\unprotect
 \starttypescript [mono] [consolas] [name]      
   \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Mono]           [\s!file:consola]  
[\s!features=\s!default]
        \definefontsynonym [\s!MonoBold]       [\s!file:consolab] 
[\s!features=\s!default]
        \definefontsynonym [\s!MonoItalic]     [\s!file:consolai] 
[\s!features=\s!default]
        \definefontsynonym [\s!MonoBoldItalic] [\s!file:consolaz] 
[\s!features=\s!default]
    \stoptypescript
\protect


___________________________________________________________________________________
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