[NTG-context] Underbar offset

2016-05-23 Thread Mojca Miklavec
Hi,

I would like to add a continuous underbar under a paragraph or a title as in:

\setupbar
[color=red,offset=10pt]
\starttext
\underbar{Test this \high{\tfxx ®}}
\stoptext

... but I'm confused about two aspects:

- How can I prevent \high{} from shifting the underbar?
- How can I add more offset?

The color keyword works, but offset doesn't seem to have any effect
even though it's listed in the reference.

I was able to address the second problem (adding more offset) with
something like
\definebar[BarU][offset=-0.7]
\startbar[BarU] ... \stopbar
but I wasn't able to get rid of the shift (and the bar had a different
thickness when a smaller font was used).

I can find ugly workarounds with frames, but it would be ideal if I
could get one of the underbar mechanisms to work "out-of-the-box".

Thank you,
   Mojca
___
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
___

Re: [NTG-context] smaller size for particular style

2016-05-23 Thread Henman
When I  change the middle line in Wolfgang's example at the bottom of 
this message from:


a{\tt a} e{\tt e} A{\tt A}
 |
 | to the below
 v
x{\tt a} y{\tt e} z{\tt A}

I thought i should get: aa   ee  and AA for  the given example
and: xa   ye  and zA  for my modified 
version.


But the output is exactly the same. (Using; ConTeXt TDS Runner Tool 1.31)

So what do the letters preceding the { } groups do?
Can this behavior be easily explained or a reference given to me to 
understand this?


On 05/22/2016 09:08 AM, Wolfgang Schuster wrote:
You can define your own typeface where you change the scaling.

\definetypeface [hans] [rm] [serif] [cambria] [default]
\definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
\definetypeface [hans] [mm] [math]  [cambria] [default]

\setupbodyfont[hans]

\starttext
a{\tt a} e{\tt e} A{\tt A}
\stoptext


___
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
___