ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* maths simplifying fractions
@ 2019-11-14  1:10 jkitz
  0 siblings, 0 replies; 4+ messages in thread
From: jkitz @ 2019-11-14  1:10 UTC (permalink / raw)
  To: ntg-context@ntg.nl ConTeXt users

Hi Altoff.

Maybe this markup will help?

\startuniqueMPgraphic{cancel}
  pickup pencircle scaled 0.7pt ; 
  path p ; p := OverlayBox topenlarged -ExHeight bottomenlarged -ExHeight ;
  draw llcorner p -- urcorner p withcolor OverlayColor ;
\stopuniqueMPgraphic

\defineoverlay[cancel][\uniqueMPgraphic{cancel}]
\defineframed[cancel]
  [background=cancel,frame=off,offset=0pt,location=low]

\starttext

\startformula
  6 \frac{3}{8} \div 4 \frac{1}{2} = \frac{27}{4} \div \frac{9}{2} = \frac{\cancel{27}^3}{\cancel{4}^2} \times \frac{\cancel{2}^1}{\cancel{9}^1} = \frac{3}{2} = 1 \frac{1}{2}
\stopformula

\stoptext

HTH,
kitz
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-15 13:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <b0abd8db479372956483c067b268283067bb3b52.camel.ref@yahoo.com>
2019-11-13 11:28 ` maths simplifying fractions Martin Althoff
2019-11-13 21:32   ` Henri Menke
2019-11-15 13:45     ` Martin Althoff
2019-11-14  1:10 jkitz

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).