Re: [NTG-context] Combining colors with matrices

2020-07-15 Thread David Eric Cox
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] Fwd: Continued fractions in ConTeXt

2020-06-29 Thread Jairo A. del Rio
ntinued > fractions:| > > || > > > > |% > https://tex.stackexchange.com/questions/73195/how-to-typeset-a-continued-fraction-in-the-following-format > > > \documentclass{article}\usepackage{amsmath}\begin{document}\newcommand*{\cofrac}[2]{%{%\rlap{$\dfrac{1}{\p

Re: [NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-29 Thread Hans Hagen
On 6/28/2020 6:06 PM, Jairo A. del Rio wrote: |Hi list! I've tried adapting the following code for continued fractions:| || |%https://tex.stackexchange.com/questions/73195/how-to-typeset-a-continued-fraction-in-the-following-format \documentclass{article}\usepackage{amsmath}\begin{document

[NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-28 Thread Jairo A. del Rio
Hi list! I've tried adapting the following code for continued fractions: %https://tex.stackexchange.com/questions/73195/how-to-typeset-a-continued-fraction-in-the-following-format \documentclass{article}\usepackage{amsmath} \begin{document}\newcommand*{\cofrac}[2]{% {% \rlap{$\dfrac{1

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

2020-04-17 Thread Hans Hagen
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)

2019-10-08 Thread Hans Hagen
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

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

2019-10-08 Thread mf
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 local startTextFraction = "$\

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

2019-10-07 Thread mf
Hello, i'm using XML and i find useful specifying a fraction made of text this way: text for numerator/text for denominator With some lua, i can transform it into \frac{\text{text for numerator}}{\text{text for denominator}} which typesets something like this: text for numerator

[NTG-context] inline fractions

2019-06-26 Thread Alan Bowen
The following mwe \definefontfeature[fraction][frac=yes] \definehighlight[textfraction][style={\feature[+][fraction]}] \starttext a fraction \m{\frac{1}{n}}, \textfraction{1/n}, \vulgarfraction{1}{n} in the text \stoptext works for all but \textfraction in the latest beta (luatex, luametatex

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-11 Thread mf
\egroup} \def\NoKerning#1{\dontleavehmode\bgroup\resetcharacterkerning #1\egroup} \starttext \feature[+][frac]% Some ligatures: float, finance, affine; a fraction: 1/4. \blank Modified kerning: \Narrow{Some ligatures: float, finance, affine; a fraction: 1/4.} \Wide{Some ligatures: float, finance

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-10 Thread Hans Hagen
t;¼" glyph (with "frac" feature switched on) "1", [kerning], "/", [kerning], "4" => distinct "1", "/", "4" glyphs (always with "frac" feature switched on) MWE: \definecharacterkerning[narrow][factor=-.015

Re: [NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-10 Thread mf
} \def\NoKerning#1{\bgroup\resetcharacterkerning #1\egroup} \starttext \feature[+][frac]% Some ligatures: float, finance, affine; a fraction: 1/4. \blank Modified kerning: \Narrow{Some ligatures: float, finance, affine; a fraction: 1/4.} \Wide{Some ligatures: float, finance, affine; a fraction

[NTG-context] modifying kerning breaks opentype ligatures (and other features)

2018-12-10 Thread mf
feature switched on) "1", [kerning], "/", [kerning], "4" => distinct "1", "/", "4" glyphs (always with "frac" feature switched on) MWE: \definecharacterkerning[narrow][factor=-.015] \definecharacterkerning[wide][fa

Re: [NTG-context] what defines the font size?

2018-10-19 Thread luigi scarso
.tex ) This relation between unitsPerEm and FontMatrix is enforced in CFF2 (the new "font variations" , https://docs.microsoft.com/en-us/typography/opentype/spec/cff2): """ The Top DICT FontMatrix operator is required if the unitsPerEm value in the 'head' table is other than 1000. I

Re: [NTG-context] what defines the font size?

2018-10-18 Thread Hans Hagen
andard tex but it's more a gimmick than useful: \starttext % at : fraction of design size % sa : fraction of current bodyfont size % ht : fraction of font ascender % cp : fraction of height of glyph X \starttexdefinition ShowThem #1#2#3 \startoverlay {\color[trace:r]{\definedfont[#1*

Re: [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Mikael P. Sundqvist
and this $f$? (see also $k$?, $x$? and $z$?) >>> >>> There might be more problems (like between $t$ and the parenthesis in >>> $e^t$) is too small. >>> >>> The space between $dx$ and the bar is too small: >>> \startformula >>> \

Re: [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Mikael P. Sundqvist
t >> \startTEXpage[offset=3bp] >> (Look at this $f$) and this $f$? (see also $k$?, $x$? and $z$?) >> >> There might be more problems (like between $t$ and the parenthesis in >> $e^t$) is too small. >> >> The space between $dx$ and the bar is too small: >>

Re: [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Hans Hagen
x\,dx\Bigr|, \stopformula Look at the $f$ and the bar: \startformula \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 $

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

2018-03-10 Thread Mikael P. Sundqvist
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?

2017-07-13 Thread Hans Hagen
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?

2017-07-12 Thread Henri Menke
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-07-12 Thread Alan Bowen
, 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?

2017-07-10 Thread Henri Menke
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?

2017-07-10 Thread Alan Bowen
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

2017-06-08 Thread Hans Hagen
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

2017-06-08 Thread Aditya Mahajan
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

2017-06-08 Thread Mikael P. Sundqvist
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

2017-06-04 Thread Otared Kavian
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

2017-06-04 Thread Mikael P. Sundqvist
.nl / http://context.aanhet.net >>>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>>> wiki : http://contextgarden.net >>>> ___ >>>> >>>>

[NTG-context] \textfraction query

2017-02-18 Thread Alan Bowen
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

2017-02-17 Thread Hans Hagen
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

2017-02-17 Thread Hans Hagen
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

2017-02-17 Thread j. van den hoff
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

2017-02-17 Thread Alan Braslau
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

2017-02-17 Thread j. van den hoff
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]

2017-02-14 Thread Hans Hagen
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]

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] Text inline fractions

2016-06-25 Thread Thomas Fehige
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

2016-06-22 Thread Wolfgang Schuster
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

2016-05-25 Thread Wolfgang Schuster
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

2016-05-24 Thread Hans Hagen
{} 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

2016-02-26 Thread Wolfgang Schuster
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

Re: [NTG-context] two issues with interactive hyperlinks (please comment)

2016-02-24 Thread Pablo Rodriguez
.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). &

