From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116604 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ursula Hermann via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Is this possible to do the same Date: Mon, 12 Dec 2022 17:15:20 +0000 Message-ID: <76dd932197964a1293d11dd1a835c0ef@univie.ac.at> References: , <0D4F5164-5686-421B-9E3C-12851390D84A@comcast.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2195970787819095441==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="404"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ursula Hermann To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 12 18:16:00 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p4mPI-000ASF-6V for gctc-ntg-context-518@m.gmane-mx.org; Mon, 12 Dec 2022 18:16:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0779338004C; Mon, 12 Dec 2022 18:15:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5ZJl05X7KKnF; Mon, 12 Dec 2022 18:15:33 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 13259380006; Mon, 12 Dec 2022 18:15:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EE20C380006 for ; Mon, 12 Dec 2022 18:15:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tNMkatbmGQ9n for ; Mon, 12 Dec 2022 18:15:31 +0100 (CET) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=131.130.3.115; helo=grace.univie.ac.at; envelope-from=ursula.hermann@univie.ac.at; receiver= Original-Received: from grace.univie.ac.at (grace.univie.ac.at [131.130.3.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0B73A380003 for ; Mon, 12 Dec 2022 18:15:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=univie.ac.at; s=rev3; h=MIME-Version:Content-Type:In-Reply-To:References: Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=Je1l357iPTy/ADKLpqS3caqgR2XLVXxpulUxBEGrjWk=; b=FPu1P7HPoYk58u1garwqdyd3tI 8TvO75HuafUFXZo9J1uZei8ghf7xa8vjb5v1zfM94jpyVPzG3DII1F3MIJhjg73VadIhZ7JhZUhIz Pw2DWUOIruJRmMzIpIsLzRGTX/3bX9RHECn9NETVWO4aEbUo+I3EzrTymilnbbeW7XSNInvOpPa64 Lbe+X2BXcKnS3gyBJK4GE/AaF0N1jp+noF9MUji4vzEVRBAz8FhPmNNuOB67u0YrlbC0TwTgLWkQp REvRDrxySNaqkKHw9tzvibmI0TrzqXbiBsRNx0yre2WhmAK8JqbE3sYAx78RNFgwl7o4IYxqU5ZH5 OrNBaBHQ==; Original-Received: from jarvis.univie.ac.at ([131.130.3.112] helo=jarvis.univie.ac.at) by grace.univie.ac.at with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1p4mOo-008qaH-1r for ntg-context@ntg.nl; Mon, 12 Dec 2022 18:15:30 +0100 Original-Received: from exwww.d.univie.ac.at ([131.130.95.52] helo=EXDB2.d.univie.ac.at) by jarvis.univie.ac.at with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.96) (envelope-from ) id 1p4mOo-0080Lv-1A for ntg-context@ntg.nl; Mon, 12 Dec 2022 18:15:30 +0100 Original-Received: from EXDB2.d.univie.ac.at (131.130.95.52) by EXDB2.d.univie.ac.at (131.130.95.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.12; Mon, 12 Dec 2022 18:15:20 +0100 Original-Received: from EXDB2.d.univie.ac.at ([fe80::ede2:194c:1ee1:dfee]) by EXDB2.d.univie.ac.at ([fe80::ede2:194c:1ee1:dfee%7]) with mapi id 15.02.1118.012; Mon, 12 Dec 2022 18:15:20 +0100 Thread-Topic: [NTG-context] Is this possible to do the same Thread-Index: AdkOPO1TbGpY/Y2hSKO0ZqKhx2aUb///99kAgAAoYTU= In-Reply-To: <0D4F5164-5686-421B-9E3C-12851390D84A@comcast.net> Accept-Language: de-AT, en-US Content-Language: de-AT x-originating-ip: [217.149.170.213] x-process: ESTProcessDone X-Univie-Virus-Scan: scanned by ClamAV on jarvis.univie.ac.at X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:116604 Archived-At: --===============2195970787819095441== Content-Language: de-AT Content-Type: multipart/alternative; boundary="_000_76dd932197964a1293d11dd1a835c0efunivieacat_" --_000_76dd932197964a1293d11dd1a835c0efunivieacat_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Dear Gavin! Many thanks for your Mail. Uschi ________________________________ Von: ntg-context im Auftrag von Gavin via ntg-= context Gesendet: Montag, 12. Dezember 2022 16:48:52 An: mailing list for ConTeXt users Cc: Gavin Betreff: Re: [NTG-context] Is this possible to do the same Hi Uschi, I use the MetaFun features of ConTeXt to cross out stuff. % 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 pencircle= 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% } \starttext \dots E.g.~$\cancel{x+ {-x}}$. Works in \cancel{text}, too. \stoptext I do not have all of the features of the =93cancel=94 package, but it works= for a simple cross out. Change the MetaPost code to a single slash, if tha= t is what you want, by removing either one of the draw commands. Hope that helps. If you need more features, I=92d might be able to help you= implement them. Gavin > On Dec 12, 2022, at 8:21 AM, Ursula Hermann via ntg-context wrote: > > Dear List! > Sorry, but my pdf was too big. > So I send a little picture. I would like to know, if there = is a modus in ConTeXt like the same in LaTeX. I found this on page 108, Ch= apter 3 Math symbos LaTeX Compherensive list. > Many thanks > Uschi __________________________________________________________________= _________________ > 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-c= ontext > 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 t= he Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-con= text webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________= ________ --_000_76dd932197964a1293d11dd1a835c0efunivieacat_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Dear Gavin!
Many thanks for your Mail.

Uschi
Von: ntg-context <ntg-= context-bounces@ntg.nl> im Auftrag von Gavin via ntg-context <ntg-con= text@ntg.nl>
Gesendet: Montag, 12. Dezember 2022 16:48:52
An: mailing list for ConTeXt users
Cc: Gavin
Betreff: Re: [NTG-context] Is this possible to do the same
 
Hi Uschi,

I use the MetaFun features of ConTeXt to cross out stuff.

% 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 penc= ircle 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%
}

\starttext

\dots E.g.~$\cancel{x+ {-x}}$. Works in \cancel{text}, too.

\stoptext

I do not have all of the features of the =93cancel=94 package, but it works= for a simple cross out. Change the MetaPost code to a single slash, if tha= t is what you want, by removing either one of the draw commands.

Hope that helps. If you need more features, I=92d might be able to help you= implement them.

Gavin


> On Dec 12, 2022, at 8:21 AM, Ursula Hermann via ntg-context <ntg-co= ntext@ntg.nl> wrote:
>
> Dear List!
>  Sorry, but my pdf was too big.
> So I send a little picture.<image001.jpg> I would like to know, = if there is a modus in ConTeXt like the same in LaTeX. I found this on page= 108,  Chapter 3 Math symbos LaTeX Compherensive list.
> Many thanks
> Uschi  __________________________________________________________= _________________________
> 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.prag= ma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : h= ttps://contextgarden.net
> ______________________________________________________________________= _____________


___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ad= e.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https:= //contextgarden.net
___________________________________________________________________________= ________
--_000_76dd932197964a1293d11dd1a835c0efunivieacat_-- --===============2195970787819095441== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2195970787819095441==--