Adjusting Font Based Math Parameters
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
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
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 ___________________________________________________________________________________
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
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
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
___________________________________________________________________________________
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 -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Julius Ross
-
juliusross@gmail.com
-
Mikael Sundqvist