ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: Fabrice Couvreur via ntg-context <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: Size of all subscripts
Date: Mon, 22 Aug 2022 18:25:27 +0200	[thread overview]
Message-ID: <4d30f59e-35e1-45dc-69b9-0203f9a8429f@freedom.nl> (raw)
In-Reply-To: <CACyK-eqeosUugM5-S=ECR6dtJ2aFrmKwNKqB6EJbaqhAdWgi1g@mail.gmail.com>

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
___________________________________________________________________________________

      reply	other threads:[~2022-08-22 16:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-22 14:59 Fabrice Couvreur via ntg-context
2022-08-22 16:25 ` Hans Hagen via ntg-context [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4d30f59e-35e1-45dc-69b9-0203f9a8429f@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).