ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Size of all subscripts
@ 2022-08-22 14:59 Fabrice Couvreur via ntg-context
  2022-08-22 16:25 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Couvreur via ntg-context @ 2022-08-22 14:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur


[-- Attachment #1.1: Type: text/plain, Size: 362 bytes --]

Hello
How to reduce the size of all subscripts in math mode ?
Thanks
Fabrice

\usemodule[tikz]
 \protected\def\vector#1{%
     \starttikzpicture[baseline=(arg.base),>=stealth]
     \node[inner xsep=0pt] (arg) {\m{#1}};
     \draw[thick,->,shorten >=-1pt] (arg.north west) -- (arg.north east);
    \stoptikzpicture%
    }
\starttext
 \m{z_{\vector{U}}}
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 874 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: Size of all subscripts
  2022-08-22 14:59 Size of all subscripts Fabrice Couvreur via ntg-context
@ 2022-08-22 16:25 ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2022-08-22 16:25 UTC (permalink / raw)
  To: Fabrice Couvreur via ntg-context; +Cc: Hans Hagen

On 8/22/2022 4:59 PM, Fabrice Couvreur via ntg-context wrote:
> Hello
> How to reduce the size of all subscripts in math mode ?
> Thanks
> Fabrice
> 
> \usemodule[tikz]
>   \protected\def\vector#1{%
>       \starttikzpicture[baseline=(arg.base),>=stealth]
>       \node[inner xsep=0pt] (arg) {\m{#1}};
>       \draw[thick,->,shorten >=-1pt] (arg.north west) -- (arg.north east);
>      \stoptikzpicture%
>      }
> \starttext
>   \m{z_{\vector{U}}}
> \stoptext
\protected\def\vector#1{%
      \starttikzpicture[baseline=(arg.base),>=stealth]
      \node[inner xsep=0pt] (arg) {\m{#1}};
      \draw[thick,->,shorten >=-1pt] (arg.north west) -- (arg.north east);
     \stoptikzpicture
     }
\starttext

\m{x + z_{\vector{U}} + x}

\m{x + \mathord{\vector{U}}^^z + x}

\m{x + \overrightarrow{U}^^z + x}

\stoptext


-----------------------------------------------------------------
                                           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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2022-08-22 16:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-22 14:59 Size of all subscripts Fabrice Couvreur via ntg-context
2022-08-22 16:25 ` Hans Hagen via ntg-context

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).