From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50635 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: bugs in math engine? Date: Wed, 20 May 2009 16:26:24 +0200 Message-ID: <6D35B20E-B10C-4F81-A0DB-A171EF1E6C15@mpq.mpg.de> References: <09810186-AD6A-4FC2-B2BE-F12A4C9B203C@mpq.mpg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242829641 5716 80.91.229.12 (20 May 2009 14:27:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2009 14:27:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 20 16:27:14 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 1M6mlD-0005Iv-3u for gctc-ntg-context-518@m.gmane.org; Wed, 20 May 2009 16:27:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 284B71FCD0; Wed, 20 May 2009 16:27:10 +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 13007-03; Wed, 20 May 2009 16:26:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7F8EF1FCC6; Wed, 20 May 2009 16:26:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0A0C41FCC6 for ; Wed, 20 May 2009 16:26:35 +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 10088-07 for ; Wed, 20 May 2009 16:26:25 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 5BEFE1FCBB for ; Wed, 20 May 2009 16:26:25 +0200 (CEST) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.30.42]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4KEQO3w028574 for ; Wed, 20 May 2009 16:26:24 +0200 Original-Received: from [192.168.0.2] (g230067133.adsl.alicedsl.de [92.230.67.133]) by post.rzg.mpg.de (8.14.3/8.14.3) with ESMTP id n4KEQO9g979890 for ; Wed, 20 May 2009 16:26:24 +0200 In-Reply-To: X-Mailer: Apple Mail (2.935.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=130.183.30.42; country=DE; region=02; city=Ismaning; latitude=48.2333; longitude=11.6333; http://maps.google.com/maps?q=48.2333,11.6333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 229184694 - 8244d0a2bda2 - 20090520 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:50635 Archived-At: >> 1. The symbols for number sets in Cambria Math aren't taken from >> the double-struck variant. > > Hans, please apply the following patch to math-def.mkiv > > diff --git a/math-def.mkiv b/math-def.mkiv > index 31db66e..30beb5c 100644 > --- a/math-def.mkiv > +++ b/math-def.mkiv > @@ -97,12 +97,12 @@ > \definemathcommand [tanh] [nolop] {\mfunction{tanh}} > \definemathcommand [tan] [nolop] {\mfunction{tan}} > > -\definemathcommand [integers] {\mfunction{Z}} > -\definemathcommand [reals] {\mfunction{R}} > -\definemathcommand [rationals] {\mfunction{Q}} > -\definemathcommand [naturalnumbers] {\mfunction{N}} > -\definemathcommand [complexes] {\mfunction{C}} > -\definemathcommand [primes] {\mfunction{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}} > > % using attributes Many thanks! Although this doesn't quite solve the bug yet, now I know where to look ... Test case: --- \starttext \math{\primes P}, \math{\naturalnumbers N}, \math{\integers Z}, \math{\rationals Q}, \math{\reals R}, \math{\complexes C} \stoptext --- 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? Oliver ___________________________________________________________________________________ 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 ___________________________________________________________________________________