* Problem with \max
@ 2001-08-03 7:24 Tarik Kara
2001-08-03 8:29 ` Eckhart Guthöhrlein
0 siblings, 1 reply; 3+ messages in thread
From: Tarik Kara @ 2001-08-03 7:24 UTC (permalink / raw)
[-- Attachment #1: Type: TEXT/PLAIN, Size: 415 bytes --]
A while ago a have posted a message about \max not working as expected
when one has
\setupbodyfont[ams]
in the document. For example the following code
\setupbodyfont[ams]
\starttext
$x = \max \{y: y\in A\}$
\stoptext
Does not print a "max" after "x=" but prints "{y : y\in A}" at a
smaller size. I am attaching the pdf output and the log file. What is the
problem and how can I solve it.
Thanks,
Tar{\i}k
[-- Attachment #2: Type: APPLICATION/PDF, Size: 13296 bytes --]
[-- Attachment #3: Type: TEXT/PLAIN, Size: 2280 bytes --]
This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (MiKTeX 2.1) (preloaded format=cont-en 2001.7.16) 3 AUG 2001 10:19
entering extended mode
**max_test.tex
(max_test.tex{pdftex.cfg}
ConTeXt ver: 2001.7.11 fmt: 2001.7.16 int: english mes: english
language : language en is active
system : cont-new loaded
(d:\localtexmf\tex\context\base\cont-new.tex
systems : beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 202] \ifcsname
)
system : cont-old loaded
(d:\localtexmf\tex\context\base\cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(d:\localtexmf\tex\context\base\cont-fil.tex
loading : Context File Synonyms
)
bodyfont : 12pt rm is loaded
language : patterns 2-en-2 2-uk-2 2-de-2 2-fr-2 2-es-2 2-nl-2 loaded
specials : tex,postscript,rokicki loaded
system : max_test.top loaded
(./max_test.top
specials : tex,postscript,rokicki is reset
specials : loading definition file tpd
(d:\localtexmf\tex\context\base\spec-tpd.tex <unprotect 2>
specials : loading definition file fdf
(d:\localtexmf\tex\context\base\spec-fdf.tex <unprotect 3> <unprotect 4>
<protect 4> <protect 3>)
specials : fdf loaded
<unprotect 3> <protect 3> <protect 2>)
specials : fdf,tpd loaded
) (./max_test.tuo) (./max_test.tuo) (./max_test.tuo) (./max_test.tuo)
(./max_test.tuo) (./max_test.tuo) (./max_test.tuo) (./max_test.tuo)
(./max_test.tuo) (./max_test.tuo) (./max_test.tuo)
(d:\localtexmf\tex\context\base\type-pre.tex
typescript : [math] [ams] [all]
(d:\localtexmf\tex\context\base\type-syn.tex)
(d:\localtexmf\tex\context\base\type-enc.tex)
(d:\localtexmf\tex\context\base\type-siz.tex)
(d:\localtexmf\tex\context\base\type-map.tex)
(d:\localtexmf\tex\context\base\type-spe.tex
(d:\localtexmf\tex\context\base\math-ams.tex))
(d:\localtexmf\tex\context\base\type-exa.tex)) (./max_test.tuo) (./max_test.tuo
)
systems : begin file max_test at line 3
[1.1{psfonts.map}]
systems : end file max_test at line 5
)<cmr9.pfb><cmmi9.pfb><cmsy9.pfb><cmmi12.pfb><cmr12.pfb>
Output written on max_test.pdf (1 page, 13296 bytes).
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with \max
2001-08-03 7:24 Problem with \max Tarik Kara
@ 2001-08-03 8:29 ` Eckhart Guthöhrlein
2001-08-03 14:13 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Eckhart Guthöhrlein @ 2001-08-03 8:29 UTC (permalink / raw)
At 10:24 03.08.2001 +0300, Tarik Kara wrote:
>A while ago a have posted a message about \max not working as expected
>when one has
>
>\setupbodyfont[ams]
>
>in the document. For example the following code
>
>\setupbodyfont[ams]
>
>\starttext
>$x = \max \{y: y\in A\}$
>\stoptext
>
>Does not print a "max" after "x=" but prints "{y : y\in A}" at a
>smaller size. I am attaching the pdf output and the log file. What is the
>problem and how can I solve it.
The ams symbols are made available in fonts chosable by \ma and \mb.
According to the context font selection commands, this means that \max
switches to \ma at a smaller size (try \maxx). (Hans will correct me if I
didn't get it right, I hope).
Until the collision is fixed, you could define the max function under a
different name, e.g.
\def\maxf{\mathop{\rm max}\nolimits}
Eckhart
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with \max
2001-08-03 8:29 ` Eckhart Guthöhrlein
@ 2001-08-03 14:13 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2001-08-03 14:13 UTC (permalink / raw)
Cc: Tarik Kara, ConTeXt mailing list
At 10:29 AM 8/3/2001 +0200, Eckhart Guthöhrlein wrote:
>At 10:24 03.08.2001 +0300, Tarik Kara wrote:
>>A while ago a have posted a message about \max not working as expected
>>when one has
>>
>>\setupbodyfont[ams]
>>
>>in the document. For example the following code
>>
>>\setupbodyfont[ams]
>>
>>\starttext
>>$x = \max \{y: y\in A\}$
>>\stoptext
>>
>>Does not print a "max" after "x=" but prints "{y : y\in A}" at a
>>smaller size. I am attaching the pdf output and the log file. What is the
>>problem and how can I solve it.
>
>The ams symbols are made available in fonts chosable by \ma and \mb.
>According to the context font selection commands, this means that \max
>switches to \ma at a smaller size (try \maxx). (Hans will correct me if I
>didn't get it right, I hope).
>Until the collision is fixed, you could define the max function under a
>different name, e.g.
>\def\maxf{\mathop{\rm max}\nolimits}
ah, that's a pretty good analysis, i need to catch this!
for the moment say:
\appendtoks\protected\def\max{\dohandlemathtoken{max}}\to\everymath
in cont-new.tex
Hans
PS. Time to test this in font-ini.tex: ¦ {%\def\c!mm!{#2}\ifx\c!mm!\c!mm
\else % test first
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-08-03 14:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-03 7:24 Problem with \max Tarik Kara
2001-08-03 8:29 ` Eckhart Guthöhrlein
2001-08-03 14:13 ` Hans Hagen
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).