Re: [NTG-context] two issues with interactive hyperlinks (please comment)

2016-02-24 Thread Wolfgang Schuster
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

2015-12-23 Thread Hans Hagen
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]

2015-11-22 Thread Jeong Dal
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] \math or $ doesn't work.

2015-06-02 Thread Otared Kavian
, but actually I wonder why should TeX put a horizontal line between 1 and 2 in your code? What you are typesetting in mathmode is just 8 followed by 1 in exponent (uppserscript) and 2 in subscript, therefore there shouldn’t be any fraction bar between 1 and 2. If the font you use has

Re: [NTG-context] Changing font for math function

2015-05-12 Thread Hans Hagen
' for instance). 5. It avoids the user having to add \kern\zeropoint to prevent vertical alignment to the middle of the fraction bar when used inside \mathop for one-character function names (if one wants to call its function 'd' for instance). That \mathlabel should replace \mfunction which should

[NTG-context] Changing font for math function

2015-05-12 Thread Maggyero
to add \kern\zeropoint to prevent vertical alignment to the middle of the fraction bar when used inside \mathop for one-character function names (if one wants to call its function 'd' for instance). That \mathlabel should replace \mfunction which should be removed, and \mfunctionlabeltext should

Re: [NTG-context] siunitx feature in unit module

2015-03-03 Thread Hans Hagen
} Thank you. \si[per-mode=symbol]{\metre\per\second} produce m/s \unit{10 meter per second} \si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s} I think it is not possible with \unit{} Do you know if there is the project to implement this feature? currently not on the agenda

Re: [NTG-context] siunitx feature in unit module

2015-03-03 Thread Andrea De Michele
\second} produce m/s \unit{10 meter per second} \si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s} I think it is not possible with \unit{} Do you know if there is the project to implement this feature? All the best. -- Andrea De Michele

