[texhax] Oblique cancellation with plain TeX
David Carlisle
d.p.carlisle at gmail.com
Fri Jan 4 23:08:43 CET 2019
On Fri, 4 Jan 2019 at 22:05, Rodolfo Medina <rodolfo.medina at gmail.com> wrote:
>
> David Carlisle <d.p.carlisle at gmail.com> writes:
>
> > \input picture
> > \catcode`\@=11
> >
> > \RequirePackage{cancel}
> > \let\zzcancel\cancel
> > \def\cancel#1{{%
> > \let\line\LaTeX at line
> > \zzcancel{#1}}}
> >
> > $\cancel{x^2 + 1}$
> >
> > $\cancel{a}$
> >
> > $\cancel{{x^2 + 1 \over b}}$
> >
> >
> > \bye
>
>
> Fantastic...!!
Of course simply using latex gives a better tested codepath than
loading a large chunk of latex circa 1993 but you seem to want to
avoid doing that for some reason.
David
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
More information about the texhax
mailing list