From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74127 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: =?utf-8?q?=22overscored=22_or_=22overlined=22_text_?= =?utf-8?q?=E2=80=A6_=28or_whatever_it_should_be_called=29?= Date: Wed, 25 Jan 2012 15:17:37 -0500 (EST) Message-ID: References: <430D8C74-8823-42B5-A05B-EBBCA1F22E8A@gmail.com> <4F1FF2ED.8030708@wxs.nl> <4F2043C4.4050705@wxs.nl> <5D59323D-C56A-46C6-88ED-6BD550500655@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-446365148-1327522659=:24323" X-Trace: dough.gmane.org 1327522689 25652 80.91.229.12 (25 Jan 2012 20:18:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2012 20:18:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 25 21:18:04 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rq9I6-0003fZ-5X for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jan 2012 21:17:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ED026CB1EA; Wed, 25 Jan 2012 21:17:57 +0100 (CET) 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 NV049lX8NRG1; Wed, 25 Jan 2012 21:17:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 99527CB1F1; Wed, 25 Jan 2012 21:17:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A00CCCB1F1 for ; Wed, 25 Jan 2012 21:17:45 +0100 (CET) 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 z2BPAZwXijCk for ; Wed, 25 Jan 2012 21:17:43 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id D4CA5CB1EA for ; Wed, 25 Jan 2012 21:17:43 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0PKHfZl002986 for ; Wed, 25 Jan 2012 21:17:42 +0100 Original-Received: FROM [10.0.2.15] (wpa044007.Wireless.McGill.CA [142.157.44.7]) By hellskitchen.mr.itd.umich.edu ID 4F206363.89558.19184 ; Authuser adityam; 25 Jan 2012 15:17:39 EST In-Reply-To: <5D59323D-C56A-46C6-88ED-6BD550500655@googlemail.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; 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: 0dGpUhFbF - ee45d76eb00f - 20120125 (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.12 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 Xref: news.gmane.org gmane.comp.tex.context:74127 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-446365148-1327522659=:24323 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 25 Jan 2012, Wolfgang Schuster wrote: > > Am 25.01.2012 um 20:20 schrieb Philipp A.: > >> 2012/1/25 Hans Hagen >> \ifmmode >> >> thanks. that was obvious=85 >> >> $\StrikeMe{x}$ >> >> unfortunately this does the same as my tikz version: it exits math mode: >> >> $\StrikeMe{\ifmmode math mode! \else no math mode :( \fi} \ifmmode math = mode. \else wat \fi$ >> >> returns >> >> no math mode :( math mode. > > \framed puts the content in a \hbox and when you put a \hbox in a math=20 > environment the text in the box is typeset in text mode, this feature is= =20 > used for the \text command. To get now the content of the \StrikeMe=20 > command in math mode a different definition. > > \defineframed[StrikeMeFrame][background=3Dstrikeme,frame=3Doff,offset=3D0= pt,location=3Dlow,backgroundcolor=3Dblue] > > \define[1]\StrikeMe > {\ifmmode > \StrikeMeFrame{$#1$}% > \else > \StrikeMeFrame{#1}% > \fi} Better is to use: \StrikeMeFrame{\mathsurround\zeropoint$#1$}. But for=20 this to work in subscripts and superscripts, you must use math palette.=20 IIRC, \mframed does that. In principle: \mframed[background=3Dstrikeme]{...} should work (untested). @Hans: Can we have \definemframed etc as well? Aditya --0-446365148-1327522659=:24323 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --0-446365148-1327522659=:24323--