Re: [NTG-context] siunitx feature in unit module

2015-03-01 Thread Romain Diss
=fraction]{\metre\per\second} produce \frac{m}{s} I think it is not possible with \unit{} All the best. -- Romain Diss ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] siunitx feature in unit module

2015-02-28 Thread Andrea De Michele
Hi, with siunitx LaTeX package its possible to obtain physics units like m/s printed in different way changing one option: e.g. \si{\metre\per\second} produce ms^{-1} \si[per-mode=symbol]{\metre\per\second} produce m/s \si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s} have the unit

[NTG-context] Change linewidth of a table

2014-09-17 Thread Fabrice Couvreur
\bTD \eTD \bTD \eTD \eTR \bTR \bTD$\frac{\sqrt{324}}{2}$ \eTD \bTD \eTD \bTD $27^0$ \eTD \bTD \eTD \bTD \eTD \bTD Numérateur de la fraction irréductible égale à $\frac{9\,261}{33\,957}$ \eTD

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

Re: [NTG-context] \setupmathradical[sqrt] crunches denominator in an \over fraction

2014-04-24 Thread Hans Hagen
On 4/22/2014 1:53 AM, Sanjoy Mahajan wrote: I have been trying out the newish \setupmathradical[sqrt][alternative=mp], which has been very nice because of the fine control over the radical sign. I've noticed that it crunches the denominator in \sqrt{a\over b} For example: \starttext

Re: [NTG-context] \setupmathradical[sqrt] crunches denominator in an \over fraction

