From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math typesetting problems
Date: Mon, 28 Jan 2013 21:56:06 +0100 [thread overview]
Message-ID: <B2BB6BCD-72C6-4B36-8AA9-3FC542746D38@gmail.com> (raw)
In-Reply-To: <CAEPRRH3b-2NRtH6kjex=ATDZgs4_i8kopxLF9_+RF7dheCW-yA@mail.gmail.com>
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
Using \type{\frac} gives:
\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))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
\stopformula
\blank
Using \type{\over} gives:
\startformula
f_{B_t | B_s = S, B_u = U}(x) = {
e^{-{(u-s)x^2 - 2x(S(u-t) + U(t-s)) +
{(S(u-t) + U(t-s))^2 \over (u-s)} \over 2(t-s)(u-t)}} \over
\sqrt{2\pi {(t-s)(u-t) \over u-s}}}
\stopformula
\stoptext
Best regards: OK
On 28 janv. 2013, at 10:11, Janne Junnila <janne.junnila@gmail.com> wrote:
> 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) +
> 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
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2013-01-28 20:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-27 11:52 Janne Junnila
2013-01-27 12:09 ` Sietse Brouwer
2013-01-27 13:11 ` Janne Junnila
2013-01-27 14:50 ` Rogers, Michael K
2013-01-27 15:13 ` Roland Thiers
2013-01-28 9:11 ` Janne Junnila
2013-01-28 17:34 ` Roland Thiers
2013-01-28 19:41 ` Aditya Mahajan
2013-01-28 20:33 ` Wolfgang Schuster
2013-01-28 20:48 ` Aditya Mahajan
2013-01-28 20:59 ` Wolfgang Schuster
2013-01-28 23:20 ` Khaled Hosny
2013-04-06 21:35 ` Hans Hagen
2013-01-28 20:56 ` Otared Kavian [this message]
2013-01-28 21:09 ` Aditya Mahajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B2BB6BCD-72C6-4B36-8AA9-3FC542746D38@gmail.com \
--to=otared@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).