ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bruce Horrocks <ntg@scorecrow.com>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Re: xrightarrow specific size issue
Date: Sat, 2 Jan 2021 14:30:13 +0000	[thread overview]
Message-ID: <8664B95E-0C98-4D28-98FB-A071753D8A79@scorecrow.com> (raw)
In-Reply-To: <DB8PR03MB62367F74CF95C8ED3575295DFBD50@DB8PR03MB6236.eurprd03.prod.outlook.com>



> On 1 Jan 2021, at 14:25, Johann Birnick <johann.birnick@hotmail.de> wrote:
> 
> Hi Aditya,
> 
> I know the syntax, my problem is about the options for the length of the arrow.
> 
> For example
> 
> \xrightarrow[big]{abc}
> 
> gives a longer arrow than
> 
> \xrightarrow{abc}
> 
> According to different manuals also specific lengths should be possible. But
> they don't work. I think it's a bug. (because the example from a documentation
> doesn't work)
> 
> Best regards,
> Johann

I'm not sure which manual you are looking in to find a reference to the ability to add a specific dimension.

In the source I can only find named sizes of 'none', 'normal', 'small', 'medium' and 'big'. You can 'kludge' these by extending the length of the text using hard spaces. Alternatively there is \rightarrowfill which you might be able to put into a frame of the desired width?

\starttext
$1\xrightarrow[none]{blah} 1$
\par
$2\xrightarrow[normal]{blah} 2$
\par
$3\xrightarrow[small]{blah} 3$
\par
$4\xrightarrow[medium]{blah} 4$
\par
$5\xrightarrow{~~~~~~~blah~~~~~~~} 5$
\par
$6\xrightarrow[big]{blah} 6$
\par
$7\rightarrowfill 7$
\par
\stoptext

--
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
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	other threads:[~2021-01-02 14:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-31 19:34 Johann Birnick
2021-01-01  6:50 ` Aditya Mahajan
2021-01-01 14:25   ` Johann Birnick
2021-01-02 14:30     ` Bruce Horrocks [this message]
2021-01-02 16:04       ` Johann Birnick
2021-01-02 16:08         ` Wolfgang Schuster
2021-01-02 16:39           ` Johann Birnick

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=8664B95E-0C98-4D28-98FB-A071753D8A79@scorecrow.com \
    --to=ntg@scorecrow.com \
    --cc=ntg-context@ntg.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).