Re: [NTG-context] Problem with \dfrac{}{} with lmtx updated

2020-12-24 Thread Hans Hagen
On 12/24/2020 4:37 PM, Fabrice Couvreur wrote: Hi, I just updated lmtx and I don't understand the error that occurs with the \dfrac{}{}. Thank you. Fabrice # \starttext \m{f(x)=\dfrac{a + b\ln(x)}{x}} \stoptext # tex error       > tex error on lin

[NTG-context] Problem with \dfrac{}{} with lmtx updated

2020-12-24 Thread Fabrice Couvreur
Hi, I just updated lmtx and I don't understand the error that occurs with the \dfrac{}{}. Thank you. Fabrice # \starttext \m{f(x)=\dfrac{a + b\ln(x)}{x}} \stoptext # tex error > tex error on line 2 in file ./hans_21.tex: Math error: parame

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
}\newcommand*{\cofrac}[2]{%{%\rlap{$\dfrac{1}{\phantom{#1}}$}%\genfrac{}{}{0pt}{0}{}{#1+#2}%}%}\[a_0 + \cofrac{a_1}{\cofrac{a_2}{\cofrac{a_3}{\genfrac{}{}{0pt}{0}{}{\ddots\]\end{document} | |As I could read from the mailing list, ConTeXt no longer supports \genfrac, so I've tried

[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

[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] Fwd: Re: The binomial coefficients do not look optimal

2017-09-05 Thread Mikael P. Sundqvist
tps://bitbucket.org/phg/context-mirror/commits/> >> wiki : http://contextgarden.net >> >> ___ >> >> >> Thank you very much, I'm looking forward to the next be

[NTG-context] Fwd: Re: The binomial coefficients do not look optimal

2017-09-02 Thread Hans Hagen
sed about the different versions. I would have guessed that there was \tbinom and \dbinom and that \binom used one of them depending on if one is in text mode or in display mode (just as I would expect \frac to behave like \tfrac in text mode and \dfrac in display mode). But \tbinom looks very differe

Re: [NTG-context] The binomial coefficients do not look optimal

2017-09-02 Thread Mikael P. Sundqvist
orward to the next beta, and I will try to wikify it when I have tried it out. Also lucida looks better than latin modern does at the moment. I am a bit confused about the different versions. I would have guessed that there was \tbinom and \dbinom and that \binom used one of them depending on i

[NTG-context] Strange behavior with enumeration

2017-08-17 Thread Fabrice Couvreur
{\dfrac{15}{100}\times 12\,000.} \item \math{1\,500.} \item \math{1\,800.} \stopitemize \stopitemize \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

[NTG-context] Bug with Enumeration and \dfrac{}{} with Standalone ?

2017-05-14 Thread Fabrice Couvreur
Hello, I am posting again on the same subject but with more precision. I use Standalone Context in its latest version. We can observe that the alignment is not correct with \dfrac{}{} but it is with {}\ over{}. But if I use Texlive 2016 there are no problems. Thank you Fabrice

Re: [NTG-context] Strange behavior with Enumerations

2017-05-10 Thread Fabrice Couvreur
correct, why ? > > ## > \starttext > > \startitemize[n][stopper={.},style=bold,color=darkred] > >\item Soit \math{f} la fonction définie pour tout réel \m{x} différent > de \m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe >

[NTG-context] Strange behavior with Enumerations

2017-05-08 Thread Fabrice Couvreur
Hello, The alignment of the third level is incorrect, why ? ## \starttext \startitemize[n][stopper={.},style=bold,color=darkred] \item Soit \math{f} la fonction définie pour tout réel \m{x} différent de \m{-1} par \math{f(x)=\dfrac{x+2

[NTG-context] Math fractions

2016-02-28 Thread Aditya Mahajan
Something is wrong in the current implmentation of \tfrac. If we take away all the bells and whistles provided by \definemathfraction, * \tfrac#1#2 should be equal to {\textstyle #2 \over #1} * \dfrac#1#2 should be equal to {\displaystyle #2 \over #1} * \frac should be equal to \tfrac

Re: [NTG-context] Alignment on the baseline in a itemize environment with \dfrac{}{}

2015-03-23 Thread Fabrice
Hi Wolfgang, Thank you for these three solutions. One thing I'm missing is the role of grid I did not know. Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Alignment on the baseline in a itemize environment with \dfrac{}{}

2015-03-22 Thread Wolfgang Schuster
Am 22.03.2015 um 13:10 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com: The alignment of the second item on the baseline is not correct if I use the command \dfrac{}{}. How to solve this problem without using the command \framed ? Best regards, Fabrice \starttext \startitemize

[NTG-context] Alignment on the baseline in a itemize environment with \dfrac{}{}

2015-03-22 Thread Fabrice Couvreur
The alignment of the second item on the baseline is not correct if I use the command \dfrac{}{}. How to solve this problem without using the command \framed ? Best regards, Fabrice \starttext \startitemize[columns,A,joinedup,three][stopper={)},style=bold] \item $f^{\prime}(x) = \dfrac{- 1}{(x

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

2014-05-17 Thread Sanjoy Mahajan
. However, the settings don't seem to affect fractions inside square roots. Here's an example (the 20pt setting is to exaggerate the possible effect), using 2014.05.17 beta. \starttext \placeformula\startformula \dfrac{ag}{bcd}\quad{ag\over bcd} \stopformula \placeformula\startformula \sqrt{1\over

[NTG-context] Table next to a text in an environment of type list

2014-03-29 Thread Fabrice Couvreur
probabilité que ce soit une femme ? {\it On note \math{P_{C}(F)} cette probabilité.} \item Calculer \math{\dfrac{P(F \cap C)}{P(C)}}. Que constate-t-on ? \stopitemize \item \startitemize[a][stopper=),style=bold] \item On choisit une femme parmi les personnes de l'entreprise. Quelle est la probabilité

Re: [NTG-context] Math typesetting problems

2013-04-06 Thread Hans Hagen
On 1/29/2013 12:20 AM, Khaled Hosny wrote: 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

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Janne Junnila
Indeed it seems like the alignment is good with \dfrac, but this does not solve my problem, since I wish to also use fractions with script-size or scriptscript-size (\xfrac, \xxfrac). The specific formula I have is \startformula f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Roland Thiers
Le 28 janv. 13 à 10:11, Janne Junnila a écrit : Indeed it seems like the alignment is good with \dfrac, but this does not solve my problem, since I wish to also use fractions with script-size or scriptscript-size (\xfrac, \xxfrac). The specific formula I have is \startformula f_{B_t | B_s = S

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Aditya Mahajan
On Mon, 28 Jan 2013, Roland Thiers wrote: Le 28 janv. 13 à 10:11, Janne Junnila a écrit : Indeed it seems like the alignment is good with \dfrac, but this does not solve my problem, since I wish to also use fractions with script-size or scriptscript-size (\xfrac, \xxfrac). The specific

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Wolfgang Schuster
Am 28.01.2013 um 20:41 schrieb Aditya Mahajan adit...@umich.edu: On Mon, 28 Jan 2013, Roland Thiers wrote: Le 28 janv. 13 à 10:11, Janne Junnila a écrit : Indeed it seems like the alignment is good with \dfrac, but this does not solve my problem, since I wish to also use fractions

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
with \dfrac, but this does not solve my problem, since I wish to also use fractions with script-size or scriptscript-size (\xfrac, \xxfrac). The specific formula I have is \startformula f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + \frac{(S(u-t) + U(t-s

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Wolfgang Schuster
. The \frac command uses \vcenter for the content while \dfrac and \tfrac only set the mathstyle before placing the content with the \over primitive. Then something has been lost in the MkII - MkIV transition. I am pretty sure (cannot check right now), that the code in MkII used \genfrac

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

Re: [NTG-context] Math typesetting problems

2013-01-27 Thread Roland Thiers
to illustrate my point. The result seems to be independent of the font in use. \startformula -\frac{e^{\frac{4}{5}}}{4} \stopformula Janne Hi Janne, With \dfrac it looks good. With \fraction the minus sign is on the top of the fraction. Best regards, Roland

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

2011-04-26 Thread Andreas Harder
] \startMPpage[offset=1ex] u := cm ; label.top(textext($ \frac{\sigma_t}{a}$) scaled 2, origin); label.top(textext($ \frac{\sigma_t}{a}$), (u,u)); label.top(textext($\dfrac{\sigma_t}{a}$) scaled .5, (u,0)); \stopMPpage Greeting Andreas

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

2011-04-26 Thread Matthieu Stigler
] \startMPpage[offset=1ex] u := cm ; label.top(textext($ \frac{\sigma_t}{a}$) scaled 2, origin); label.top(textext($ \frac{\sigma_t}{a}$), (u,u)); label.top(textext($\dfrac{\sigma_t}{a}$) scaled .5, (u,0)); \stopMPpage Andreas Thanks for answer! Is this code you wrote supposed

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

2009-08-20 Thread Aditya Mahajan
of incoprorating a nath like frac in ConTeXt. So, we can have \definemathfraction[frac][style=...] where style can take values default: the current frac implementation auto:the nath like implementation displaystyle: the current dfrac implementation textstyle: the current tfrac implementation

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread David Arnold
the main fraction bar in the following expression, making it a tad longer? Just add a bit of whitespace to the right and left: \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,} {\,\dfrac{4x^3-9x}{2x^2+5x-12}\,} You may want to add a \vphantom command as well to separate the fractions from the main

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread Aditya Mahajan
fraction bar in the following expression, making it a tad longer? Just add a bit of whitespace to the right and left: \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,} {\,\dfrac{4x^3-9x}{2x^2+5x-12}\,} You may want to add a \vphantom command as well to separate the fractions from the main bar

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread David Arnold
2, 2006, at 4:00 AM, Taco Hoekwater wrote: David Arnold wrote: All, How can I extend the main fraction bar in the following expression, making it a tad longer? Just add a bit of whitespace to the right and left: \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,} {\,\dfrac{4x^3-9x}{2x^2+5x

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread David Arnold
that suits you. Aditya On Jul 2, 2006, at 4:00 AM, Taco Hoekwater wrote: David Arnold wrote: All, How can I extend the main fraction bar in the following expression, making it a tad longer? Just add a bit of whitespace to the right and left: \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread Aditya Mahajan
a bit of whitespace to the right and left: \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,} {\,\dfrac{4x^3-9x}{2x^2+5x-12}\,} You may want to add a \vphantom command as well to separate the fractions from the main bar a bit more. \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}{\,\dfrac{4x^3-9x}{2x^2

Re: [NTG-context] Extend the fraction bar

2006-07-02 Thread Taco Hoekwater
David Arnold wrote: All, How can I extend the main fraction bar in the following expression, making it a tad longer? Just add a bit of whitespace to the right and left: \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,} {\,\dfrac{4x^3-9x}{2x^2+5x-12}\,} You may want to add a \vphantom

Re: [NTG-context] Extend the fraction bar

2006-07-02 Thread Mojca Miklavec
On 7/2/06, David Arnold wrote: All, How can I extend the main fraction bar in the following expression, making it a tad longer? \placeformula \startformula \dfrac{\dfrac{9+3x-2x^2}{x^2-16}}{\dfrac{4x^3-9x}{2x^2+5x-12}}. \stopformula I don't know what \dfrac should be (I assumed \let

[NTG-context] Extend the fraction bar

2006-07-01 Thread David Arnold
All, How can I extend the main fraction bar in the following expression, making it a tad longer? \placeformula \startformula \dfrac{\dfrac{9+3x-2x^2}{x^2-16}}{\dfrac{4x^3-9x}{2x^2+5x-12}}. \stopformula ___ ntg-context mailing list ntg-context@ntg.nl

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

2004-08-03 Thread Brooks Moses
\mathematics#1{\relax\ifmmode#1\else$#1$\fi} [...] That fixes the problem on my end; thanks! Will you be updating the defintions of \tfrac, \dfrac, and so forth in m-newmat to match? I admit to not being too sure whether I think it's a good idea to support using math constructs such as \frac outside

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

2004-08-03 Thread Hans Hagen Outside
}{#2}}} \def\mathematics#1{\relax\ifmmode#1\else$#1$\fi} [...] That fixes the problem on my end; thanks! Will you be updating the defintions of \tfrac, \dfrac, and so forth in m-newmat to match? I admit to not being too sure whether I think it's a good idea to support using math constructs

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

2004-08-03 Thread Brooks Moses
On Wed, Aug 04, 2004 at 12:14:29AM +0200, Hans Hagen Outside wrote: Brooks Moses wrote: That fixes the problem on my end; thanks! Will you be updating the defintions of \tfrac, \dfrac, and so forth in m-newmat to match? I admit to not being too sure whether I think it's a good idea

Re: [NTG-context] amsl: startcases/stopcases

2004-05-25 Thread Giuseppe Bilotta
? Changing it to \dfrac makes the input compile ok, but typesets the cases in an ugly manner with really narrow spacing. (Yes.) Is there some way of telling startcases/stopcases to behave in display mode? Yup, I just changed a couple of things and now we have a \startbigcases ... \stopbigcases

[NTG-context] amsl: startcases/stopcases

2004-05-20 Thread David Munger
Hello Giuseppe, I'm having a little trouble with the cases in amsl. Compiling this: \[ f(x) = \startcases 0 \text{if $x -\epsilon$} \\ \frac12 \text{if $x \epsilon$} \stopcases \] results in an error around the \frac. Changing it to \dfrac makes the input compile ok