From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50667 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: bugs in math engine? Date: Thu, 21 May 2009 09:40:03 -0400 (EDT) Message-ID: References: <09810186-AD6A-4FC2-B2BE-F12A4C9B203C@mpq.mpg.de> <6D35B20E-B10C-4F81-A0DB-A171EF1E6C15@mpq.mpg.de> <4A152408.3070508@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242913288 26696 80.91.229.12 (21 May 2009 13:41:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2009 13:41:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 21 15:41:21 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M78WO-00018r-TW for gctc-ntg-context-518@m.gmane.org; Thu, 21 May 2009 15:41:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 59BDC1FE2B; Thu, 21 May 2009 15:41:19 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27514-04; Thu, 21 May 2009 15:40:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D7A871FE04; Thu, 21 May 2009 15:40:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B29BB1FE04 for ; Thu, 21 May 2009 15:40:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26337-04 for ; Thu, 21 May 2009 15:40:28 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id CF6EF1FDF0 for ; Thu, 21 May 2009 15:40:28 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4LDeRNj010368 for ; Thu, 21 May 2009 15:40:28 +0200 Original-Received: FROM [192.168.17.189] (Unknown [66.135.114.100]) By hackers.mr.itd.umich.edu ID 4A1559CA.29625.25153 ; Authuser adityam; 21 May 2009 09:40:26 EDT In-Reply-To: <4A152408.3070508@wxs.nl> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 229640649 - 0ed675da8c9a - 20090521 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50667 Archived-At: On Thu, 21 May 2009, Hans Hagen wrote: > Aditya Mahajan wrote: >> On Wed, 20 May 2009, Oliver Buerschaper wrote: >> >>> Proposed patch: >>> >>> diff math-def.mkiv.orig math-def.mkiv >>> 100,105c100,105 >>> < \definemathcommand [integers] {\mathblackboard{Z}} >>> < \definemathcommand [reals] {\mathblackboard{R}} >>> < \definemathcommand [rationals] {\mathblackboard{Q}} >>> < \definemathcommand [naturalnumbers]{\mathblackboard{N}} >>> < \definemathcommand [complexes] {\mathblackboard{C}} >>> < \definemathcommand [primes] {\mathblackboard{P}} >>> --- >>>> \definemathcommand [integers] {{\mathblackboard Z}} >>>> \definemathcommand [reals] {{\mathblackboard R}} >>>> \definemathcommand [rationals] {{\mathblackboard Q}} >>>> \definemathcommand [naturalnumbers]{{\mathblackboard N}} >>>> \definemathcommand [complexes] {{\mathblackboard C}} >>>> \definemathcommand [primes] {{\mathblackboard P}} >>> >>> Hans, Aditya, does this make sense? >> >> Yes, I should unlearn amsmath syntax at some stage. > > \unexpanded\def\mathscript {\setmathalphabet{script}} > \unexpanded\def\mathfraktur {\setmathalphabet{fraktur}} > \unexpanded\def\mathblackboard{\setmathalphabet{blackboard}} > > we can make these into > > \unexpanded\def\mathscript #1{{\setmathalphabet{script}#1}} > \unexpanded\def\mathfraktur #1{{\setmathalphabet{fraktur}#1}} > \unexpanded\def\mathblackboard#1{{\setmathalphabet{blackboard}#1}} > > \unexpanded\def\mathsr{\setmathalphabet{script}} > \unexpanded\def\mathfr{\setmathalphabet{fraktur}} > \unexpanded\def\mathbb{\setmathalphabet{blackboard}} > > does that make sense? Actually, better will be if we go for full ams compatibility: Leave \mathscript, \mathfraktur, and \mathblackboard as they are, and define \unexpanded\def\mathcal #1{{\setmathalphabet{script}#1}} \unexpanded\def\mathfrak#1{{\setmathalphabet{fraktur}#1}} \unexpanded\def\mathbb #1{{\setmathalphabet{blackboard}#1}} %TODO: Once bold is settled %unexpanded\def\mathbf #1{{\setmathalphabet{bold}#1}} % TODO: I need to actually see what exactly these commands to %unexpanded\def\mathrm #1{{....} %unexpanded\def\mathit #1{{....} % TODO: Probably better will be \mathss since we use ss for sans serif %unexpanded\def\mathsf #1{{....} % TODO: \mathscr is euler script. We can add this, but need to figure out % how to deal with two script families in a configurable way % For LM one can go with either euler script or RSFS (or both?) %unexpanded\def\mathscr #1{{...} 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 ___________________________________________________________________________________