Subject: mailing-list for TeXmacs Users
List archive
From : Martial Tarizzo <address@hidden>- To: address@hidden
- Subject: Re: [TeXmacs] Cancellation of terms
- Date: Wed, 18 Mar 2015 17:34:43 +0100
You don't need a graphic, and a small macro can do the job, badly ...
because one have to provide the coordinates of the start/end points of
the line.
It would be great to compute these coordinates (i.e the position, width
and height of the box), but I didn't find a way to get them ...
Martial Tarizzo
Le mercredi 18 mars 2015 à 16:59 +0100, Nicola Mingotti a écrit :
> Hi,
>
>
> Look, i found one (trivial) way to start implementing it.
> You can select the part you would like to "/" then,
> select "Insert -> image -> Draw over selection".
>
> ... and of course draw a line from two opposite corners of the
> selection;P
>
>
> Then, if you can do it by hand, it should be possible to make
>
> it automatic in Texmacs, with a single "<\slash-it>" command.
>
> I tried to look at the source buffer code and ok, i get it ... but i
>
> don't know enough to automate the thing;P
>
>
>
> bye
>
> Nicola
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Wed, Mar 18, 2015 at 3:22 PM, Sam Liddicott <address@hidden>
> wrote:
> I tried, initially with <repeat> to test an idea
>
> x+5y^3=0
>
> <math|x+<repeat|5y<rsup|<repeat|3|X>>|/>=0>
>
>
> But found that the power 3 was not overstruck with the X
>
>
> Sam
>
>
> On Mon, Mar 16, 2015 at 1:57 AM, Nicola Mingotti
> <address@hidden> wrote:
> wow, that is quite cool ! if i had time i would really
> try
>
> to do it:)
>
>
>
>
>
>
> On Sun, Mar 15, 2015 at 10:16 PM, Michael Shea
> <address@hidden> wrote:
> Is there any way in TexMacs to do cancel like
> below.
>
>
> enter image description here
>
>
>
>
>
>
>
>
<TeXmacs|1.99.2> <style|<tuple|generic|french>> <\body> <assign|stroke|<macro|x1|y1|x2|y2|<move|<line|<point|<arg|x1>|<arg|y1>>|<point|<arg|x2>|<arg|y2>>>|-1w|0ex>>> This is a test for a stroked<stroke|0ex|0ex|7ex|1.5ex> text<stroke|0ex|1.5ex|4ex|-0.5ex>. It is possible<stroke|0ex|1.5ex|8ex|-0.5ex><stroke|0ex|-0.5ex|8ex|1.5ex> in a equation, inline or not : <math|0=sin<around*|(|x|)><stroke|0ex|0ex|6ex|1ex>-<frac|sin<rsup|2><around*|(|x|)>|<sqrt|1-cos<rsup|2><around*|(|x|)>>><stroke|0ex|-2ex|11ex|2.5ex>> <math|\<Rightarrow\>> <\equation*> 0=sin<around*|(|x|)><stroke|0ex|-0.5ex|6ex|1.5ex>-<frac|sin<rsup|2><around*|(|x|)>|<sqrt|1-cos<rsup|2><around*|(|x|)>>><stroke|0ex|-2.5ex|14ex|3ex> </equation*> </body> <\initial> <\collection> <associate|font|roman> <associate|font-base-size|10> <associate|font-family|rm> <associate|page-type|user> <associate|preamble|false> </collection> </initial> <\references> <\collection> <associate|lipsum|<tuple|?|?>> </collection> </references>
Attachment:
stroke.pdf
Description: Adobe PDF document
- [TeXmacs] Cancellation of terms, Michael Shea, 03/15/2015
- Re: [TeXmacs] Cancellation of terms, Nicola Mingotti, 03/16/2015
- Re: [TeXmacs] Cancellation of terms, Sam Liddicott, 03/18/2015
- Re: [TeXmacs] Cancellation of terms, Nicola Mingotti, 03/18/2015
- Re: [TeXmacs] Cancellation of terms, Martial Tarizzo, 03/18/2015
- Re: [TeXmacs] Cancellation of terms, Nicola Mingotti, 03/18/2015
- Re: [TeXmacs] Cancellation of terms, Miguel de Benito Delgado, 03/20/2015
- Re: [TeXmacs] Cancellation of terms, Sam Liddicott, 03/20/2015
- Re: [TeXmacs] Cancellation of terms, Martial Tarizzo, 03/20/2015
- Re: [TeXmacs] Cancellation of terms, Sam Liddicott, 03/20/2015
- Re: [TeXmacs] Cancellation of terms, Sam Liddicott, 03/20/2015
- Re: [TeXmacs] Cancellation of terms, Miguel de Benito Delgado, 03/20/2015
- Re: [TeXmacs] Cancellation of terms, Nicola Mingotti, 03/20/2015
- Re: [TeXmacs] Cancellation of terms, Sam Liddicott, 03/21/2015
- Re: [TeXmacs] Cancellation of terms, Michael Shea, 03/21/2015
- Re: [TeXmacs] Cancellation of terms, Sam Liddicott, 03/20/2015
- Re: [TeXmacs] Cancellation of terms, Martial Tarizzo, 03/18/2015
- Re: [TeXmacs] Cancellation of terms, Nicola Mingotti, 03/18/2015
- Re: [TeXmacs] Cancellation of terms, Sam Liddicott, 03/18/2015
- Re: [TeXmacs] Cancellation of terms, Nicola Mingotti, 03/16/2015
Archive powered by MHonArc 2.6.19.