### Re: [NTG-context] Combining colors with matrices

Never mind. That was stupid of me. I can do it by containing a generalized fraction within $$and$$. Still getting used to thinking on multiple levels (TeX,ConTeXt,MathML, etc.) Sent with [ProtonMail](https://protonmail.com) Secure Email. ‐‐‐ Original Message ‐‐‐ On Wednesday, July 15

### Re: [NTG-context] Colors in lmt_surface and luametafun

Width ; \stopMPcode What is the meaning of « f » in « color = "f, f/5, 1-f" »? Is it possible to specify other colors and how can it be done? f = fraction you can write some function yourself \starttext \startMPcode{doublefun} draw lmt_surface [

### Re: [NTG-context] changing an XML node and reprocess it (or xmlflushing a string)

On 10/8/2019 11:17 AM, mf wrote: Solved with a dirty hack: \startbuffer[text] A paragraph with a fraction made of text with styles: a fraction made of text/with nested styles inside. \stopbuffer \startluacode local gsub = string.gsub local sfind = string.find local xmlflush = lxml.flush

### [NTG-context] Kerning/italic correction problem with TeX Gyre Bonum font

rmula \Bigl|\int f\Bigr| \stopformula The $x$ seems to be outside the fraction: \startformula \frac{a^2}{1-x} \stopformula We add another one (in fact two) including $f$: \startformula f\Bigl(\frac{a+b}{2}\Bigr) \stopformula Also look at $\xi_0$ and $\xi_1$, the subscripts are too far away from

### [NTG-context] Fwd: Re: \textfraction broken?

On Mon, Jul 10, 2017 at 8:09 PM, Henri Menke <henrime...@gmail.com> wrote: On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote: Adding \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}] fixes the problem in the sample just sent. Th

### Re: [NTG-context] \textfraction broken?

017 at 8:09 PM, Henri Menke <henrime...@gmail.com> wrote: > > On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote: > > > Adding > > > > > > \definefontfeature[fraction][frac=yes] > > > \definehighlight[textfraction][style={\feature[+][fraction]

### Re: [NTG-context] \textfraction broken?

, 2017 at 8:09 PM, Henri Menke <henrime...@gmail.com> wrote: > On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote: > > Adding > > > > \definefontfeature[fraction][frac=yes] > > \definehighlight[textfraction][style={\feature[+][fraction]}] > > > &

### Re: [NTG-context] \textfraction broken?

On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote: > Adding > > \definefontfeature[fraction][frac=yes] > \definehighlight[textfraction][style={\feature[+][fraction]}] > > fixes the problem in the sample just sent. This, and the font has to have the cor

### Re: [NTG-context] \textfraction broken?

Adding \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}] fixes the problem in the sample just sent. Sorry for the misfire. Alan On Mon, Jul 10, 2017 at 1:53 PM, Alan Bowen <bowenala...@gmail.com> wrote: > Has there been

### Re: [NTG-context] Position of prime for derivatives

On 6/8/2017 4:29 PM, Aditya Mahajan wrote: On Thu, 8 Jun 2017, Mikael P. Sundqvist wrote: And indeed, in luatex 1.05 the primes look fine again. The prime in the fraction is too low, but I take Hans' "Such is life" and use \over for the rare cases where I have primes inside frac

### Re: [NTG-context] Position of prime for derivatives

On Thu, 8 Jun 2017, Mikael P. Sundqvist wrote: And indeed, in luatex 1.05 the primes look fine again. The prime in the fraction is too low, but I take Hans' "Such is life" and use \over for the rare cases where I have primes inside fractions. I haven't followed the thread

### Re: [NTG-context] Position of prime for derivatives

ps://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ With some hands on help from Taco and luigi the compilation worked (I had not installed icu-config, freetype-config, makeinfo, which might help someone else). A

### Re: [NTG-context] Position of prime for derivatives

