ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mikael Sundqvist <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Equivalent of the \cancel command with conTeXt
Date: Tue, 22 Aug 2023 12:52:36 +0200	[thread overview]
Message-ID: <CAHy-LL-uEDmqUuAXwmPoNp3G9sYEHx1ZxjRX_eKu1MHKJiDNGQ@mail.gmail.com> (raw)
In-Reply-To: <CACyK-eqOrD8-svL35AJPe_2i8OBeH+pHi2TQ9nwzvxcAjO4rMw@mail.gmail.com>

Hi,

On Tue, Aug 22, 2023 at 12:25 PM Fabrice Couvreur
<fabrice1.couvreur@gmail.com> wrote:
>
> 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

I don't know what the cancel package gives, but since December 22 or
so, one can do

\starttext

\setupframed
[mathstrikeout]
[color=darkgreen,
backgroundcolor=darkred,
frame=off]

\startTEXpage[offset=4dk,align=flushleft]
\dm{1+\mathstrikeout[strike:text={what is this?}]{(2x-x)}+2=3+x}
\blank
\dm{1+\mathstrikeout[strike:math={=x}]{(2x-x)}+2=3+x}
\blank
\dm{1+\mathstrikeout[strike:math=u,arrow=no]{(2x-x)}+2=3+x}
\blank
\dm{1+\mathcrossout[strike:math={=x}]{(2x-x)}+2=3+x}
\stopTEXpage

\stoptext

/Mikael
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2023-08-22 10:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22 12:22 [NTG-context] " Fabrice Couvreur
2023-08-22 10:24 ` [NTG-context] " Alexandre Christe
2023-08-22 12:44   ` Fabrice Couvreur
2023-08-22 10:52 ` Mikael Sundqvist [this message]
2023-08-22 14:56   ` Fabrice Couvreur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHy-LL-uEDmqUuAXwmPoNp3G9sYEHx1ZxjRX_eKu1MHKJiDNGQ@mail.gmail.com \
    --to=mickep@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).