2014-04-24 Thread Sanjoy Mahajan
Hans Hagen pra...@wxs.nl writes: indeed. this is what (sort of) happens in case of a plugged in renderer: \sqrt{#1} - ...\mathstylehbox{#1}... - ...\hbox{\stylecommand #1}... when #a = a \over b the style gets applied to the a only as \over creates two (pseudo) groups i.e. the \over

[NTG-context] \setupmathradical[sqrt] crunches denominator in an \over fraction

2014-04-21 Thread Sanjoy Mahajan
I have been trying out the newish \setupmathradical[sqrt][alternative=mp], which has been very nice because of the fine control over the radical sign. I've noticed that it crunches the denominator in \sqrt{a\over b} For example: \starttext \placeformula\startformula \sqrt{k\over m}\quad

Re: [NTG-context] Problem with integral sign

2014-02-09 Thread Marco Patzer
On 2014–02–09 Jaroslav Hajtmar wrote: How can type big integral sign to result looked good? Here is my example: \startformula \int \frac{P_n(x)}{Q_m(x)} \, \mathrm{d}x, \quad nm \stopformula I don't know how to reduce the space between the integral sign and the fraction (I assume that's

[NTG-context] large delimiters for equation

2013-11-25 Thread Roger Mason
Hello, I'd like to have delimiters that match the height of the fraction in an expression like this: \startformula c\Delta T = t\big{(} \frac{c}{v_s} - \frac{c}{v_f} \big{)}. \stopformula I looked in the docs and tried a few likely solutions without luck. Please accept my apologies

Re: [NTG-context] large delimiters for equation

2013-11-25 Thread Aditya Mahajan
Hello, I'd like to have delimiters that match the height of the fraction in an expression like this: \startformula c\Delta T = t\big{(} \frac{c}{v_s} - \frac{c}{v_f} \big{)}. \stopformula I looked in the docs and tried a few likely solutions without luck. \left( \frac \right) Aditya

Re: [NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-26 Thread Khaled Hosny
-tuned example is obviously nicer. it looks like a font issue to me .. i could hack a solution but prefer not to do that (the less exceptions we have the better) Not a font issue. ConTeXt is using the fraction slash (which is intended to be used with vulgar fractions) not the regular slash

Re: [NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-26 Thread Hans Hagen
On 10/26/2013 3:53 PM, Alan BRASLAU wrote: Unicode sure makes things easy: U+002F / SOLIDUS SLASH U+2044 ⁄ FRACTION SLASH U+2215 ∕ DIVISION SLASH U+FF0F / FULLWIDTH SOLIDUS FULLWIDTH SLASH Of course, we key in ascii / (0x2f). From how these display

Re: [NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-25 Thread Alan BRASLAU
On Fri, 25 Oct 2013 07:23:43 +0900 Hans Hagen pra...@wxs.nl wrote: it looks like a font issue to me .. i could hack a solution but prefer not to do that (the less exceptions we have the better) Hans So, who can fix the font issue? (tex/texmf/fonts/opentype/public/xits/xits-math.otf) Alan

Re: [NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-25 Thread Wolfgang Schuster
Am 25.10.2013 um 10:08 schrieb Alan BRASLAU alan.bras...@cea.fr: On Fri, 25 Oct 2013 07:23:43 +0900 Hans Hagen pra...@wxs.nl wrote: it looks like a font issue to me .. i could hack a solution but prefer not to do that (the less exceptions we have the better) Hans So, who can fix the

Re: [NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-25 Thread Alan BRASLAU
On Fri, 25 Oct 2013 10:14:45 +0200 Wolfgang Schuster wolfgang.schus...@gmail.com wrote: So, who can fix the font issue? (tex/texmf/fonts/opentype/public/xits/xits-math.otf) https://github.com/khaledhosny/xits-math/issues OK, reported to Khaled. Thanks Alan

Re: [NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-25 Thread Khaled Hosny
not to do that (the less exceptions we have the better) Not a font issue. ConTeXt is using the fraction slash (which is intended to be used with vulgar fractions) not the regular slash. Regards, Khaled ___ If your

Re: [NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-25 Thread Hans Hagen
a solution but prefer not to do that (the less exceptions we have the better) Not a font issue. ConTeXt is using the fraction slash (which is intended to be used with vulgar fractions) not the regular slash. the problem is that (last time i looked into this) all math fonts had it differently

Re: [NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-24 Thread Hans Hagen
On 10/24/2013 2:46 PM, H. Özoguz wrote: \setupbodyfont [dejavu,12pt] \starttext $a/b$ $1/2$ $π/3$ \stoptext Is this indeed the desired spacing? What do others think? Thanks. I think you are right, I don't know if this is really desired, but I don't think so. Escpecially one gets problems

[NTG-context] dejavu: inline math fraction spacing too tight?

2013-10-23 Thread Alan BRASLAU
Hello, Using the dejavu font, inline math fractions (e.g. $a/b$) look to me to be spaced too tightly. Below are some minimal examples: \setupbodyfont [dejavu,12pt] \starttext $a/b$ $1/2$ $π/3$ \stoptext Is this indeed the desired spacing? What do others think? Thanks. Alan

Re: [NTG-context] Mathdesign GD with simplefonts

2013-10-07 Thread Alan BRASLAU
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

2013-10-07 Thread Magnus J
. 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

2013-06-05 Thread Otared Kavian
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

2013-06-04 Thread Sietse Brouwer
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

2013-06-04 Thread Hans Hagen
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

2013-06-03 Thread Sander Maijers
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

2013-06-03 Thread Sander Maijers
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

2013-04-09 Thread Xenia
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

2013-04-09 Thread Hans Hagen
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

2013-04-09 Thread Xenia
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

2013-04-09 Thread Hans Hagen
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

2013-04-09 Thread Hans Hagen
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

2013-04-06 Thread Hans Hagen
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

2013-01-28 Thread Janne Junnila
) + 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

2013-01-28 Thread Mari Voipio
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

2013-01-28 Thread Aditya Mahajan
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

2013-01-28 Thread Wolfgang Schuster
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

2013-01-28 Thread Keith J. Schultz
? 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

2013-01-28 Thread Aditya Mahajan
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

2013-01-28 Thread Otared Kavian
))^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

2013-01-28 Thread Wolfgang Schuster
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

2013-01-28 Thread Khaled Hosny
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

2013-01-27 Thread Janne Junnila
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

2013-01-27 Thread Roland Thiers
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

2012-11-21 Thread Guy Stalnaker
\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

2012-07-09 Thread Meer, H. van der
, 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

2012-07-08 Thread Meer, H. van der
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

2011-12-16 Thread Philipp A.
] \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

2011-12-16 Thread Hans Hagen
][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

2011-12-16 Thread Wolfgang Schuster
, 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

  1   2   >