[NTG-context] \frac and vertical spacing issue in mathfractions

2020-06-06 Thread Alan Bowen
In the current beta ( LuaMetaTeX, Version 2.06.05), \m{\frac{28}{8\times29}} puts the numerator and denominator too close to the dividing line. Similarly for the variants of \frac and \over. \m{{28}\over{8\times29}} Alan

Re: [NTG-context] open type feature "frac"

2018-09-28 Thread Hans Hagen
On 9/28/2018 10:56 PM, Ulrike Fischer wrote: Due to a question on tex.sx (https://tex.stackexchange.com/questions/452969/luatex-fontfeaturefractions-on-turns-first-digits-into-superscripts) I looked again (see https://www.mail-archive.com/ntg-context@ntg.nl/msg84822.html) at the frac feature

[NTG-context] open type feature "frac"

2018-09-28 Thread Ulrike Fischer
Due to a question on tex.sx (https://tex.stackexchange.com/questions/452969/luatex-fontfeaturefractions-on-turns-first-digits-into-superscripts) I looked again (see https://www.mail-archive.com/ntg-context@ntg.nl/msg84822.html) at the frac feature. The output is still not really satisfactory

Re: [NTG-context] frac font feature doesn't work as expected

2017-04-05 Thread Ulrike Fischer
Am Wed, 5 Apr 2017 13:00:29 +0200 schrieb luigi scarso: > if you see > fonts > otf chain > feature 'frac', type > 'gsub_contextchain', chain lookup 's_s_7': is not yet supported (1) > then ... it need to be supported. Yes, that's what I see ;-(. -- Ul

Re: [NTG-context] frac font feature doesn't work as expected

2017-04-05 Thread luigi scarso
On Wed, Apr 5, 2017 at 10:15 AM, Ulrike Fischer <ne...@nililand.de> wrote: > \starttext > > \font\test={file:linlibertine_r.otf:+frac} > \test 1/2 3/4 5/6 7/8 9/10 11/12 31415/27182 1000/100 > \stoptext > > gives as output > > ½ 3¾ 5⅚ 7⅜ 9/10 1⅟12 31415/27182

[NTG-context] frac font feature doesn't work as expected

2017-04-05 Thread Ulrike Fischer
\starttext \font\test={file:linlibertine_r.otf:+frac} \test 1/2 3/4 5/6 7/8 9/10 11/12 31415/27182 1000/100 \stoptext gives as output ½ 3¾ 5⅚ 7⅜ 9/10 1⅟12 31415/27182 1000/100 (I couldn't build an example without the primitive command. After \definefontfeature[frac][frac=yes

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

2017-02-14 Thread Hans Hagen
On 2/13/2017 4:47 PM, MF wrote: 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[compo

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

2017-02-13 Thread MF
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] Bug in the latest beta: \frac

2015-03-30 Thread Alan BRASLAU
On Sat, 28 Mar 2015 20:29:15 +0100 Otared Kavian ota...@gmail.com wrote: Hi Hans, I just tried the new beta (ConTeXt ver: 2015.03.28 16:30 MKIV beta fmt: 2015.3.28 int: english/english) It gives an error with the following minimal example: \starttext \startformula \frac{2}{4

[NTG-context] Bug in the latest beta: \frac

2015-03-28 Thread Otared Kavian
Hi Hans, I just tried the new beta (ConTeXt ver: 2015.03.28 16:30 MKIV beta fmt: 2015.3.28 int: english/english) It gives an error with the following minimal example: \starttext \startformula \frac{2}{4} \stopformula \stoptext The error message is: \math_frac_command -\cclf_mathfraction

Re: [NTG-context] \setupformulas and \frac give small symbols

2014-10-16 Thread Mikael P. Sundqvist
smaller letters in \frac if \setupformulas[align=flushleft] is applied. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft] \startformula z=\frac{x}{y} \stopformula \stoptext

Re: [NTG-context] \setupformulas and \frac give small symbols

2014-10-16 Thread Mikael P. Sundqvist
...@gmail.com wrote: Hi, with a standalone installation updated today, I get smaller letters in \frac if \setupformulas[align=flushleft] is applied. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft

Re: [NTG-context] \setupformulas and \frac give small symbols

2014-10-16 Thread Hans Hagen
On 10/16/2014 1:29 PM, Mikael P. Sundqvist wrote: Sorry, another problem appear (maybe was apparent before as well): fixed in next beta ... there might be a few more cases left Hans -

[NTG-context] \setupformulas and \frac give small symbols

2014-10-15 Thread Mikael P. Sundqvist
Hi, with a standalone installation updated today, I get smaller letters in \frac if \setupformulas[align=flushleft] is applied. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft] \startformula z=\frac{x

Re: [NTG-context] \setupformulas and \frac give small symbols

2014-10-15 Thread Otared Kavian
ver: 2014.05.21 22:04 MKIV beta fmt: 2014.6.27 int: english/english Best regards: OK On 15 Oct 2014, at 19:03, Mikael P. Sundqvist mic...@gmail.com wrote: Hi, with a standalone installation updated today, I get smaller letters in \frac if \setupformulas[align=flushleft] is applied

Re: [NTG-context] frac and tfrac with sqrt

2014-10-09 Thread Keith J. Schultz
Am 07.10.2014 um 09:20 schrieb Hans Hagen pra...@wxs.nl: On 10/7/2014 7:33 AM, Mikael P. Sundqvist wrote: On Mon, Oct 6, 2014 at 11:32 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: \setupmathradical[alternative=default] Very good! Hans, will the default be default in next

Re: [NTG-context] frac and tfrac with sqrt

2014-10-07 Thread Hans Hagen
On 10/7/2014 7:33 AM, Mikael P. Sundqvist wrote: On Mon, Oct 6, 2014 at 11:32 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: \setupmathradical[alternative=default] Very good! Hans, will the default be default in next beta? :) no, but there will be different settings ... the

Re: [NTG-context] frac and tfrac with sqrt

2014-10-06 Thread Mikael P. Sundqvist
On Fri, Oct 3, 2014 at 1:30 PM, Mikael P. Sundqvist mic...@gmail.com wrote: Hi! Is this (see frac.pdf) the expected output of \frac and \tfrac in combination with \sqrt? To me the \sqrt{3} looks too big in \tfrac. I attach also the output from the corresponding latex document, having

Re: [NTG-context] frac and tfrac with sqrt

2014-10-06 Thread Aditya Mahajan
On Mon, 6 Oct 2014, Mikael P. Sundqvist wrote: On Fri, Oct 3, 2014 at 1:30 PM, Mikael P. Sundqvist mic...@gmail.com wrote: Hi! Is this (see frac.pdf) the expected output of \frac and \tfrac in combination with \sqrt? To me the \sqrt{3} looks too big in \tfrac. I attach also the output from

Re: [NTG-context] frac and tfrac with sqrt

2014-10-06 Thread Mikael P. Sundqvist
On Mon, Oct 6, 2014 at 11:32 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: \setupmathradical[alternative=default] Very good! Hans, will the default be default in next beta? :) Best regards, Mikael ___ If

[NTG-context] frac and tfrac with sqrt

2014-10-03 Thread Mikael P. Sundqvist
Hi! Is this (see frac.pdf) the expected output of \frac and \tfrac in combination with \sqrt? To me the \sqrt{3} looks too big in \tfrac. I attach also the output from the corresponding latex document, having the result I expect. Best regards, Mikael PS Compilation done with latest standalone

Re: [NTG-context] numerator is too high in \frac{3}{4}, in palatino

2014-05-17 Thread Sanjoy Mahajan
Hans Hagen pra...@wxs.nl writes: these are font properties and using a consistent opentype math versus a bunch of loosely related type one fonts makes a difference But shouldn't TeXGyrePagellaMath qualify? I've added: \starttext $\displaystyle 1+{2g\over3}+{2\over3}$ \blank

Re: [NTG-context] numerator is too high in \frac{3}{4}, in palatino

2014-05-06 Thread Hans Hagen
On 5/2/2014 4:46 AM, Sanjoy Mahajan wrote: I've noticed the following issue with how high the numerator is placed, but only when using Palatino: \setupbodyfont[palatino] \starttext \startformula {3\over4}\quad {1\over2} \stopformula \stoptext The 3 and the 1 sit quite high above the division

Re: [NTG-context] numerator is too high in \frac{3}{4}, in palatino

2014-05-05 Thread Sanjoy Mahajan
I just compared MkII and MkIV in this respect, and the MkII fraction looks more symmetric (more correct) than the MkIV version. Here is the MkII code: \usetypescript[palatino][ec] \setupbodyfont[palatino] \starttext \startformula {3\over4}\quad {1\over2} \stopformula \stoptext I've attached

[NTG-context] numerator is too high in \frac{3}{4}, in palatino

2014-05-01 Thread Sanjoy Mahajan
I've noticed the following issue with how high the numerator is placed, but only when using Palatino: \setupbodyfont[palatino] \starttext \startformula {3\over4}\quad {1\over2} \stopformula \stoptext The 3 and the 1 sit quite high above the division line, esp. in comparison with the gap below

[NTG-context] \frac broken in current beta

2013-04-16 Thread Marco Patzer
Hi, \starttext \math{\frac12} \stoptext gives ! LuaTeX error [string \directlua ]:1: attempt to call field 'math_frac' (a n il value) stack traceback: [string \directlua ]:1: in main chunk. Marco signature.asc Description: Digital signature

Re: [NTG-context] \frac broken in current beta

2013-04-16 Thread Alan BRASLAU
On Tue, 16 Apr 2013 09:52:08 +0200 Marco Patzer home...@lavabit.com wrote: Hi, \starttext \math{\frac12} \stoptext gives ! LuaTeX error [string \directlua ]:1: attempt to call field 'math_frac' (a n il value) stack traceback: [string \directlua ]:1: in main chunk.

Re: [NTG-context] \frac broken in current beta

2013-04-16 Thread Hans Hagen
On 4/16/2013 9:52 AM, Marco Patzer wrote: Hi, \starttext \math{\frac12} \stoptext gives ! LuaTeX error [string \directlua ]:1: attempt to call field 'math_frac' (a n il value) stack traceback: [string \directlua ]:1: in main chunk. ah, missing file, i'll upload a new zip (first

Re: [NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-04 Thread Wolfgang Schuster
Am 03.12.2011 um 19:56 schrieb Paul Menzel: Dear ConTeXt folks, using the following minimal example \starttext Using \type{\choose} in text $n \choose \frac{n}2$. \startformula n \choose \frac{n}2 \stopformula \CONTEXT\ \contextmark

Re: [NTG-context] [solved] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-04 Thread Paul Menzel
Am Sonntag, den 04.12.2011, 09:52 +0100 schrieb Wolfgang Schuster: Am 03.12.2011 um 19:56 schrieb Paul Menzel: using the following minimal example \starttext Using \type{\choose} in text $n \choose \frac{n}2$. \startformula n \choose \frac{n}2

[NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-03 Thread Paul Menzel
Dear ConTeXt folks, using the following minimal example \starttext Using \type{\choose} in text $n \choose \frac{n}2$. \startformula n \choose \frac{n}2 \stopformula \CONTEXT\ \contextmark\ \contextversion\ with \texenginename

Re: [NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-03 Thread dalyoung
Dear Paul, using the following minimal example \starttext Using \type{\choose} in text $n \choose \frac{n}2$. Please try $\displaystyle{n \choose \frac{n}2}$. It is working for me. I hope it is what you are looking for. best regards, Dalyoung

[NTG-context] Context and metapost: using \frac

2011-04-26 Thread mat
Hi I am using context to run a metapost graph. I am however unable to insert a label with \frac, since this is not pure Tex but Latex. This seems to be a known problem for metapost: -Seems for metapost only, one should add %latex (http://ryanmlayer.wordpress.com/tag/metapost/). -I saw also

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
$) scaled 1.00, (0, 10)); label.top(textext($\displaystyle \frac{\sigma_t}{a}$) scaled 1.00, (1, 1)); works ok (only tested mkiv); also \frac is available in context Hans - Hans

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat I tried then to simply add \usemodule[newmat] and compile with context, but did not work... Code below, error message below below... Thanks a lot Matthieu Code: \usemodule[newmat] \starttext \setupMPpage[offset

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
ubuntu). no, use the 'context' command as texexec is for mkii I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible command) btw, in mkiv there is no m-newmath I tried

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
what is wrong? I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible command) btw, in mkiv there is no m-newmath I tried then to simply add \usemodule[newmat] and compile

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Andreas Harder
? Would you be so nice and send complete file, so I can check what is wrong? I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible command) btw, in mkiv there is no m-newmath I

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Matthieu Stigler
with the code you sent... you didn't? Would you be so nice and send complete file, so I can check what is wrong? I saw also that, as you mention, context has a \frac: http://wiki.contextgarden.net/Math_with_newmat indeed, \frac is already there for a long time (ams compatible command) btw, in mkiv

