From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: Re: Canceling common primes with strikeout
Date: Sat, 14 Jan 2006 21:05:59 +0100 [thread overview]
Message-ID: <6faad9f00601141205n2c702e05p2020ac0a9a2c4607@mail.gmail.com> (raw)
In-Reply-To: <990A438B-D795-403F-8228-88EE1BB7AB36@cox.net>
David Arnold wrote:
> All,
>
> Anyone have a nice technique to "strike out" the common primes using
> the color red?
>
> \placeformula[-]
> \startformula
> \frac{12}{18}=\frac{2\cdot2\cdot3}{2\cdot3\cdot3}=\frac23
> \stopformula
A simple solution:
\defineoverlay[strikeme][{\color[red]{\bf/}}]
\def\strikeout#1{\mframed[frame=off,background={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}
draw (0,0)--(OverlayWidth,OverlayHeight) withpen pencircle scaled 3pt
withcolor red;
\stopuniqueMPgraphic
\defineoverlay[strikeme][\uniqueMPgraphic{strikeme}]
\def\strikeout#1{\mframed[frame=off,background=strikeme]{#1}}
Usage:
\startformula
\frac{12}{18}=\frac{\strikeout{2}\cdot2\cdot\strikeout{3}}{\strikeout{2}\cdot\strikeout{3}\cdot3}=\frac23
\stopformula
Mojca
prev parent reply other threads:[~2006-01-14 20:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-14 7:02 David Arnold
2006-01-14 20:05 ` Mojca Miklavec [this message]
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=6faad9f00601141205n2c702e05p2020ac0a9a2c4607@mail.gmail.com \
--to=mojca.miklavec.lists@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).