ring this up again, but look at the attached output of > > %%% > %\setupbodyfont[lucidaot] > > \starttext > \startformula > f'(0)=2\frac{f'(0)}{2} > \stopformula > \stoptext > %%% > > The prime in the fraction is in my opinion too low (it is

### Re: [NTG-context] Position of prime for derivatives

.nl / http://context.aanhet.net >>>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>>> wiki : http://contextgarden.net >>>> ___ >>>> >>>>

### [NTG-context] \textfraction query

Is there a way to get \textfraction to produce output in cases B or C (either one will do) as it does in case A? If I use \vfrac the output does not sit well beside \textfraction output—and I use the latter elsewhere throughout the document. \definefontfeature[fraction][frac=yes

### Re: [NTG-context] \externalfigure question

answering). in any case, I have settled for width={fraction}\textwidth' as the most convenient solution. but if you don't mind explaining: _why_ is scale' causing me a problem in the first place? what is the actual intended (and good) use of this parameter? scale= is EXTREMELY useful when combining

### Re: [NTG-context] \externalfigure question

ize of images embedded in the document, what is? width=XXX cm'? i.e.: how is this supposed to be done correctly(TM)? just use width=4cm and so understood, will do (thanks to henning, too, for answering). in any case, I have settled for width={fraction}\textwidth' as the most convenient solution.

### Re: [NTG-context] \externalfigure question

ot the way to achieve invariant and unambiguous > size of images embedded in the document, what is? width=XXX cm'? > i.e.: how is this supposed to be done correctly(TM)? > just use width=4cm and so understood, will do (thanks to henning, too, for answering). in any case, I have settled for

### Re: [NTG-context] \externalfigure question

in the document, what is? width=XXX cm'? > > i.e.: how is this supposed to be done correctly(TM)? > > just use width=4cm and so > > understood, will do (thanks to henning, too, for answering). in any > case, I have settled for width={fraction}\textwidth' as the most &

### Re: [NTG-context] \externalfigure question

rstood, will do (thanks to henning, too, for answering). in any case, I have settled for width={fraction}\textwidth' as the most convenient solution. but if you don't mind explaining: _why_ is scale' causing me a problem in the first place? what is the actual intended (and goo

### Re: [NTG-context] frac opentype feature broken by \setbreakpoints[compound]

und], when the fraction had a 3-digit (or more) numerator, the denominator stayed high as the numerator (like a superscript). Here I replaced Garamond Premier Pro with the freely available "Lato" font, to let you reproduce the problem. The outcome is different, but still erroneous: \set

### [NTG-context] frac opentype feature broken by \setbreakpoints[compound]

Hello list, I found an interference between the "frac" opentype feature and \setbreakpoints[compound], which make the former fail when you have a numerator more than 2 digit wide. I found it with Adobe Garamond Premier Pro: with \setbreakpoints[compound], when the fraction had a 3-digi

### Re: [NTG-context] Text inline fractions

slash; something like 1{}^1/_2 to mean one and a half? \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}] \starttext \m{1\vfrac{1}{2}} 1\textfraction{1/2} \stoptext Wo

### Re: [NTG-context] Text inline fractions

Thomas Fehige <mailto:tho...@fehige.de> 22. Juni 2016 um 14:34 Is there a clean and easy way in mkiv to create text inline fractions with a slash; something like 1{}^1/_2 to mean one and a half? \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fr

### Re: [NTG-context] Underbar offset

ut I'm confused about two aspects: - How can I prevent \high{} from shifting the underbar? i need to think about it .. maybe an option - How can I add more offset? underbar is derived from the parent but has its own offset and an offset is relative to the baseline and a fraction of th

### Re: [NTG-context] Underbar offset

{} from shifting the underbar? i need to think about it .. maybe an option - How can I add more offset? underbar is derived from the parent but has its own offset and an offset is relative to the baseline and a fraction of th eunit (normally the ex of a font) \setupbar[underbar][color=red,offset

### Re: [NTG-context] Is there “toffset” option for \setupbackgrounds in context

d, but if I setup toffset=5mm for \setupbackgrounds[text][text][frame=on,toffset=5mm] I have no effect? With frameoffset you can modify the four directions but how about a single direction? The background mechanism for the text areas supports only a fraction of the normal framed options

.com/general/qrcs/setup-en.pdf). > > The command reference contains only a fraction of all available > commands, there will be > a extended version but this will take a while. Many thanks for your help, Wolfgang. I only thought this was and old option (already documented there). &