Re: [NTG-context] Context and metapost: using \frac

2011-04-26 Thread Hans Hagen
On 26-4-2011 5:17, Matthieu Stigler wrote: MTXrun | current version: 2009.11.26 16:2 that's rather old for a luatex/context combination on the wiki you can find how to install minimals (takes a few minutes only, no compilation needed) Hans

[NTG-context] \frac with Cambria

2010-07-12 Thread luigi scarso
\usetypescript[cambria] \setupbodyfont[cambria,8pt] \starttext \inlinemath{\displaystyle\frac{(1-0.1) - 0.89803921568627}{1-0.1}}% {\switchtobodyfont[modern,8pt] \inlinemath{\displaystyle\frac{(1-0.1) - 0.89803921568627}{1-0.1}}} \stoptext IMO the numerator with cambria is too much distant from

[NTG-context] Frac (was \everymath problem)

2009-08-20 Thread Aditya Mahajan
On Wed, 19 Aug 2009, Wolfgang Schuster wrote: And with \frac it can be configured at context low level (why no key for \setupmathematics?) \chardef\mathfracmode=1 % 0=auto, 1=displaystyle, 2=textstyle, 3=scriptstyle, 4=scriptscriptstyle, 5=mathstyle $\frac{a}{b}$ I am thinking

