From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74132 Path: news.gmane.org!not-for-mail From: "Philipp A." 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: Thu, 26 Jan 2012 00:53:50 +0100 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="===============0921937949==" X-Trace: dough.gmane.org 1327535658 1323 80.91.229.12 (25 Jan 2012 23:54:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2012 23:54:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 26 00:54:13 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 1RqCfL-0004o7-DV for gctc-ntg-context-518@m.gmane.org; Thu, 26 Jan 2012 00:54:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E64D7CB1FB; Thu, 26 Jan 2012 00:54:08 +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 FMRwvDBbI9O7; Thu, 26 Jan 2012 00:54:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D1F15CB1F5; Thu, 26 Jan 2012 00:54:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AB2C3CB1F5 for ; Thu, 26 Jan 2012 00:54:04 +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 xLU79CCxWZBv for ; Thu, 26 Jan 2012 00:53:53 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id D6690CB1F3 for ; Thu, 26 Jan 2012 00:53:52 +0100 (CET) Original-Received: from mail-pw0-f41.google.com (mail-pw0-f41.google.com [209.85.160.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0PNrp65022975 for ; Thu, 26 Jan 2012 00:53:51 +0100 Original-Received: by pbaa12 with SMTP id a12so273887pba.14 for ; Wed, 25 Jan 2012 15:53:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=n+h3ftMZCA74MUiDTU5RkkzIYdy8oJGGpGeyfSXVZlg=; b=QTnKjKLMg6R8kW1k21uZuOxmq5OPLULks/WCbi71jXLnq0XVoKVGQAXs2V/3Ea8yXH w9Fs6xInQk4XqNKejIU05dXZy8DlHZbDC9bJ1Y3lpEMAgzpn0HiKUw5cupb+xbBdxvrp 1EFgHPyT1x+U2l1Fuqpu3NuRSOny7nYogvUtA= Original-Received: by 10.68.74.4 with SMTP id p4mr2577854pbv.123.1327535630341; Wed, 25 Jan 2012 15:53:50 -0800 (PST) Original-Received: by 10.143.157.13 with HTTP; Wed, 25 Jan 2012 15:53:50 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: L9IZXIiR_XP85aCwPQ4BJh6XkF8 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.160.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06GpXRPxO - d97825d98702 - 20120126 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:74132 Archived-At: --===============0921937949== Content-Type: multipart/alternative; boundary=f46d0413911dac572304b762f9dc --f46d0413911dac572304b762f9dc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 -ExHeigh= t ; 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 --f46d0413911dac572304b762f9dc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2012/1/25 Aditya Mahajan <<= a href=3D"mailto:adityam@umich.edu">adityam@umich.edu>
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}=
=C2=A0=C2=A0 path p ; p :=3D OverlayBox topenlarged -ExHeight bottomenlarg= ed -ExHeight ;
=C2=A0 =C2=A0draw llcorner p -- urcorner p withcolor OverlayColor ;
\stopuniqueMPgraphic

\defineoverlay[strikeme][\uniqueMPgraphic{strikeme}]

\def\strike#1= {%
\ifmmode%
\mframed[background=3Dstrikeme,frame=3Doff]{#1}%
\el= se%
\inframed[background=3Dstrikeme,frame=3Doff]{#1}%
\= fi}

\starttext
\startformula
{\strike2a + \strike ab \over \strike a}= =3D a
\stopformula

Works in text, \strike{two}too!

\stopt= ext
--f46d0413911dac572304b762f9dc-- --===============0921937949== 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 ___________________________________________________________________________________ --===============0921937949==--