Hans wrote:
> So, we have low/high definable and clonable etc. Best check if the defaults
> are compatible. Valid parameters are 'up', 'down' and 'distance'
> (dimensions) and of course 'style' and 'color'.

Just downloaded and tested, looks nice.
Small bug: It's called lomihi, but the arguments are placed middle/high/low.

For documentation/clarification, is the following correct?
distance = extra kerning, distance between lomihi and preceding character.
up = how much the {hi} arg is raised
down = how much the {low} arg is lowered

Support for the [left] keyword seems to have been dropped, but is
still in the documentation comments.
Perhaps instead support align=..., and turn distance= into kernbefore=
and kernafter=? Sorry about not knowing enough to implement it myself.

Cheers,
Sietse

On Fri, Aug 10, 2012 at 7:59 PM, Hans Hagen <pra...@wxs.nl> wrote:
> On 10-8-2012 18:08, Wolfgang Schuster wrote:
>>
>>
>> Am 10.08.2012 um 18:00 schrieb "Rogers, Michael K" <mrog...@emory.edu>:
>>
>>> Hi,
>>>
>>> Since no one has offered a quick ConTeXt solution, I offer my usual -- a
>>> dumb Plain TeX solution:
>>>
>>> \def\lomihi#1#2#3{${\scriptstyle{#2}}\limits_{#1}^{#3}$}
>>>
>>> With the Computer Modern font, the top is a little further away from the
>>> middle than the bottom.  It can be adjusted with something like
>>>
>>>
>>> \def\lomihi#1#2#3{${\scriptstyle{#2}}\limits_{#1}^{\lower0.23pt\hbox{$\scriptstyle{#3}$}}$}
>>>
>>> but this would probably have to be adjusted for each font and size.
>>
>>
>> You can use \framed:
>>
>>
>> \defineframed[lohimi][align=flushleft,location=middle,frame=off,foregroundstyle=\tx]
>>
>> \starttext
>> text \lohi{1}{2} text \lohimi{1\\2\\3} text
>> \stoptext
>
>
> Neat trick.
>
> ===
>
> Wolfgang,
>
> The next beta has:
>
> \starttext
>
> \definelow       [MyLow]   [style=\txx]
> \definehigh      [MyHigh]  [style=\txx]
> \definelowhigh   [MyLoHi]  [style=\txx]
> \definelowmidhigh[MyLoMiHi][style=\txx]
>
> We have
>     \ruledhbox{\low         {L}} and \ruledhbox{\MyLow         {L}} and
>     \ruledhbox{\high        {H}} and \ruledhbox{\MyHigh        {H}} and
>     \ruledhbox{\lohi     {L}{H}} and \ruledhbox{\MyLoHi     {L}{H}} and
>     \ruledhbox{\lomihi{L}{M}{H}} and \ruledhbox{\MyLoMiHi{L}{M}{H}}.
>
> \stoptext
>
> So, we have low/high definable and clonable etc. Best check if the defaults
> are compatible. Valid parameters are 'up', 'down' and 'distance'
> (dimensions) and of course 'style' and 'color'.
>
> Hans
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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