Re: [NTG-context] The \frac macro.

2007-04-23 Thread luigi scarso
Is there another macro in Context called \frac and if so how is it called? I use (e)grep in this situations, it's more texnician. luigi ___ If your question is of interest to others as well, please add an entry

[NTG-context] The \frac macro.

2007-04-22 Thread John R. Culleton
Knuth defines a macro for simple fractions such as 3/4 etc. and calls it \frac: \def\frac#1/#2{\leavevmode \kern.1em \raise .5ex \hbox{\the\scriptfont0 #1}% \kern-.1em $/$% \kern -.15em \lower .25ex \hbox{\the\scriptfont0 #2}}% The call is e.g., \frac 3/4. This works fine in Context. However

Re: [NTG-context] The \frac macro.

2007-04-22 Thread Mojca Miklavec
On 4/22/07, John R. Culleton [EMAIL PROTECTED] wrote: Knuth defines a macro for simple fractions such as 3/4 etc. and calls it \frac: \def\frac#1/#2{\leavevmode \kern.1em \raise .5ex \hbox{\the\scriptfont0 #1}% \kern-.1em $/$% \kern -.15em \lower .25ex \hbox{\the\scriptfont0 #2}}% The call

Re: [NTG-context] The \frac macro.

2007-04-22 Thread Aditya Mahajan
On Sun, 22 Apr 2007, John R. Culleton wrote: Knuth defines a macro for simple fractions such as 3/4 etc. and calls it \frac: \def\frac#1/#2{\leavevmode \kern.1em \raise .5ex \hbox{\the\scriptfont0 #1}% \kern-.1em $/$% \kern -.15em \lower .25ex \hbox{\the\scriptfont0 #2}}% The call is e.g

