<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%% 
%%  Der Mathematiksatz mit LaTeX, 1. Auflage 2009
%% 
%%  Example 9-8-2 on page 184.
%% 
%%  Copyright (C) 2009 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 

\documentclass[]{ttctminimal}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{194.59192pt}
\AtBeginDocument{\setlength\parindent{0pt}}
\StartShownPreambleCommands
\usepackage{amsmath,cancel}
\StopShownPreambleCommands
\begin{document}
$f(x)=\dfrac{\left(x^2+1\right)
  \cancelto{1}{(x-1)}}{%
    \cancelto{1}{(x-1)}\kern1em(x+1)}$
\end{document}
</pre></body></html>