* \everymath problem
@ 2009-08-19 13:22 Eythan Weg
2009-08-19 14:47 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Eythan Weg @ 2009-08-19 13:22 UTC (permalink / raw)
To: ntg-context
Hi,
I use luatex 0.43 with yesterday's beta. Running
\everymath = {\displaystyle}
\starttext
${a\over b}$
\stoptext
results in
! Use of \dospecialabout doesn't match its definition.
l.4 ${a\over b
}$
Plain format under luatex has no problem here.
If I change \over to \times it runs with fonts changed
to roman (i.e, not math italics).
Thank you.
Eythan
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \everymath problem
2009-08-19 13:22 \everymath problem Eythan Weg
@ 2009-08-19 14:47 ` Hans Hagen
2009-08-19 14:53 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2009-08-19 14:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
Eythan Weg wrote:
> Hi,
>
>
> I use luatex 0.43 with yesterday's beta. Running
>
> \everymath = {\displaystyle}
>
> \starttext
> ${a\over b}$
>
> \stoptext
>
> results in
>
> ! Use of \dospecialabout doesn't match its definition.
> l.4 ${a\over b
> }$
>
> Plain format under luatex has no problem here.
>
> If I change \over to \times it runs with fonts changed
> to roman (i.e, not math italics).
taco and i looked into it (fearing big problems) but it's actually
normal; use
\everymath = \expandafter{\the\everymath \displaystyle}
or
\appendtoks \displaystyle \to \everymath
as (among other important things) \everymath does initialize \over
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \everymath problem
2009-08-19 14:47 ` Hans Hagen
@ 2009-08-19 14:53 ` Wolfgang Schuster
2009-08-20 14:59 ` Frac (was \everymath problem) Aditya Mahajan
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2009-08-19 14:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 19.08.2009 um 16:47 schrieb Hans Hagen:
> Eythan Weg wrote:
>> Hi,
>> I use luatex 0.43 with yesterday's beta. Running \everymath =
>> {\displaystyle}
>> \starttext
>> ${a\over b}$
>> \stoptext
>> results in ! Use of \dospecialabout doesn't match its definition.
>> l.4 ${a\over b
>> }$
>> Plain format under luatex has no problem here.
>> If I change \over to \times it runs with fonts changed
>> to roman (i.e, not math italics).
>
> taco and i looked into it (fearing big problems) but it's actually
> normal; use
>
> \everymath = \expandafter{\the\everymath \displaystyle}
>
> or
>
> \appendtoks \displaystyle \to \everymath
>
> as (among other important things) \everymath does initialize \over
And with \frac it can be configured at context low level (why no key
for \setupmathematics?)
\chardef\mathfracmode=1 % 0=auto, 1=displaystyle, 2=textstyle,
3=scriptstyle, 4=scriptscriptstyle, 5=mathstyle
$\frac{a}{b}$
Wolfgang
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Frac (was \everymath problem)
2009-08-19 14:53 ` Wolfgang Schuster
@ 2009-08-20 14:59 ` Aditya Mahajan
0 siblings, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2009-08-20 14:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 19 Aug 2009, Wolfgang Schuster wrote:
> And with \frac it can be configured at context low level (why no key for
> \setupmathematics?)
>
> \chardef\mathfracmode=1 % 0=auto, 1=displaystyle, 2=textstyle, 3=scriptstyle,
> 4=scriptscriptstyle, 5=mathstyle
>
> $\frac{a}{b}$
I am thinking 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
scriptstyle/scriptscriptstyle: (not sure when they would be needed)
I need to check what is the difference between mathfracmode=0 and 5.
We can also interface to vulgar fractions.
Aditya
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-20 14:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-19 13:22 \everymath problem Eythan Weg
2009-08-19 14:47 ` Hans Hagen
2009-08-19 14:53 ` Wolfgang Schuster
2009-08-20 14:59 ` Frac (was \everymath problem) Aditya Mahajan
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).