Re: [NTG-context] Equation alignment

2021-09-07 Thread Wolfgang Schuster via ntg-context
Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 14:29: Dear List, The following example of equation alignment copied from An Excursion is not reproducible under my context 2021.03.05 shipped with texlive 2021: \starttext \startformula \eqalign{ ax^2+bx+c &= 0 \cr x &= \fra

[NTG-context] Equation alignment

2021-09-07 Thread Sylvain Hubert via ntg-context
Dear List, The following example of equation alignment copied from An Excursion is not reproducible under my context 2021.03.05 shipped with texlive 2021: \starttext \startformula \eqalign{ ax^2+bx+c &= 0 \cr x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} \cr } \stopformula \stoptext Both am

[NTG-context] Bug with mathalignment and columns

2021-08-23 Thread Jack Hill via ntg-context
= 1, 98, 1 do context(lorum) end \stopluacode \startformula \startmathalignment[n=1] \NC y = ax \NR \NC a^2 + b^2 = c^2 \NR \NC x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \NR \stopmathalignment \stopformula \stopcolumns \stoptext Adding text after the formula seems to fix the issue, but that mea

Re: [NTG-context] font feature

2021-07-08 Thread Hans Hagen
On 7/8/2021 9:46 AM, Thomas A. Schmitz wrote: Hi all, is it possible to subtract a featureset that has been applied to a fontfamily? MWE: \definefontfeature   [f:frac]   [frac=yes,onum=no,pnum=no] \definefontfeature   [f:onum]   [onum=yes,pnum=yes] \definefontfamily [test] [serif

[NTG-context] font feature

2021-07-08 Thread Thomas A. Schmitz
Hi all, is it possible to subtract a featureset that has been applied to a fontfamily? MWE: \definefontfeature [f:frac] [frac=yes,onum=no,pnum=no] \definefontfeature [f:onum] [onum=yes,pnum=yes] \definefontfamily [test] [serif] [AntykwaTorunska] [features=f:onum] \definefontfamily

Re: [NTG-context] Functionnames disappearing (sometimes)

2021-06-19 Thread Otared Kavian
ic one here (it is needed(?) in the Neo Euler case to >> have function names set upright). The following file shows the problem >> as well: >> %%% >> \setupmathematics[ >> functionstyle=normal, >> ] >> \starttext >> We have $\cos\alpha$, $\sin\alpha$, $

Re: [NTG-context] Functionnames disappearing (sometimes)

2021-06-19 Thread Hans Hagen
[ functionstyle=normal, ] \starttext We have $\cos\alpha$, $\sin\alpha$, $\tan\alpha$, \startformula \cos\alpha=\frac{a}{c},\quad \sin\alpha=\frac{b}{c},\quad \tan\alpha=\frac{\sin\alpha}{\cos\alpha}=\frac{b}{a}. \stopformula \stoptext %%% I had a backup of the file I was working on, and the problem

Re: [NTG-context] Functionnames disappearing (sometimes)

2021-06-18 Thread Mikael Sundqvist
$, $\sin\alpha$, $\tan\alpha$, \startformula \cos\alpha=\frac{a}{c},\quad \sin\alpha=\frac{b}{c},\quad \tan\alpha=\frac{\sin\alpha}{\cos\alpha}=\frac{b}{a}. \stopformula \stoptext %%% I had a backup of the file I was working on, and the problem was not present on june 13 (not sure I had a completely

Re: [NTG-context] \frac error

2021-04-19 Thread thierry horsin
9:39 AM, thierry horsin wrote: For instance: \switchtobodyfont[21pt] \startformula \frac{MTC}{MTE} \stopformula is OK. While \switchtobodyfont[22pt] \startformula \frac{MTC}{MTE} \stopformula gives an error but \switchtobodyfont[22pt] $\frac{MTC}{MTE}$ works fine. Thanks Below: part

Re: [NTG-context] \frac error

2021-04-19 Thread Hans Hagen
On 4/19/2021 9:39 AM, thierry horsin wrote: For instance: \switchtobodyfont[21pt] \startformula \frac{MTC}{MTE} \stopformula is OK. While \switchtobodyfont[22pt] \startformula \frac{MTC}{MTE} \stopformula gives an error but \switchtobodyfont[22pt] $\frac{MTC}{MTE}$ works fine. Thanks

Re: [NTG-context] \frac error

2021-04-19 Thread thierry horsin
For instance: \switchtobodyfont[21pt] \startformula \frac{MTC}{MTE} \stopformula is OK. While \switchtobodyfont[22pt] \startformula \frac{MTC}{MTE} \stopformula gives an error but \switchtobodyfont[22pt] $\frac{MTC}{MTE}$ works fine. Thanks Below: part of the error message tex error

Re: [NTG-context] \frac error

2021-04-19 Thread Hans Hagen
On 4/19/2021 9:21 AM, thierry horsin wrote: Hi again everybody I have tested some more examples. This error occurs when I fix the current font size to 22 pt (for some slide purposes). For sizes lower than 22pt, I have no error messages. can you make a MWE

Re: [NTG-context] \frac error

2021-04-19 Thread thierry horsin
to the last version of context , I cannot use \frac anymore in \startformula. I get the following message "I can't work with sizes bigger than about 19 feet. Continue and I'll use the largest value I can." Yet, between $ $ it is fine. Any ideas ? M

[NTG-context] \frac error

2021-04-18 Thread thierry horsin
Hi everybody Since I updated to the last version of context , I cannot use \frac anymore in \startformula. I get the following message "I can't work with sizes bigger than about 19 feet. Continue and I'll use the largest value I can." Yet, between $ $ it is fine. Any ide

Re: [NTG-context] Inline Fractions

2021-01-25 Thread Hans Hagen
On 1/25/2021 1:58 PM, Johann Birnick wrote: Recently inline fractions stopped working correctly. For example symbol spacing, sub-/superscripts, the line is too short,... You can see the 3 named problems and how they sometimes appear and sometimes not in this two fractions: \starttext $\frac

[NTG-context] Inline Fractions

2021-01-25 Thread Johann Birnick
Recently inline fractions stopped working correctly. For example symbol spacing, sub-/superscripts, the line is too short,... You can see the 3 named problems and how they sometimes appear and sometimes not in this two fractions: \starttext $\frac{\sin(x)}{16 \pi \epsilon_0 c^2 m_e^2} \frac

Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-11 Thread Ivan Pešić
gt; > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > > ___

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Jairo A. del Rio
"g", > "h", > "u", > "v", > "F", > "G", > "H", > } > > ListOfFunctions = { > "\\cos(x^2)", &g

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Otared Kavian
t;H", } ListOfFunctions = { "\\cos(x^2)", "x\\sin(x)", "\\tan(x)", "x^3 - 3x^2 + 1", "\\frac{1}{1 + x^2}", "\\sin(\\log(x))&quo

Re: [NTG-context] Concerning \startTEXpage ... \stopTEXpage... again

2020-12-07 Thread Jairo A. del Rio
i. Thanks to Hans for the quick fixes. However, some examples are still > > misbehaving. > > See the following: > > > > \setupbodyfont[70pt] > > \starttext > > \startTEXpage > > \framed{$a >> n = \left\lfloor\frac{a}{2^n}\right\rfloor$} > >

Re: [NTG-context] Concerning \startTEXpage ... \stopTEXpage... again

2020-12-07 Thread Hans Hagen
On 12/7/2020 6:15 AM, Jairo A. del Rio wrote: Hi. Thanks to Hans for the quick fixes. However, some examples are still misbehaving. See the following: \setupbodyfont[70pt] \starttext \startTEXpage \framed{$a >> n = \left\lfloor\frac{a}{2^n}\right\rfloor$} \stopTEXpage \stoptext It

[NTG-context] Concerning \startTEXpage ... \stopTEXpage... again

2020-12-06 Thread Jairo A. del Rio
Hi. Thanks to Hans for the quick fixes. However, some examples are still misbehaving. See the following: \setupbodyfont[70pt] \starttext \startTEXpage \framed{$a >> n = \left\lfloor\frac{a}{2^n}\right\rfloor$} \stopTEXpage \stoptext It works in MkIV, but it has the right margin cut wit

Re: [NTG-context] basic issues with formulas

2020-12-03 Thread Wolfgang Schuster
eficios} - \text{\em costes}$. % you can use typographical variations inside \text: \em, \bf, etc   \item Beneficio por euro: $\frac{\text{\em beneficios}}{\text{\em costes}}$.   \item Beneficio obtenido el primer año.   \stopitemize \stoptext There are additional commands for italic, bold e

Re: [NTG-context] basic issues with formulas

2020-12-03 Thread Wolfgang Schuster
with columns. \showframe\showgrid \starttext list: \startitemize[packed, columns, four] \item $\text{1} - \text{2}$ \item item \item $\frac{1}{2}$ \item item \stopitemize list: \startitemize[columns, four] \item $\text{1} - \text{2}$ \item item \item $\frac{1

Re: [NTG-context] basic issues with formulas

2020-12-03 Thread Andres Conrado Montoya
iations inside \text: \em, \bf, etc \item Beneficio por euro: $\frac{\text{\em beneficios}}{\text{\em costes}}$. \item Beneficio obtenido el primer año. \stopitemize \stoptext 2) will solve itself ather this. 3, I don't know. -- Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http:

Re: [NTG-context] basic issues with formulas

2020-12-03 Thread Pablo Rodriguez
starttext list: \startitemize[packed, columns, four] \item $\text{1} - \text{2}$ \item item \item $\frac{1}{2}$ \item item \stopitemize list: \startitemize[columns, four] \item $\text{1} - \text{2}$ \item item \item $\frac{1}{2}$ \item item \stopitemize \stoptext I d

Re: [NTG-context] basic issues with formulas

2020-12-03 Thread Otared Kavian
Hi Pablo, You may use \text in math formulas as in: \startitemize[packed] \item Valor actual neto: $\text{beneficios} - \text{costes}$. \item Beneficio por euro: $\frac{\text{beneficios}}{\text{costes}}$. \item Beneficio obtenido el primer año. \stopitemize Best regards: Otared > On 3

[NTG-context] basic issues with formulas

2020-12-03 Thread Pablo Rodriguez
Dear list, math is all Greek to me and I’m experiencing issues when typesetting the most basic inline formulas. \starttext \startitemize[packed] \item Valor actual neto: $beneficios - costes$. \item Beneficio por euro: $\frac{beneficios}{costes}$. \item Beneficio obtenido el primer año

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

2020-06-29 Thread Jairo A. del Rio
acnorule{#1}{\phantom{1}}} > > \startTEXpage > > \startplacefigure[location=force,number=no] > > \externalfigure[cofrac.png] > > \stopplacefigure > > \startformula > > \alpha + > > > \cofrac{\alpha'}{\cofrac{\alpha''}{\cofrac{\alpha'''}{{\endfrac{\dd

Re: [NTG-context] Commands with arguments before in ConTeXt

2020-06-29 Thread Jairo A. del Rio
t; > details. > > > > So the answer is "Can't be done without overhauling the whole concept". > > > > Now, I know that the narrative is that context is a moving target > > (c

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

2020-06-29 Thread Hans Hagen
'''}{{\endfrac{\ddots} \frac{1}{\alpha'''} \stopformula \stopTEXpage | |Mmm, superscripts and fraction rules superpose, so indeed something is wrong. Any ideas or references to a better result? | In the next version this will look okay: \definemathfraction [gefrac] [d:frac

Re: [NTG-context] Commands with arguments before in ConTeXt

2020-06-29 Thread Taco Hoekwater
change because > users / publishers expect them to behave the same forever) so one can > argue that for context we can follow a drastic different route, but even > then, we can't shoot ourselves in the foot too often. I

Re: [NTG-context] Commands with arguments before in ConTeXt

2020-06-29 Thread Jairo A. del Rio
t some > people (read: Alan) love these {{}\foo{}} syntaxes but live would have > been simpler if even \over has not be in there with prefix notation > (there is a reason why macro package have \frac like variants). > > Hans > > > > -

Re: [NTG-context] Commands with arguments before in ConTeXt

2020-06-29 Thread Hans Hagen
reason why macro package have \frac like variants). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pra

[NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-28 Thread Jairo A. del Rio
{\alpha''}{\cofrac{\alpha'''}{{\endfrac{\ddots} \frac{1}{\alpha'''} \stopformula \stopTEXpage Mmm, superscripts and fraction rules superpose, so indeed something is wrong. Any ideas or references to a better result? I've attached the expected result (it's from Legendre's Théorie des nombres

Re: [NTG-context] More funny numbers

2020-06-12 Thread Hans Hagen
On 6/12/2020 4:35 AM, Jairo A. del Rio wrote: Hi everyone! The following example shows that numerators of fractions inside math alignment environments appear with a funny size: \startTEXpage \startformula \startmathalignment[n=1,align=middle] \NC \frac{1351}{780}>\sqrt{3}>\frac{26

[NTG-context] More funny numbers

2020-06-11 Thread Jairo A. del Rio
Hi everyone! The following example shows that numerators of fractions inside math alignment environments appear with a funny size: \startTEXpage \startformula \startmathalignment[n=1,align=middle] \NC \frac{1351}{780}>\sqrt{3}>\frac{265}{153}, 3013 \frac{3}{4}>\sqrt{9082321}, \quad 183

Re: [NTG-context] Funny radicals in LMTX

2020-06-11 Thread Hans Hagen
On 6/11/2020 2:50 PM, Mikael Sundqvist wrote: Hi, I can confirm. The same problem goes with $\sqrt{\frac{2}{3}}$. put this in cont-new.mkiv: \unexpanded\def\styledrootradical#1#2% {\normalexpanded{\rootradical {\normalunexpanded{#1}}% {\noexpand\triggermathstyle

Re: [NTG-context] Funny radicals in LMTX

2020-06-11 Thread Mikael Sundqvist
Hi, I can confirm. The same problem goes with $\sqrt{\frac{2}{3}}$. /Mikael On Thu, Jun 11, 2020 at 1:53 PM Jairo A. del Rio wrote: > Hi list! Nesting radicals in LMTX give a funny font size compared with > LuaTeX, which gives the correct output. I cleaned the cache, just in case. >

Re: [NTG-context] new version

2020-06-10 Thread Alan Bowen
The problem with vertical spacing in \frac and \over is fixed. Many thanks, Hans! Alan On Wed, Jun 10, 2020 at 4:03 AM Hans Hagen wrote: > Hi, > > I uploaded a new version. There have been no changes to the typesetting > machinery although we're still in the process of finetuning

[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

[NTG-context] Math delimiters across math alignment environments

2020-05-29 Thread Jairo A. del Rio
is: is it possible to make math fences work in a math alignment, e.g. \definemathfence[something][brace][command=yes] \startformula \startmathalignment[n=2,align={middle,middle}] %This won't work (I didn't expected to work, anyway) \NC \NC \something{\frac{1}{2} + \NR \NC \NC x} \NR \stopmathalignment

Re: [NTG-context] Getting width of text to be typeset

2020-05-23 Thread Gerben Wierda
to get the width (and height) of a string back in lua as a value? So, in lua something like this: width = tex.widthofstring(“I have a string with some $\frac{1}2{}$ (math) in it") G___ If your question is of

Re: [NTG-context] \mathopen, \Uover and friends

2020-05-09 Thread Hans Hagen
be more consistent to have the usual structure ${1} \Uover {2}$ like the more friendly ${1} \over {2}$ instead of having That would involve backtracking and be a psin in the butt wrt control. One can't have it all. $\Uover{1}{2}$ which is more like the \frac structure. Watch out: these are low

[NTG-context] \mathopen, \Uover and friends

2020-05-09 Thread Otared Kavian
${1} \Uover {2}$ like the more friendly ${1} \over {2}$ instead of having $\Uover{1}{2}$ which is more like the \frac structure. Also a structure like $\Uover style \textstyle{1}{2}$ seems a little bit far from the usual ConTeXt atmposphere… Would it not be possible to have ${1} \Uover[style

[NTG-context] page break

2020-02-09 Thread Fabrice Couvreur
{\bi Affirmation 4 :} La valeur exacte de la somme des 12 premiers termes de la suite géométrique \m{\left(u_n\right)} de premier terme \m{4} et de raison \m{\dfrac{1}{3}} est : \startformula 6\left(1-\left(\frac{1}{3}\right)^{13}\right) \stopformula

Re: [NTG-context] math align broken

2019-12-15 Thread Otared Kavian
> \NC\NC =\Im\int e^{(2+3i)x}\,dx\NR > \NC\NC = \Im\Bigl(\frac{1}{2+3i}e^{(2+3i)}\Bigr)\NR > \stopalign > \stopformula > From this we see that $\lim_{n\to+\infty}f(n)=0$. > \stoptext > %%% > > gives the attached ex1.pdf. As we can see the spacing inside \startalign &

[NTG-context] math align broken

2019-12-15 Thread Mikael P. Sundqvist
}\sin 3x\,dx\NC=\int\Im e^{(2+3i)x}\,dx\NR \NC\NC =\Im\int e^{(2+3i)x}\,dx\NR \NC\NC = \Im\Bigl(\frac{1}{2+3i}e^{(2+3i)}\Bigr)\NR \stopalign \stopformula >From this we see that $\lim_{n\to+\infty}f(n)=0$. \stoptext %%% gives the attached ex1.pdf. As we can see the spacing inside \startalign \stopal

[NTG-context] maths simplifying fractions

2019-11-13 Thread jkitz
][\uniqueMPgraphic{cancel}] \defineframed[cancel] [background=cancel,frame=off,offset=0pt,location=low] \starttext \startformula 6 \frac{3}{8} \div 4 \frac{1}{2} = \frac{27}{4} \div \frac{9}{2} = \frac{\cancel{27}^3}{\cancel{4}^2} \times \frac{\cancel{2}^1}{\cancel{9}^1} = \frac{3}{2} = 1 \frac{1}{2

Re: [NTG-context] maths simplifying fractions

2019-11-13 Thread Henri Menke
cally invisible. > > Is there any way to get a diagonal stroke like the latex module "cancel" can > do? This might help. https://tex.stackexchange.com/questions/501056/equivalent-of-cancelto-in-context > Thanks for any suggestions, > Martin > > \starttext > \startformul

[NTG-context] maths simplifying fractions

2019-11-13 Thread Martin Althoff
module "cancel" can do? Thanks for any suggestions, Martin \starttext \startformula \frac{\overstrike{2}}{\overstrike{4}} = \frac{1}{2} \stopformula \stoptext ___ If your question is of interest to others as we

Re: [NTG-context] List of Symbols/Abbreviations/Glosses with more then two entries

2019-10-11 Thread Thomas Welter
ection[title=List of Tables] \placelistoftables \stopsection \startsection[title=List of Symbols] \placelistofsymbols \stopsection \stopfrontmatter \startbodymatter \startsection[title=Symbols] \startsubsection[title=Using the Symbols] \placeformula \startsubformulas \startformula \startalign \NC \frac{d

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

2019-10-08 Thread Hans Hagen
local startTextFraction = "$\\frac{\\text{" local stopTextFraction  = "}}$" function xml.functions.textfraction( t )   local dt = t.dt   inspect( dt )   local wrapper   local slashfound = false   context( startTextFraction )   local index, child ^^ Not needed, they are l

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

Re: [NTG-context] XML/HTML output of Math

2019-08-08 Thread Taco Hoekwater
urther "b" is a bit larger and an integral symbol is rather small. > (It looks "\displaystyle" is not effective, e.g see "\frac”.) I opened the xhtml with firefox and the only problem I see is the ignored \displaystyle (which is why the integral looks small). Inli

[NTG-context] XML/HTML output of Math

2019-08-07 Thread Atsuhito Kohda
questions about XML/HTML output of Math. 1. In case inline math mode with \displaystyle, we get wrong output of "\int_a^b"; lower limit and upper limit are interchanged and further "b" is a bit larger and an integral symbol is rather small. (It looks "\displaystyle" is

[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

[NTG-context] mathalign: specifying distance with glue

2019-04-23 Thread Aditya Mahajan
mathalign by using distance=2em plus 1fil. However, on a recent context, the glue gets ignored. \starttext \startformula \startmathalignment[m=2,distance=2em plus 1 filll]%Notice distance=... \NC \nabla\cdot \bf E \NC= \frac{\rho}{\varepsilon_0}, \NC \nabla\times \bf E \NC= -\frac{\par

Re: [NTG-context] about vertical alignment

2019-02-10 Thread Wolfgang Schuster
\starttext \startitemize[n] \item Prove the following identity. \startitemize[n][stopper=)] \item ${\displaystyle \int \tan^n x \,dx=\frac{\tan^{n-1}x}{n-1}-\int \tan^{n-2}x \,dx}$ ($n>1$) \item ${\displaystyle \int \sec^n x \,dx=\frac{\sec^{n-2}x \tan x}{n-1}+\frac{n-2}{n-1} \

[NTG-context] about vertical alignment

2019-02-08 Thread Jeong Dal
the following identity. \startitemize[n][stopper=)] \item ${\displaystyle \int \tan^n x \,dx=\frac{\tan^{n-1}x}{n-1}-\int \tan^{n-2}x \,dx}$ ($n>1$) \item ${\displaystyle \int \sec^n x \,dx=\frac{\sec^{n-2}x \tan x}{n-1}+\frac{n-2}{n-1} \int \sec^{n-2}x \,dx}$ $(n>1)$ \stopitemize

Re: [NTG-context] Cannot get upright integral in stixtwo anymore

2019-01-25 Thread Mikael P. Sundqvist
Hi! I see that this is fixed in the latest beta. Thanks!! /Mikael On Sat, Jan 12, 2019 at 9:39 AM Mikael P. Sundqvist wrote: > > Hi, > > the code > > \setupbodyfont[stixtwo] > \starttext > \startTEXpage[offset=2bp] > $\displaystyle \int x^2\,dx=\frac{x^3}{3}

[NTG-context] Cannot get upright integral in stixtwo anymore

2019-01-12 Thread Mikael P. Sundqvist
Hi, the code \setupbodyfont[stixtwo] \starttext \startTEXpage[offset=2bp] $\displaystyle \int x^2\,dx=\frac{x^3}{3}+C$\par \setupmathematics[stylealternative={upright}] $\displaystyle \int x^2\,dx=\frac{x^3}{3}+C$\par \stopTEXpage \stoptext used to give an "upright" integral sign in

Re: [NTG-context] Lower limit of integrals shifted

2019-01-11 Thread Mikael P. Sundqvist
On Fri, Jan 11, 2019 at 11:36 AM Hans Hagen wrote: > > On 1/10/2019 7:56 AM, Mikael P. Sundqvist wrote: > > Hi, > > > > the output of > > > > \setupmathematics[ > > integral=nolimits, > > ] > > > > \starttext > > \sta

Re: [NTG-context] Lower limit of integrals shifted

2019-01-11 Thread Hans Hagen
On 1/10/2019 7:56 AM, Mikael P. Sundqvist wrote: Hi, the output of \setupmathematics[ integral=nolimits, ] \starttext \startTEXpage[offset=2bp] $\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$ \stopTEXpage \stoptext is attached. Clearly, the lower limit in the integral is not correctly placed

[NTG-context] Lower limit of integrals shifted

2019-01-09 Thread Mikael P. Sundqvist
Hi, the output of \setupmathematics[ integral=nolimits, ] \starttext \startTEXpage[offset=2bp] $\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$ \stopTEXpage \stoptext is attached. Clearly, the lower limit in the integral is not correctly placed. With hope of a quick fix, Mikael

Re: [NTG-context] Equivalent of alignat of amsmath with context

2019-01-05 Thread Fabrice Couvreur
\startalign[n=3,align={left,right}] > and finish the alignment with > \stopalign > > Is this what you are looking for? > > \starttext > \startformula > \startalign[n=3,align={left,right}] >\NC \qquad > \NC\frac{\lvert\overline{AD}\rvert}{\lvert\overli

Re: [NTG-context] Equivalent of alignat of amsmath with context

2019-01-05 Thread Otared Kavian
Hi Fabrice, I think you have to use \startalign[n=3,align={left,right}] and finish the alignment with \stopalign Is this what you are looking for? \starttext \startformula \startalign[n=3,align={left,right}] \NC \qquad \NC\frac{\lvert\overline{AD}\rvert}{\lvert\overline{CD

[NTG-context] Equivalent of alignat of amsmath with context

2019-01-05 Thread Fabrice Couvreur
Hi, I'm trying to get the same result for this file compiled with latex. Thanks. Fabrice \documentclass{article}\usepackage{amsmath} \begin{document} \begin{alignat*}{2}&\qquad& \frac{\lvert\overline{AD}\rvert}{\lvert\overline{CD}\rvert} &=\frac{\lvert\overline{DC}\rvert}{\lvert

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

2018-12-11 Thread mf
did you play with \definefontfeature[whatever][keepligatures=auto] \definecharacterkerning [extrakerning] [factor=0.125,features=whatever] \starttext     \setcharacterkerning[extrakerning]     effe fietsen \stoptext Great! Thanks! This now works: \definefontfeature[frac][frac=yes

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

2018-12-10 Thread Hans Hagen
On 12/10/2018 4:26 PM, mf wrote: Hello list, i noticed that setting a different kerning breaks some features of opentype fonts; that is true, for example, for ligatures and fractions (frac feature). It looks like a modified kerning inserts something between two adjacent character, making

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

2018-12-10 Thread mf
An example of local correction, but it's not automatic: \definecharacterkerning[narrow][factor=-.02] \definecharacterkerning[wide][factor=.02] \definefontfeature[frac][frac=yes] \def\Narrow#1{\bgroup\setcharacterkerning[narrow]#1\egroup} \def\Wide#1{\bgroup\setcharacterkerning[wide]#1\egroup

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

2018-12-10 Thread mf
Hello list, i noticed that setting a different kerning breaks some features of opentype fonts; that is true, for example, for ligatures and fractions (frac feature). It looks like a modified kerning inserts something between two adjacent character, making them no more adjacent. That way

Re: [NTG-context] Can anyone connect context to R or python?

2018-10-06 Thread Aditya Mahajan
as follows: \starttext Consider an LTI system with the transfer function \placefigure[eq:sys] \startformula H(s) = \frac{1}{s^2 + 2s + 2} \stopformula The step response of the system is shown in Figure \in[fig:plot]. Note that the step response settles to a final value of $0.5

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] labeling in meta post

2018-09-06 Thread Henri Menke
tex $\delta$ etex, (3cm,0)); Why not just label.bot("$\delta$", (3cm,0)); > label.bot(btex $\frac{2-\delta}{2}$ etex, (5cm,0)); % > \stopbuffer > \starttext > \processMPbuffer[delta] > \stoptext > > Best regards, > > Dalyoung > _

[NTG-context] labeling in meta post

2018-09-06 Thread Jeong Dal
Hi, What is the difference between {\delta} and \delta? Former is OK, but the second is not compiled. Here is a MWE. \startbuffer[delta] label.bot(btex ${\delta}$ etex, (1cm,0)); % %label.bot(btex $\delta$ etex, (3cm,0)); label.bot(btex $\frac{2-\delta}{2}$ etex, (5cm,0

Re: [NTG-context] Strange vertical result with itemize in columns

2018-09-03 Thread Jeong Dal
ze[n] > \startitem > Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits > \startitemize[a,columns,three][left=,right={)},stopper=] > \startitem $\lim_{x\to 0}\frac{f(x)}{g(x)}$,\stopitem > \startitem $\lim_{x\to+\infty}\frac{f(x)}{g(x)}$,\stopitem > \startitem $\lim_{x\to 0}f(x)$.

[NTG-context] Strange vertical result with itemize in columns

2018-09-03 Thread Mikael P. Sundqvist
example. \starttext \startTEXpage[offset=2bp] \startitemize[n] \startitem Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits \startitemize[a,columns,three][left=,right={)},stopper=] \startitem $\lim_{x\to 0}\frac{f(x)}{g(x)}$,\stopitem \startitem $\lim_{x\to+\infty}\frac{f(x)}{g(x)}$,\stopitem

Re: [NTG-context] closesymbol on same line as displayed formula

2018-08-28 Thread Jeong Dal
er simple proof that ends with a formula \startformula 1+1=2. \placeclosesymbol \stopformula \stopproof \startproof \startitemize[n] \item first line. \item Here is an example. \startformula \cosh x + \sinh x = e^x,~~\cosh x - \sinh x = e^{-x} \stopformula The next formula is following:

[NTG-context] split long formula in two pages

2018-08-26 Thread Jeong Dal
to split long table in two pages. Is there a similar way for long formula? Here is a minimal example. \showframe \starttext \dorecurse{3}{\input knuth} \startformula\startalign \NC S_1 \NC = 1 = 1 + 0 \bigg( \frac{1}{2}\bigg), \NR \NC S_2 \NC = 1 + \frac{1}{2} = 1

Re: [NTG-context] \vfrac (math mode)

2018-05-22 Thread Alan Braslau
Hi Massi, \Unskewed is undefined/unrecognized. Enabling Opentype math (somehow) or perhaps an experimental version of luatex is needed? Alan On Tue, 22 May 2018 18:29:30 +0200 MF <mass...@fastwebnet.it> wrote: > Hi Alan, try this: > > \def\vFrac#1#2{#1 \Uskewed / #2} > >

Re: [NTG-context] \vfrac (math mode)

2018-05-22 Thread MF
Hi Alan, try this: \def\vFrac#1#2{#1 \Uskewed / #2} \starttext $\frac{2_1}{m}$ ${2_1 \Uskewed / m}$ $\vFrac{2_1}{m}$ \stoptext See "5.7 Skewed fractions", in the manual still.pdf. Hope it helps, greetings, Massi > Is there a version of the vulgarfraction that works in math m

[NTG-context] Space between lines with mathematical writings

2018-03-17 Thread Fabrice Couvreur
, rulecolor=, balance=, grid=strut, ] \setupalign[verytolerant,stretch,hanging] \starttext \startMycolumns \startitemize[n] \item Le taux d'évolution du prix du menu entre l'été 2012 et l'été 2015 est égal à \math{t_g=\frac{13,80-9,80}{9,80}\approx 0,4082}. On a alors \math{(1+t_m)^3=(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
\startformula >> \Bigl|\int_0^\pi\sin 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} >> \

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

Re: [NTG-context] substituting characters in math font

2017-10-27 Thread Henning Hraban Ramm
Fabcdef}\NC\m{\red ΑΒΓΔΕΘαβγδεθ}\NC\NR \NC italic: \NC \emph{ABCDEFabcdef}\NC\emph{ΑΒΓΔΕΘαβγδεθ}\NC\NR \NC \NC \NC \NC\NR \NC Greek theta: \NC\NC \emph{θ}\NC\NR \stoptabulate \m{\sqrt{34y\frac{12\alpha^2}{98.0 x_2}}Δθ} \m{{{sin^2 α + cos^2 β}\over{2}} = \frac{1}{2}} \showbodyfont \stoptext

Re: [NTG-context] Undesirable space with mixedcolumns

2017-10-27 Thread Fabrice Couvreur
^3 \NC = 1,87\NR \NC 1+t \NC = 1,87^{\frac{1}{3}} \NR \NC 1+t \NC = 1,23\NR \NC t \NC = 0,23. \NR \stopmathalignment \stopformula \input ward \stopMycolumns \stoptext Le 25 octobre 2017 à

Re: [NTG-context] Page printed upside down

2017-10-23 Thread Fabrice Couvreur
> \starttext > \dorecurse{4}{\chapter{Chapter \Romannumerals{\recurselevel}} > \section{\TeX}\input knuth\par > \section{Zapf}\input zapf\par > \section{Math} > \startformula > \startmathalignment[n=2,align={left,left}] > \NC P_1 + P_2 + \dots + P_{12} \NC

Re: [NTG-context] Page printed upside down

2017-10-22 Thread Pablo Rodriguez
05^{11})\NR \NC \NC = 400\times \frac{1-1,05^{12}}{1-1,05}\approx 6\,367.\NR \stopmathalignment \stopformula} \stoptext And then use the following code with the output PDF document from the code above: \setuppapersize [A5][A4,landscape] \setupexternalfigures[interaction=all]

Re: [NTG-context] Page printed upside down

2017-10-21 Thread Fabrice Couvreur
} \NC = 400 + 400\times 1,05 + 400\times 1,05^2 + \dots + 400 \times 1,05^{11}\NR \NC \NC = 400\times (1 + 1,05 + 1,05^2 + \dots + 1,05^{11})\NR \NC \NC = 400\times \frac{1-1,05^{12}}{1-1,05}\approx 6\,367.\NR \stopmathalignment \stopformula \stopMyColumns \stoptext Fabrice 2017-10

Re: [NTG-context] Page printed upside down

2017-10-18 Thread Fabrice Couvreur
gt;> separator=rule, >> rulecolor=, >> balance=yes, >> ] >> >> \setupalign[verytolerant,stretch,hanging] >> >> \starttext >> \startMyColumns >> \startformula >> \startmathalignment[n=2,align={left,left}] >>

Re: [NTG-context] Page printed upside down

2017-10-18 Thread Fabrice Couvreur
+ 400\times 1,05 + 400\times > 1,05^2 + \dots + 400 \times 1,05^{11}\NR > \NC \NC = 400\times (1 + 1,05 + 1,05^2 + \dots + 1,05^{11})\NR > \NC \NC = 400\times \frac{1-1,05^{12}}{1-1,05}\approx 6\,367.\NR > \stopmathalignment > \stopformula > \dorecurse{6}{\input kn

Re: [NTG-context] Page printed upside down

2017-10-16 Thread Fabrice Couvreur
= 400\times \frac{1-1,05^{12}}{1-1,05}\approx 6\,367.\NR \stopmathalignment \stopformula \dorecurse{6}{\input knuth} \stopMyColumns \stoptext 2017-10-16 19:35 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>: > On 10/16/2017 05:59 PM, Fabrice Couvreur wrote: > > Hello, >

Re: [NTG-context] line correction

2017-09-29 Thread Hans Hagen
  \input sapolsky \stopquotation \stoplinecorrection \input knuth %\vadjust pre{\blank[line]}% not line, but halfline! \vadjust pre{\blank[halfline]}% $\displaystyle{\frac{1}{a + b}}$ %\vadjust{\blank[line]}% not line, but halfline! \vadjust{\blank[halfline]}% \input knuth \stoptext In general

Re: [NTG-context] line correction

2017-09-29 Thread Hans Hagen
knuth \startlinecorrection[halfline] \startquotation \input sapolsky \stopquotation \stoplinecorrection \input knuth $\displaystyle{\frac{1}{a + b}}$ \input knuth \stoptext --- Now the text snaps to the grid after the quotation, but the tall formula inside the text ov

Re: [NTG-context] line correction

2017-09-28 Thread Rik Kabel
! \vadjust pre{\blank[halfline]}% $\displaystyle{\frac{1}{a + b}}$ %\vadjust{\blank[line]}% not line, but halfline! \vadjust{\blank[halfline]}% \input knuth \stoptext In general, I'm ok without grid snapping, because the default typesetting of taller formulas inside text is good enough for my

<    1   2   3   4   5   6   7   8   >