Hi,

In addition the the mentioned integral trickery we can now do this

\setupbodyfont[newcomputermodern-book]

\enableexperiments[math.extensibles]

\starttext

% \startformula
% x = \integral^1_2 \mathinner{\vrule height 10mm depth 10mm width 5mm} = % x = \integral^1_2 \mathinner{\vrule height 20mm depth 20mm width 5mm} = % x = \integral^1_2 \mathinner{\vrule height 30mm depth 30mm width 5mm} =
%     x = \integral^1_2 \mathinner{x} =
%     x = \integral^1_2 x
% \stopformula

% \startformula
% x = \int\Umathadapttoright^1_2 \mathinner{\vrule height 10mm depth 10mm width 5mm} = % x = \int\Umathadapttoright^1_2 \mathinner{\vrule height 20mm depth 20mm width 5mm} = % x = \int\Umathadapttoright^1_2 \mathinner{\vrule height 30mm depth 30mm width 5mm} =
%     x = \int\Umathadapttoright^1_2 \mathinner{x} =
%     x = \int\Umathadapttoright^1_2 x
% \stopformula

% $
% x = \int\Umathadapttoright^1_2 \mathinner{\vrule height 10mm depth 10mm width 5mm} = % x = \int\Umathadapttoright^1_2 \mathinner{\vrule height 20mm depth 20mm width 5mm} = % x = \int\Umathadapttoright^1_2 \mathinner{\vrule height 30mm depth 30mm width 5mm} =
%     x = \int\Umathadapttoright^1_2 x =
% $

\def\rab{\Umathchar"1"00"007C }

\startTEXpage[offset=3cm]
  $
    \color[green]{\rab\Umathadapttoright^{\black 1}_{\black 2}^^3__4}
    \color[blue] {\mathinner{\vrule height 30mm depth 30mm width 5mm}}
    \color[red]  {\rab\Umathadapttoleft ^5_6^^{\black 7}__{\black 8}}
  $
\stopTEXpage

\startTEXpage[offset=10pt] % \showglyphs
$
    \rab\Umathadapttoright^1_2^^3__4
    \mathinner{\vrule height 30mm depth 30mm width 5mm}
    \rab\Umathadapttoleft^5_6^^7__8
$
\stopTEXpage

\stoptext

So, we can have left and right sided adaptation. The

\enableexperiments[math.extensibles]

is a cheat that makes the extensible into one character (cut and paste related).

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to