From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25177 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Canceling common primes with strikeout Date: Sat, 14 Jan 2006 21:05:59 +0100 Message-ID: <6faad9f00601141205n2c702e05p2020ac0a9a2c4607@mail.gmail.com> References: <990A438B-D795-403F-8228-88EE1BB7AB36@cox.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1137269180 29912 80.91.229.2 (14 Jan 2006 20:06:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2006 20:06:20 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 14 21:06:13 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1Exrf3-0007bD-7e for gctc-ntg-context-518@m.gmane.org; Sat, 14 Jan 2006 21:06:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C1E0A12813; Sat, 14 Jan 2006 21:06:04 +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 17974-01; Sat, 14 Jan 2006 21:06:02 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7DAB2127EE; Sat, 14 Jan 2006 21:06:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0233C127EE for ; Sat, 14 Jan 2006 21:06:01 +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 17870-02 for ; Sat, 14 Jan 2006 21:06:00 +0100 (CET) Original-Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.193]) by ronja.ntg.nl (Postfix) with SMTP id 1DD771279F for ; Sat, 14 Jan 2006 21:05:59 +0100 (CET) Original-Received: by uproxy.gmail.com with SMTP id m2so243721uge for ; Sat, 14 Jan 2006 12:05:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Dm2LX5EqskLfrg5lP9xlutmsa4V3uGg4xBP53abZR1hLEvOFT3al9WX1VcstpYskH5cQxswsGU78y2Jk2mGh7PpB2hu0ziCcz46sztp7OnRFChREo1rbSnSl4ZTt+0L+aAaIQ58vFNRXAFd6BRxy/RyAaqPKNjnPXtNJnTZkHEg= Original-Received: by 10.49.7.17 with SMTP id k17mr151007nfi; Sat, 14 Jan 2006 12:05:59 -0800 (PST) Original-Received: by 10.48.223.20 with HTTP; Sat, 14 Jan 2006 12:05:59 -0800 (PST) Original-To: mailing list for ConTeXt users In-Reply-To: <990A438B-D795-403F-8228-88EE1BB7AB36@cox.net> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:25177 Archived-At: David Arnold wrote: > All, > > Anyone have a nice technique to "strike out" the common primes using > the color red? > > \placeformula[-] > \startformula > \frac{12}{18}=3D\frac{2\cdot2\cdot3}{2\cdot3\cdot3}=3D\frac23 > \stopformula A simple solution: \defineoverlay[strikeme][{\color[red]{\bf/}}] \def\strikeout#1{\mframed[frame=3Doff,background=3D{foreground,strikeme}]{#= 1}} will draw bold red slashes over the numbers. They still seem a bit too thin too me , but you could use other bolder characters if needed. A more complex solution with metafun: \startuniqueMPgraphic{strikeme} =09draw (0,0)--(OverlayWidth,OverlayHeight) withpen pencircle scaled 3pt withcolor red; \stopuniqueMPgraphic \defineoverlay[strikeme][\uniqueMPgraphic{strikeme}] \def\strikeout#1{\mframed[frame=3Doff,background=3Dstrikeme]{#1}} Usage: \startformula =20 \frac{12}{18}=3D\frac{\strikeout{2}\cdot2\cdot\strikeout{3}}{\strikeout{2}\= cdot\strikeout{3}\cdot3}=3D\frac23 \stopformula Mojca