[texhax] Oblique cancellation with plain TeX

Reinhard Kotucha reinhard.kotucha at web.de
Sat Jan 5 00:10:46 CET 2019


On 2019-01-04 at 21:28:19 +0000, David Carlisle wrote:

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

This looks great and I always assumed that this is what Rodolfo asked
for.

However, when I add

  \RequirePackage[pdftex]{pict2e}

I get

  (/xopt/texlive/2018/texmf-dist/tex/latex/pict2e/pict2e.sty
  (/xopt/texlive/2018/texmf-dist/tex/latex/pict2e/pict2e.cfg)
  ! pict2e: No driver specified at all.
  \PackageError ...\errhelp {#3}\errmessage {#1: #2}
                                                  }
  l.117 ...Break eg: \protect\ExecuteOptions{dvips}}
 
I'm wondering why the driver option I stated explicitly is ignored.

Eplain would benefit from pict2e too: lines with arbitrary slopes and
widths, circles with arbitrary diameters, etc...

Regards,
  Reinhard

-- 
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de
------------------------------------------------------------------


More information about the texhax mailing list