to me). I’m afraid I wasn’t able to find them in the ConTeXt command list (http://www.pragma-ade.com/general/qrcs/setup-en.pdf). The command reference contains only a fraction of all available commands, there will be a extended version but this will take a while. Grepping in the source,

### Re: [NTG-context] strange output in math display mode

into another state and reconsiders the previous mathlist (of char) to become part of the fraction specification) in the end there is a math list that gets processed and at that point tex will figure out the size (it only calculates once not four times as it knows what size it's in then)

### [NTG-context] question about the \starteffect[hidden]

something. Below, the same sentence is hiding. \StartHide Here is the test file for hiding something. Below, the same sentence is hiding. Here is the test file for hiding something. Below, the same sentence is hiding. \StopHide But the horizontal bar in the fraction mode still appears. \startformula

### Re: [NTG-context] Mathdesign GD with simplefonts

figure. However, for rainbow-like colors, I use the following MP code, based on the standard resistance color code scheme. The function rainbow(f) returns a rainbow spectrum color based on the fraction f running from 0 to 1. % standard resistance color code: rainbow sequence color

### Re: [NTG-context] Mathdesign GD with simplefonts

. The function rainbow(f) returns a rainbow spectrum color based on the fraction f running from 0 to 1. % standard resistance color code: rainbow sequence color resistance_color[] ; string resistance_name[] ; resistance_color0 = (0,0,0) ; resistance_name0 = black

### Re: [NTG-context] Fraction with a fraction in the denominator

On 4 juin 2013, at 21:34, Hans Hagen pra...@wxs.nl wrote: […] ok, a new feature for SB: Thanks hans! Very nice feature. Wikified in http://wiki.contextgarden.net/Command/fraction but the output on the wiki is not correct since ConTeXt there is mkii. Best regards: OK

### Re: [NTG-context] Fraction with a fraction in the denominator

Hoi Sander, Sander wrote: This gives basically three equally long division lines The fraction line of a nested fractions is in fact shorter than that of its parent fraction, but by a very small amout. This seems to be the standard behaviour -- I tried the formula in LaTeX, and the difference

### Re: [NTG-context] Fraction with a fraction in the denominator

On 6/4/2013 3:04 PM, Sietse Brouwer wrote: Hoi Sander, Sander wrote: This gives basically three equally long division lines The fraction line of a nested fractions is in fact shorter than that of its parent fraction, but by a very small amout. This seems to be the standard behaviour -- I

### [NTG-context] Fraction with a fraction in the denominator

Hi, How can I make the subfraction in the denominator of a fraction appear smaller even though the nominator is very small? This gives basically three equally long division lines: \startfomula \frac{\mu_{Z}}{\frac{\sqrt{\VAR{Z}}{\sqrt{N_{\text{segments} \stopformula

### Re: [NTG-context] Fraction with a fraction in the denominator

Sorry, I meant to write numerator. (In Dutch it is teller/noemer ;)) On 03-06-13 19:40, Sander Maijers wrote: Hi, How can I make the subfraction in the denominator of a fraction appear smaller even though the nominator is very small? This gives basically three equally long division lines

### [NTG-context] math: size of sqrt to small for fractions

Hi list, I noticed that the sign for the square root does not adapt to the size of a fraction as in the attached minimal example. Thanks, Xenia (/home/maja/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.03.24 15:11 MKIV fmt: 2013.3.24 int: english/english system

### Re: [NTG-context] math: size of sqrt to small for fractions

On 4/9/2013 9:02 PM, Xenia wrote: Hi list, I noticed that the sign for the square root does not adapt to the size of a fraction as in the attached minimal example. In what sense? Sqrt's grow in discrete steps. Hans

### Re: [NTG-context] math: size of sqrt to small for fractions

On 09.04.2013 21:18, Hans Hagen wrote: On 4/9/2013 9:02 PM, Xenia wrote: Hi list, I noticed that the sign for the square root does not adapt to the size of a fraction as in the attached minimal example. In what sense? Sqrt's grow in discrete steps. Oh, I didn't know that. For my feelings

### Re: [NTG-context] math: size of sqrt to small for fractions

On 4/9/2013 9:25 PM, Xenia wrote: On 09.04.2013 21:18, Hans Hagen wrote: On 4/9/2013 9:02 PM, Xenia wrote: Hi list, I noticed that the sign for the square root does not adapt to the size of a fraction as in the attached minimal example. In what sense? Sqrt's grow in discrete steps. Oh, I

### Re: [NTG-context] math: size of sqrt to small for fractions

On 4/9/2013 9:25 PM, Xenia wrote: On 09.04.2013 21:18, Hans Hagen wrote: On 4/9/2013 9:02 PM, Xenia wrote: Hi list, I noticed that the sign for the square root does not adapt to the size of a fraction as in the attached minimal example. In what sense? Sqrt's grow in discrete steps. Oh, I

### Re: [NTG-context] Math typesetting problems

as it means the fraction rule will no longer guranteed to be centered around the math axis: \starttext \math{-\frac{a^{2^{2^2}}}{a} {a^{2^{2^2}}\over a}} \stoptext Also, why \frac is forcing text style fractions even in display mode? \starttext \startformula -\frac{a^{2^{2^2}}}{a} {a^{2^{2^2

### Re: [NTG-context] Math typesetting problems

) + U(t-s)) + \frac{(S(u-t) + U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}} \stopformula Thanks, Janne Roland wrote: With \dfrac it looks good. With \fraction the minus sign is on the top of the fraction. Best regards, Roland

### Re: [NTG-context] Finding documentation for ConTeXt

guess I've resigned to the fact that ConTeXt is so huge that I'll never know more than a fraction of it - so I operate on a need-to-know basis. I learn something either because I'm certain it can be done or because I've seen it at a ConTeXt meeting or heard about it (a remark by Hans is to be blamed

### Re: [NTG-context] Math typesetting problems

to know how to do that. Best, Roland I'll look into fractions later this week. All the fraction macros of ConTeXt were based on \genfrac macro from AMSTeX so, in principle, they should behave in the same manner

### Re: [NTG-context] Math typesetting problems

OK ! So you need an expert, I'm just a newbie :) I would be interested to know how to do that. Best, Roland I'll look into fractions later this week. All the fraction macros of ConTeXt were based on \genfrac macro from AMSTeX so, in principle, they should behave in the same manner

### Re: [NTG-context] Finding documentation for ConTeXt

? Is automated workflow what you are looking for? Dealing with maths? XML? What about dealing with colour? Interactivity? I guess I've resigned to the fact that ConTeXt is so huge that I'll never know more than a fraction of it - so I operate on a need-to-know basis. I learn something either

### Re: [NTG-context] Math typesetting problems

On Mon, 28 Jan 2013, Wolfgang Schuster wrote: I'll look into fractions later this week. All the fraction macros of ConTeXt were based on \genfrac macro from AMSTeX so, in principle, they should behave in the same manner. The \frac command uses \vcenter for the content while \dfrac

### Re: [NTG-context] Math typesetting problems

))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}} \stopformula Thanks, Janne Roland wrote: With \dfrac it looks good. With \fraction the minus sign is on the top of the fraction. Best regards, Roland

### Re: [NTG-context] Math typesetting problems

Am 28.01.2013 um 21:48 schrieb Aditya Mahajan adit...@umich.edu: On Mon, 28 Jan 2013, Wolfgang Schuster wrote: I'll look into fractions later this week. All the fraction macros of ConTeXt were based on \genfrac macro from AMSTeX so, in principle, they should behave in the same manner

### Re: [NTG-context] Math typesetting problems

On Mon, Jan 28, 2013 at 09:33:52PM +0100, Wolfgang Schuster wrote: The \frac command uses \vcenter for the content while \dfrac and \tfrac only set the mathstyle before placing the content with the \over primitive. The use of \vcenter seems odd here as it means the fraction rule

### [NTG-context] Math typesetting problems

is related to the positioning of minus signs in front of fractions. I would expect the minus sign to align with the horizontal line of the fraction, as it does on LaTeX. Below is an example formula to illustrate my point. The result seems to be independent of the font in use. \startformula -\frac

### Re: [NTG-context] Math typesetting problems

Le 27 janv. 13 à 12:52, Janne Junnila a écrit : Hi all, Another problem I have is related to the positioning of minus signs in front of fractions. I would expect the minus sign to align with the horizontal line of the fraction, as it does on LaTeX. Below is an example formula

### Re: [NTG-context] Images in MultiMarkdown - context - PDF

\stoptext This prints the following dimensions for your figure and the Gimp-made one, respectively: 8635829sp – 0 – 547 35982623sp – 72 – 547 Can't remember how to convert scaled points to inches, so here's some fraction juggling instead. The naturalwidth of the cross is 4.2 times larger: 35982623

### Re: [NTG-context] setupbars

, the easiest solution would be if the code itself could sort out the difference between having been given a fraction or a length. Hans van der Meer On 8 jul. 2012, at 22:44, Wolfgang Schuster wrote: Am 08.07.2012 um 22:24 schrieb Meer, H. van der: This gives an error: \starttext \setupbars

### Re: [NTG-context] setupbars

sort out the difference between having been given a fraction or a length. Hans van der Meer On 8 jul. 2012, at 22:44, Wolfgang Schuster wrote: Am 08.07.2012 um 22:24 schrieb Meer, H. van der: This gives an error: \starttext \setupbars[rulethickness=4pt] \stoptext ! LuaTeX error main ctx

### Re: [NTG-context] simplefonts: math in headers

] \definesimplefonttypeface[mainface][cambria][style=math] \setupbodyfont[mainface] Well: header math is in unbold cambria, body text in courier or something like this, and the math font features are not used (tiny parentheses around matrices, fraction denominators and numerators are shrunk instead of using small

### Re: [NTG-context] simplefonts: math in headers

][Ubuntu] [style=sans] \definesimplefonttypeface[mainface][cambria][style=math] \setupbodyfont[mainface] Well: header math is in unbold cambria, body text in courier or something like this, and the math font features are not used (tiny parentheses around matrices, fraction denominators

### Re: [NTG-context] simplefonts: math in headers

, fraction denominators and numerators are shrunk instead of using small glyphs) \setfalse\completeboldmathstrategy \usemodule[simplefonts] \setmainfont[Cambria] \setmathfont[Cambria] \setsansfont[Ubuntu] I’ll upload a new version of the module. too slim parentheses