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 =

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 with

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 and

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Otared Kavian
Hi Janne, Personnally I prefer to use the Plain TeX alternative \over (which works fine in ConTeXt), that is ${a \over b}$ instead of $\frac{a}{b}$ Compare the following two outputs in the example you want to typeset: I think the second is more or less what you want \starttext

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 Aditya Mahajan
On Mon, 28 Jan 2013, Otared Kavian wrote: Hi Janne, Personnally I prefer to use the Plain TeX alternative \over (which works fine in ConTeXt), that is ${a \over b}$ instead of $\frac{a}{b}$ Compare the following two outputs in the example you want to typeset: I think the

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 will no

[NTG-context] Math typesetting problems

2013-01-27 Thread Janne Junnila
Hi all, I've run into a couple of problems with math typesetting. (I'm using the latest ConTeXt standalone beta.) The following doesn't print [x,x] at all: \startformula [x,x]_t = x \stopformula It can be fixed by using \left[x,x\right]_t, but I find the behaviour weird. Another problem I have

Re: [NTG-context] Math typesetting problems

2013-01-27 Thread Sietse Brouwer
Hi Janne, Janne wrote: I've run into a couple of problems with math typesetting. (I'm using the latest ConTeXt standalone beta.) The following doesn't print [x,x] at all: \startformula [x,x]_t = x \stopformula This is because \startformula can take one optional argument in square brackets,

Re: [NTG-context] Math typesetting problems

2013-01-27 Thread Janne Junnila
Hi Sietse, Sietse wrote: This is because \startformula can take one optional argument in square brackets, and [x,x] is interpreted as that argument. You can make \startformula stop looking for [...] either by telling it to `\relax`, or by giving it an empty `[]` of its own to chew on. Thanks

Re: [NTG-context] Math typesetting problems

2013-01-27 Thread Rogers, Michael K
On Jan 27, 2013, at 7:09 AM, Sietse Brouwer sbbrou...@gmail.com wrote: This is because \startformula can take one optional argument in square brackets, and [x,x] is interpreted as that argument. You can make \startformula stop looking for [...] either by telling it to `\relax`, or by giving

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 to