Re: [NTG-context] how to do something like ^1/_2 with frac?

2007-01-29 Thread Aditya Mahajan
On Fri, 26 Jan 2007, Taco Hoekwater wrote: Hubertus wrote: Hi all again, I try to do something like 1/2 with an upper 1 and a lower 2. The code below still doesn't quite work. \def\nfrac#1#2{\leavevmode\kern.1em% \raise.5ex\hbox{\scriptsize #1}% \kern-.1em/\kern-.15em%

[NTG-context] how to do something like ^1/_2 with frac?

2007-01-26 Thread Hubertus
Hi all again, I try to do something like 1/2 with an upper 1 and a lower 2. The code below still doesn't quite work. \def\nfrac#1#2{\leavevmode\kern.1em% \raise.5ex\hbox{\scriptsize #1}% \kern-.1em/\kern-.15em% \lower.25ex\hbox{\scriptsize #2}} Help would be very much appreciated!

Re: [NTG-context] how to do something like ^1/_2 with frac?

2007-01-26 Thread Taco Hoekwater
Hubertus wrote: Hi all again, I try to do something like 1/2 with an upper 1 and a lower 2. The code below still doesn't quite work. \def\nfrac#1#2{\leavevmode\kern.1em% \raise.5ex\hbox{\scriptsize #1}% \kern-.1em/\kern-.15em% \lower.25ex\hbox{\scriptsize #2}} Such a macro is

Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-04 Thread Hans Hagen
Hi Brooks, Then, a couple of lines after that, there's the second definition for \frac, which is the one that needed patching. This one, unlike the first definition, is wrapped in \mathematics so that it can work outside math mode. So I'm wondering why only \frac has this second definition

Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-03 Thread Hans Hagen
Hi Brooks The following simple file works fine if I comment out the \usemodule[newmat] line, but crashes if I put it in. \usemodule[newmat] \starttext \placeformula \startformula \eqalign{\frac{1}{2} \cr} \stopformula \stoptext ah ... the alignment lookahead problem, i think we

Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-03 Thread Brooks Moses
At 01:40 PM 8/2/2004, you wrote: ah ... the alignment lookahead problem, i think we can safely patch \mathematics to catch lookahead as well as make frac more robust for unwanted expansion \usemodule[newmat] \unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}{#2}}} \def

Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-03 Thread Hans Hagen Outside
Brooks Moses wrote: At 01:40 PM 8/2/2004, you wrote: ah ... the alignment lookahead problem, i think we can safely patch \mathematics to catch lookahead as well as make frac more robust for unwanted expansion \usemodule[newmat] \unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1

Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-03 Thread Brooks Moses
to support using math constructs such as \frac do they need patching? they don't use \mathematics afaik They don't need patching in the sense of fixing a bug, no -- it's more a matter of consistency in behavior. What I see is that there's a list of definitions for \frac, \dfrac, \tfrac

[NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-02 Thread Brooks Moses
The following simple file works fine if I comment out the \usemodule[newmat] line, but crashes if I put it in. \usemodule[newmat] \starttext \placeformula \startformula \eqalign{\frac{1}{2} \cr} \stopformula \stoptext - Brooks ___ ntg