ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Adjusting Font Based Math Parameters
@ 2024-10-12 14:10 juliusross
  2024-10-12 16:25 ` [NTG-context] " Mikael Sundqvist
  0 siblings, 1 reply; 4+ messages in thread
From: juliusross @ 2024-10-12 14:10 UTC (permalink / raw)
  To: ntg-context

Hi,

For testing I would like to be able to adjust the font-based math parameters within ConTeXt MKIV.  I have been trying this

\startformula
\Umathfractiondenomdown\displaystyle=1em
\displaystyle \frac{a}{b} 
\stopformula

but the second command does not seem to have any effect on the output at all.     I am sure I am missing something, any help much appreciated.

JR
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Adjusting Font Based Math Parameters
  2024-10-12 14:10 [NTG-context] Adjusting Font Based Math Parameters juliusross
@ 2024-10-12 16:25 ` Mikael Sundqvist
  2024-10-12 17:27   ` Julius Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Mikael Sundqvist @ 2024-10-12 16:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I think \frac is resetting, or rather, that it sets to what one has set up, so:

\setupmathfractions
  [distance=bottom,
   bottomdistance=\exheight]

\startformula
  \frac{a}{b}
\stopformula

I hope it is what you look for.

/Mikael

PS You can find a bit on how fractions and other stuff are meant to be
used in the manual
https://www.pragma-ade.com/general/manuals/mathincontext-screen.pdf.

On Sat, Oct 12, 2024 at 4:10 PM <juliusross@gmail.com> wrote:
>
> Hi,
>
> For testing I would like to be able to adjust the font-based math parameters within ConTeXt MKIV.  I have been trying this
>
> \startformula
> \Umathfractiondenomdown\displaystyle=1em
> \displaystyle \frac{a}{b}
> \stopformula
>
> but the second command does not seem to have any effect on the output at all.     I am sure I am missing something, any help much appreciated.
>
> JR
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Adjusting Font Based Math Parameters
  2024-10-12 16:25 ` [NTG-context] " Mikael Sundqvist
@ 2024-10-12 17:27   ` Julius Ross
  2024-10-12 17:56     ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Julius Ross @ 2024-10-12 17:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Sorry that is not really what I want.  I am looking to adjust (in context)
all of the primitives \Umathfractiondenomdown, \Umathfractionnumup etc
described on p138 of the LuaMetaTeX reference manual.

Ideally it would be nice to be able to do this once from the start.

The reason is simply it would be much faster than having to export the font
each time I make a small change to the font (which is slow and so harder to
see the effect of the change).

If this is not possible/hard I can live without it.

JR

On Sat, Oct 12, 2024 at 11:36 AM Mikael Sundqvist <mickep@gmail.com> wrote:

> Hi,
>
> I think \frac is resetting, or rather, that it sets to what one has set
> up, so:
>
> \setupmathfractions
>   [distance=bottom,
>    bottomdistance=\exheight]
>
> \startformula
>   \frac{a}{b}
> \stopformula
>
> I hope it is what you look for.
>
> /Mikael
>
> PS You can find a bit on how fractions and other stuff are meant to be
> used in the manual
> https://www.pragma-ade.com/general/manuals/mathincontext-screen.pdf.
>
> On Sat, Oct 12, 2024 at 4:10 PM <juliusross@gmail.com> wrote:
> >
> > Hi,
> >
> > For testing I would like to be able to adjust the font-based math
> parameters within ConTeXt MKIV.  I have been trying this
> >
> > \startformula
> > \Umathfractiondenomdown\displaystyle=1em
> > \displaystyle \frac{a}{b}
> > \stopformula
> >
> > but the second command does not seem to have any effect on the output at
> all.     I am sure I am missing something, any help much appreciated.
> >
> > JR
> >
> ___________________________________________________________________________________
> > 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
> >
> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

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

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

___________________________________________________________________________________
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
___________________________________________________________________________________

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

* [NTG-context] Re: Adjusting Font Based Math Parameters
  2024-10-12 17:27   ` Julius Ross
@ 2024-10-12 17:56     ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen via ntg-context @ 2024-10-12 17:56 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 10/12/2024 7:27 PM, Julius Ross wrote:
> Sorry that is not really what I want.  I am looking to adjust (in 
> context) all of the 
> primitives \Umathfractiondenomdown, \Umathfractionnumup etc described on 
> p138 of the LuaMetaTeX reference manual.
> 
> Ideally it would be nice to be able to do this once from the start.
> 
> The reason is simply it would be much faster than having to export the 
> font each time I make a small change to the font (which is slow and so 
> harder to see the effect of the change).
> 
> If this is not possible/hard I can live without it.

You can make a so called font goodie file and tweak all parameters in 
there (just look at the shipped files) but ... only very few of these 
parameters actually make sense and are often set kind of bad (we're 
still considering just ditching all but a few of them).

If you change them per formula you have to set them at the right moment 
and if needed prefix them with \frozen in order to make them persistent 
for the multiple runs (two in traditional tex, many more in luametatex) 
over a math list (kind of like math style). There are lots of ways to 
control the math rendering as basically everything can be configured in 
the engine, but only a fraction makese sense and many relate to each 
other.

So the question is: what do you want to change? Maybe there are ways 
without messing with these parameters in the document.

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 / 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
___________________________________________________________________________________

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

end of thread, other threads:[~2024-10-12 18:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-12 14:10 [NTG-context] Adjusting Font Based Math Parameters juliusross
2024-10-12 16:25 ` [NTG-context] " Mikael Sundqvist
2024-10-12 17:27   ` Julius Ross
2024-10-12 17:56     ` 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).