Re: [NTG-context] maths simplifying fractions

2019-11-15 Thread Martin Althoff
sorry for the slow reply, a cold knocked me out.

Thanks Henri for pointing to a solution you already offered on stackexchange! I 
will save
it as a good universal solution.

Thanks to Kitz, for the very specific solution. This is what I am using at the 
moment.

This might help.
> https://tex.stackexchange.com/questions/501056/equivalent-of-cancelto-in-context
> 
> > 

___
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
___


[NTG-context] maths simplifying fractions

2019-11-13 Thread jkitz
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
___


Re: [NTG-context] maths simplifying fractions

2019-11-13 Thread Henri Menke
On 11/14/19 12:28 AM, Martin Althoff wrote:
> Hi all, I am writing some maths exercises that include simplifying fractions. 
> For that
> reason I would like to cross out some numbers. Unfortunately overstrike 
> doesn't do the
> trick, eg with a 4 the overstrike is practically invisible.
> 
> Is there any way to get a diagonal stroke like the latex module "cancel" can 
> do?

This might help.
https://tex.stackexchange.com/questions/501056/equivalent-of-cancelto-in-context

> Thanks for any suggestions,
> Martin
> 
> \starttext
> \startformula
> \frac{\overstrike{2}}{\overstrike{4}} = \frac{1}{2}
> \stopformula
> \stoptext
> 
> ___
> 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
> ___
> 
___
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
___


[NTG-context] maths simplifying fractions

2019-11-13 Thread Martin Althoff
Hi all, I am writing some maths exercises that include simplifying fractions. 
For that
reason I would like to cross out some numbers. Unfortunately overstrike doesn't 
do the
trick, eg with a 4 the overstrike is practically invisible.

Is there any way to get a diagonal stroke like the latex module "cancel" can do?

Thanks for any suggestions,
Martin

\starttext
\startformula
\frac{\overstrike{2}}{\overstrike{4}} = \frac{1}{2}
\stopformula
\stoptext

___
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
___