From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48685 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Value of Metapost variable as a label Date: Tue, 24 Mar 2009 00:16:47 -0400 (EDT) Message-ID: References: <3b4b12310903211339h5b325c67k3e504e81cdc33e0c@mail.gmail.com> <871vsqgtee.fsf@gmail.com> <6faad9f00903221736r5b6dab4fj3b6e18fbc2c80139@mail.gmail.com> <87mybbfzsq.fsf@gmail.com> 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 1237868305 13989 80.91.229.12 (24 Mar 2009 04:18:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Mar 2009 04:18:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 24 05:19:43 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 1Lly72-0003zw-AA for gctc-ntg-context-518@m.gmane.org; Tue, 24 Mar 2009 05:19:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 152091FE34; Tue, 24 Mar 2009 05:18:15 +0100 (CET) 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 18324-05; Tue, 24 Mar 2009 05:17:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4B6D51FE26; Tue, 24 Mar 2009 05:17:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5619A1FE26 for ; Tue, 24 Mar 2009 05:17:36 +0100 (CET) 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 21233-06-3 for ; Tue, 24 Mar 2009 05:17:29 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id AD2581FE25 for ; Tue, 24 Mar 2009 05:17:29 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2O4HRqn007212 for ; Tue, 24 Mar 2009 05:17:28 +0100 Original-Received: FROM [192.168.2.8] (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY tombraider.mr.itd.umich.edu ID 49C85ED6.25D6C.26379 ; 24 Mar 2009 00:17:26 -0400 In-Reply-To: <87mybbfzsq.fsf@gmail.com> 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.93.161; 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: 197931555 - 9354957e054d - 20090324 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:48685 Archived-At: On Mon, 23 Mar 2009, Eythan Weg wrote: > > Aditya Mahajan > Sun, 22 Mar 2009 22:24:17 -0400 (EDT) > > On Mon, 23 Mar 2009, Mojca Miklavec wrote: > > >> This however fails: > >> k:=2; > >> label.bot(textext("$1\over" & decimal k & "$"), (10,0)) ; > > > > Try with \frac instead. > > Or prevent expansion of \over > > label.bot(textext("$1\noexpand\over" & decimal k & "$"), (10,0)) ; > > Why \atop or \choose do not need \noexpand? > What is special about \over? It is redefined by ConTeXt to be a useful command in text mode. \starttext \section[sec:test] {Some section} See \over[sec:test] \stoptext Hans, is it OK to change the definitions in core-def to \ifnum\texengine=\luatexengine \ifx\in \undefined\else \let\normalmathin \in \unexpanded\def\in {\mathortext\normalmathin \dospecialin } \fi \ifx\at \undefined\else \let\normalmathat \at \unexpanded\def\at {\mathortext\normalmathat \dospecialat } \fi \ifx\about\undefined\else \let\normalmathabout\about \unexpanded\def\about{\mathortext\normalmathabout\dospecialabout} \fi \ifx\from \undefined\else \let\normalmathfrom \from \unexpanded\def\from {\mathortext\normalmathfrom \dospecialfrom } \fi \ifx\over \undefined\else \let\normalmathover \over \unexpanded\def\over {\mathortext\normalmathover \dospecialabout} \fi \fi (added \unexpanded). This is certainly useful for \in and \over, maybe not so much for the other three. 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 ___________________________________________________________________________________