* Canceling common primes with strikeout
@ 2006-01-14 7:02 David Arnold
2006-01-14 20:05 ` Mojca Miklavec
0 siblings, 1 reply; 2+ messages in thread
From: David Arnold @ 2006-01-14 7:02 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Canceling common primes with strikeout
2006-01-14 7:02 Canceling common primes with strikeout David Arnold
@ 2006-01-14 20:05 ` Mojca Miklavec
0 siblings, 0 replies; 2+ messages in thread
From: Mojca Miklavec @ 2006-01-14 20:05 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-14 20:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-14 7:02 Canceling common primes with strikeout David Arnold
2006-01-14 20:05 ` Mojca Miklavec
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).