I used "cancel" in writing a solution for simplifying a rational expression. It looks fine on the screen, but produced an error in the hardcopy of the problem set and did not showthe cancel symbols on the hardcopy. Is there a way to fix this? I've included a code snippit below.
Thanks--rac
DOCUMENT();
loadMacros(
"PGstandard.pl",
"MathObjects.pl",
"PGML.pl"
);
$a= non_zero_random(-4,4,1);
do {$b= non_zero_random(-5,5,1);} while ($a==$b);
$f = Formula("(x^2 + ($a + $b)x + $a*$b)/(x + $a)")->reduce->TeX;
BEGIN_PGML
In this problem
[```\require{cancel} \begin{align*} [$f] &= \frac{(x + [$a])(x + [$b])}{x+[$a]} \\ &= \frac{\cancel{(x + [$a])} (x + [$b]) }{\cancel{(x + [$a])}}\\ &= x + [$b] \end{align*} ```]
END_PGML
ENDDOCUMENT();