ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: Alexandre Christe <aleks.christe@gmail.com>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: [NTG-context] Re: Inline math spacing
Date: Mon, 4 Dec 2023 14:08:11 +0100	[thread overview]
Message-ID: <d1bbf1b8-5071-4c47-af9e-1a3e6b5605d3@freedom.nl> (raw)
In-Reply-To: <c4567b03-675c-4a07-9c8c-db54d89cebf1@Spark>

On 12/4/2023 6:43 AM, Alexandre Christe wrote:
> Hi,
> 
> Here’s a MWE:
> 
> \setupinterlinespace[line=3ex]
> 
> \definefontfeature[default][default][lnum=yes,tnum=yes]
> \usetypescriptfile[alegreya_libertinus]
> \setupbodyfont[alegreya-light,ss,10pt]
> \setupmathematics[autopunctuation={all}]
> 
> % math definitions
> \enablemathautospacing % more global
> % \enablemathautofencing % more global
> \enablemathautonumbers % more global
> % \autofences % more local
> 
> \usemodule[ipsum]
> 
> \starttext
> 
> \ipsum
> 
> \stoptext
> 
> And I attach the two files to setup the font.
no math ... anyway

\showglyphs

\dorecurse{100}{test \im{\frac{#1}{3}} test }

\setupmathematics[textdistance=.25em plus .1em minus .1em]

\dorecurse{100}{test \im{\frac{#1}{3}} test }

will give more space but it's mostly optical that the math related 
spacing looks doferent from regular spaces.

-----------------------------------------------------------------
                                           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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-12-04 13:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a58461bc-75c6-4a25-965d-a47662a0d2ce@Spark>
2023-12-03 21:31 ` [NTG-context] " Alexandre Christe
2023-12-03 21:41   ` [NTG-context] " Hans Hagen
2023-12-04  5:43     ` Alexandre Christe
2023-12-04 13:08       ` Hans Hagen via ntg-context [this message]
2023-12-04 13:42         ` Alexandre Christe
2023-12-04 19:45           ` Hans Hagen via ntg-context

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=d1bbf1b8-5071-4c47-af9e-1a3e6b5605d3@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=aleks.christe@gmail.com \
    --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).