From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83571 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Questions about mathfence Date: Tue, 30 Jul 2013 09:28:55 -0400 Message-ID: <507525E5-A7E1-40DC-9981-06B2C087A768@umich.edu> References: <51F6371D.6010104@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1375190952 25435 80.91.229.3 (30 Jul 2013 13:29:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jul 2013 13:29:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 30 15:29:13 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V49zD-0002T5-0T for gctc-ntg-context-518@m.gmane.org; Tue, 30 Jul 2013 15:29:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3CECD101F2; Tue, 30 Jul 2013 15:28:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5hX9sjFMXvYf; Tue, 30 Jul 2013 15:28:31 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B5812101E5; Tue, 30 Jul 2013 15:28:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A7C70101E5 for ; Tue, 30 Jul 2013 15:28:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aFT0m+hCpwfz for ; Tue, 30 Jul 2013 15:28:29 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 8D422101E4 for ; Tue, 30 Jul 2013 15:28:29 +0200 (CEST) Original-Received: from orford.cim.mcgill.ca (smtp.cim.mcgill.ca [132.206.73.2]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6UDSuLL022429 for ; Tue, 30 Jul 2013 15:28:56 +0200 Original-Received: from [192.168.2.29] (unknown [135.0.233.198]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: adityam) by orford.cim.mcgill.ca (Postfix) with ESMTPSA id 52289F7948 for ; Tue, 30 Jul 2013 09:28:55 -0400 (EDT) X-Mailer: iPad Mail (10B146) In-Reply-To: <51F6371D.6010104@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=132.206.73.2; country=CA; region=QC; city=Montreal; postalcode=h3a2k6; latitude=45.5000; longitude=-73.5833; http://maps.google.com/maps?q=45.5000,-73.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08K6BsUrK - ed2c409d7246 - 20130730 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83571 Archived-At: On 2013-07-29, at 5:34 AM, Hans Hagen wrote: > On 7/29/2013 3:24 AM, Aditya Mahajan wrote: >> Hi, >> >> Some questions/remarks about math fences >> >> 1. When using >> >> \definemathfence[colorbracket][bar][middle=0x7C,color=red, >> command=yes] >> \starttext >> >> \startformula >> \colorbracket{\frac {a}{b}\fence a = b}^n >> \stopformula >> >> \stoptext >> >> The delimiter is of the wrong color (black instead of red), and the >> clause after \fence is red. I am doing something wrong or is it a bug. > > Just not yet done .. coloring such math thingies is somewhat tricky ... added. Thanks. >> 2. For some types of expressions, for example, probability, the middle >> delimiter should have the space similar to mathrel, rather than mathord. >> For example, while typing I often use: >> >> \Pr\left( X = \frac {a}{b} \,\middle|\, Y = \frac{c}{d} \right) >> >> Would it be worthwhile to add these extra spaces by default (not sure >> what is the convention in physics/quantum mechanics for bra and ket >> notation) or as an option. > > I'll add \mskip\thinmuskip around the middle ... no clue what key/value to use so we can wait tile someone complaints Thanks. >> 3. Finally, why are the default values of left, middle, and right = >> 0x2E. Isn't 0x7C a better default? > > Well, the period is (for tex) special in the sense that it is a nop so if you only want > > ( > > and no > > ) > > then explaining to a user that a period is to be used to nil the right symbol is somewhat less troublesome. > > One sets up the wanted symbols anyway. Of course. I use unmatched delimiters so infrequently that I forgot about it. Math fences replace most of the functionality of my old mathsets module. The only missing feature is the text key, but that is a specialized use case, so I'll just update mathsets so that it uses math fences in the background. I it really necessary to use Unicode characters to specify left, right, etc? I ink that most math users will be more comfortable using literal symbols, {,[,(,|, etc or tex names \Vert, \vert, etc. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________