ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* new upload / math
@ 2021-06-11 16:08 Hans Hagen
  2021-06-11 17:57 ` Pablo Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Hagen @ 2021-06-11 16:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-11 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11 16:08 new upload / math Hans Hagen
2021-06-11 17:57 ` Pablo Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).