ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: Tarik Kara <ktarik@Bilkent.EDU.TR>,
	ConTeXt mailing list <ntg-context@ntg.nl>
Subject: Re: Problem with \max
Date: Fri, 03 Aug 2001 16:13:22 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20010803161123.02953f58@server-1> (raw)
In-Reply-To: <5.1.0.14.0.20010803101446.00aa0e30@public.uni-hamburg.de>

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


      reply	other threads:[~2001-08-03 14:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-03  7:24 Tarik Kara
2001-08-03  8:29 ` Eckhart Guthöhrlein
2001-08-03 14:13   ` Hans Hagen [this message]

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=5.1.0.14.1.20010803161123.02953f58@server-1 \
    --to=pragma@wxs.nl \
    --cc=ktarik@Bilkent.EDU.TR \
    --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).