From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13237 invoked from network); 22 Aug 2023 10:45:38 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 22 Aug 2023 10:45:38 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 80F92482C6B for ; Tue, 22 Aug 2023 12:44:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2y8ePCxKK5au for ; Tue, 22 Aug 2023 12:44:58 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A3676482CDB for ; Tue, 22 Aug 2023 12:44:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 93B7548132E for ; Tue, 22 Aug 2023 12:43:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jVVFZnC5XD2q for ; Tue, 22 Aug 2023 12:43:49 +0200 (CEST) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 2E06148130B for ; Tue, 22 Aug 2023 12:43:49 +0200 (CEST) Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5007f3d3235so3284355e87.2 for ; Tue, 22 Aug 2023 03:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692701028; x=1693305828; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=InIXaCtSeAmlRXuXJP7qdKVIgF+7sr70ULwpmn6U5K0=; b=HI28c2vXxc21WvY46hbK3j7SfjSqbUWFDZ7kLk/oMrF/JH60ldGhFg8N88+pQXc9cq O9XCNaGWzDu1shSIK3z9VPmq6Qp224+crJbc1lGLVfUPOl2K0LXkx+KYvKsm+Brnvm1T BxZ1UgHkAzreziY972pKmh2xVz8nIQuRm0FFtAZjlzN37HkPyyDP1LEu9PHI89BA4cd5 0c4e4EGcZNBj+aTMaUlDl9vHd/XR4kpF8G2ub7toXN7ZMGMtaJXOugawE5kUcG8knUtT zAibBfqPpj1IoX8ODyRLa1pk77RZ/wPAapQow+tdKQoKJ3FsuZsBcYnvcxgytI4acRCJ eQsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692701028; x=1693305828; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=InIXaCtSeAmlRXuXJP7qdKVIgF+7sr70ULwpmn6U5K0=; b=eK/S5qpN+CvOJg8aXYsajJPVz9fnt0neTkHam6+rHWvfrG+w0DyidzlU653keN2S/w YQSPebGwkw3U33/Agr4l13GLOcZ1DjEyO6z7UmcGynnbYJ0cwiaAKK5e4VKiLV+/GypP 3kdBx9zutWCeNbPCoD0EaCb9Pd9HVLvcQ/RtsfsGde9J46Kl0lQSQQRwbfkB5i/eD007 5unDlP/1pzgS1LErrsZ/fVUAFMKioCNNc5OOEv+OjBrcb65hw5YETAZCir5cEjuwc1Yl 8G+X5Rr15lKKlWjpwbqEiVSpZ629MbXlG2P2YR4cudwXk/XR0tyMIaqUW0KdlKr9XAZv nDpg== X-Gm-Message-State: AOJu0Yy9ngewUBevwgmMCGQmSUnvXtAkogCMqLr7PMt8cdOqRoIt6Vln lpKb7KANFb5Kx4TuX8sivV5Ts03dTatdB/fbK3Q3uUVRKrA= X-Google-Smtp-Source: AGHT+IFwycFH1u2jKSLNrdYEtDk0cyIIo//6s4pMQPbn6ywy/0jPHh/7tChW1hZJtxuiNzoN3aCI/bDgsDCQH9aLnT4= X-Received: by 2002:a05:6512:3b8c:b0:4fd:d1df:9bda with SMTP id g12-20020a0565123b8c00b004fdd1df9bdamr8429579lfv.42.1692701027961; Tue, 22 Aug 2023 03:43:47 -0700 (PDT) MIME-Version: 1.0 References: <4e93db0d-be36-4ff0-9125-f65fcf92dbd5@Spark> In-Reply-To: <4e93db0d-be36-4ff0-9125-f65fcf92dbd5@Spark> From: Fabrice Couvreur Date: Tue, 22 Aug 2023 12:44:44 +0000 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: FRRKL2BMEL2JTRN4NZQGYH723GKQHP7R X-Message-ID-Hash: FRRKL2BMEL2JTRN4NZQGYH723GKQHP7R X-MailFrom: fabrice1.couvreur@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Equivalent of the \cancel command with conTeXt List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============2800861397378188269==" --===============2800861397378188269== Content-Type: multipart/alternative; boundary="0000000000007b90a4060380ab5e" --0000000000007b90a4060380ab5e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Alexander, Thank you for this suggestion which will do the trick. Fabrice Le mar. 22 ao=C3=BBt 2023 =C3=A0 10:26, Alexandre Christe a =C3=A9crit : > Hi Fabrice, > > I have this from former exchanges > > % Cancel command for use in equations. > \startuniqueMPgraphic{cross out} > picture cross; > cross :=3D image(draw (0,0)--(1,1); draw (0,1)--(1,0);); > draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircl= e > scaled .8pt ; > \stopuniqueMPgraphic > > \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] > > \define[1]\cancel{% > \ifmmode > \mframed[background=3Dcanceloverlay, frame=3Doff, offset=3Doverlay]{{#1}= }% > \else% > \framed[background=3Dcanceloverlay, frame=3Doff, offset=3Doverlay]{{#1}}= % > \fi% > } > > Maybe something else is available nowadays. > > A. Christe > Le 22 ao=C3=BBt 2023 =C3=A0 12:22 +0200, Fabrice Couvreur < > fabrice1.couvreur@gmail.com>, a =C3=A9crit : > > Hi, > In an algebraic expression, it is sometimes interesting to cross out > terms. With LaTeX, there is the \cancel command from the package cancel. = Is > there an equivalent with conTeXt ? > Thanks > Fabrice > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > _________________________________________________________________________= __________ > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > _________________________________________________________________________= __________ --0000000000007b90a4060380ab5e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Alexander,
Thank you for this suggestion which will do th= e trick.
Fabrice

Le=C2=A0mar. 22 ao=C3=BBt 2023 =C3=A0=C2=A010:26,= Alexandre Christe <aleks.chr= iste@gmail.com> a =C3=A9crit=C2=A0:
Hi Fabrice,

I have this from former exchanges

% Cancel command for use in equations.
\startuniqueMPgraphic{cross out}
=C2=A0picture cross;
=C2=A0cross :=3D image(draw (0,0)--(1,1); draw (0,1)--(1,0););
=C2=A0draw cross xscaled \overlaywidth yscaled \overlayheight withpen penci= rcle=C2=A0
scaled .8pt ;
\stopuniqueMPgraphic

\defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}]

\define[1]\cancel{%
=C2=A0\ifmmode
=C2=A0\mframed[background=3Dcanceloverlay, frame=3Doff, offset=3Doverlay]{{= #1}}%
=C2=A0\else%
=C2=A0\framed[background=3Dcanceloverlay, frame=3Doff, offset=3Doverlay]{{#= 1}}%
=C2=A0\fi%
}

Maybe something else is available nowadays.

A. Christe
Le 22 ao=C3=BBt 2023 =C3=A0 12:22 +0200, = Fabrice Couvreur <fabrice1.couvreur@gmail.com>, a =C3=A9crit :
Hi,
In an= algebraic expression, it is sometimes interesting to cross out terms. With= LaTeX, there is the \cancel command from the package cancel. Is there an e= quivalent with conTeXt ?
Thank= s
Fabri= ce
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://w= ww.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://cont= extgarden.net
___________________________________________________________________________= ________
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://www.ntg.nl/mailman/listinfo/= ntg-context
webpage=C2=A0 : https://www.pragma-ade.nl / http://context.aanhet.net
archive=C2=A0 :
https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: https://contextgarden.net
___________________________________________________________________________= ________
--0000000000007b90a4060380ab5e-- --===============2800861397378188269== 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============2800861397378188269==--