From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74133 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 19:22: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-1901959944-1327537362=:24323" X-Trace: dough.gmane.org 1327537390 11758 80.91.229.12 (26 Jan 2012 00:23:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2012 00:23:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 26 01:23:05 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 1RqD7I-0000dw-Es for gctc-ntg-context-518@m.gmane.org; Thu, 26 Jan 2012 01:23:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B8EB8CB1FC; Thu, 26 Jan 2012 01:23:03 +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 jOSAQI3iTWym; Thu, 26 Jan 2012 01:23:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BBDC1CB1F8; Thu, 26 Jan 2012 01:23:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 44EF6CB1F8 for ; Thu, 26 Jan 2012 01:22:59 +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 P1cn-994y+x7 for ; Thu, 26 Jan 2012 01:22:47 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id E3BBECB1F5 for ; Thu, 26 Jan 2012 01:22:46 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0Q0MhBR017401 for ; Thu, 26 Jan 2012 01:22:45 +0100 Original-Received: FROM [10.0.2.15] (wpa044007.Wireless.McGill.CA [142.157.44.7]) By hellskitchen.mr.itd.umich.edu ID 4F209CD2.3A230.28825 ; Authuser adityam; 25 Jan 2012 19:22:42 EST In-Reply-To: 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: 05Gq0mILC - ffd1e6c2d169 - 20120126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:74133 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-1901959944-1327537362=:24323 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 26 Jan 2012, Philipp A. wrote: > 2012/1/25 Aditya Mahajan > >> Better is to use: \StrikeMeFrame{\mathsurround\zeropoint$#1$}. But for >> this to work in subscripts and superscripts, you must use math palette. >> IIRC, \mframed does that. In principle: >> >> \mframed[background=3Dstrikeme]{**...} >> >> should work (untested). >> >> @Hans: Can we have \definemframed etc as well? >> >> Aditya >> > > so this should work? > > =E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92= =E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2= =80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80=92=E2=80= =92=E2=80=92=E2=80=92=E2=80=92=E2=80=92 > > \startuniqueMPgraphic{strikeme} > path p ; p :=3D OverlayBox topenlarged -ExHeight bottomenlarged -ExHeig= ht ; > draw llcorner p -- urcorner p withcolor OverlayColor ; > \stopuniqueMPgraphic > > \defineoverlay[strikeme][\uniqueMPgraphic{strikeme}] > > \def\strike#1{% > \ifmmode% > \mframed[background=3Dstrikeme,frame=3Doff]{#1}% > \else% > \inframed[background=3Dstrikeme,frame=3Doff]{#1}% > \fi} > > \starttext > \startformula > {\strike2a + \strike ab \over \strike a} =3D a > \stopformula > > Works in text, \strike{two}too! > > \stoptext Don't use {... \over ...} as it will mess up the calculation of math=20 style. \frac{...}{...} is more robust. Aditya --0-1901959944-1327537362=: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-1901959944-1327537362=:24323--