Example: Tkz-linknodes examples

Published 2009-05-11 | Author: Alain Matthes

Demonstration of the tkz-linknodes package, a package that makes it easy to link elements in an amsmath align or aligned environment.

Download as: [PDF] [TEX]

Tkz-linknodes examples

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.
Oder frag auf Deutsch auf TeXwelt.de. En français: TeXnique.fr.

% Author: Alain Matthes (http://altermundus.com/)


        \begin{NodesList}[margin=2 cm]
     3\left(x^2-\frac{2}{3}\right) &= 4                             \AddNode\\
       3x^2-2  &= 4                                                 \AddNode\\
       3x^2    &= 6                                                 \AddNode\\
       \intertext{\hfil isolate the term with the variable \hfil}
        x^2    &= 2                                                 \AddNode\\
 \sqrt{x^2}    &= \sqrt{2}                                          \AddNode\\
      |x|      &= \sqrt{2}                                          \AddNode\\
       x       &= \pm\sqrt{2}                                       \AddNode
 \LinkNodes{$\div 3$}
 \LinkNodes{so that}

This example is from  MathMode.pdf of Herbert Vo\ss

    y &= 2x^2 -3x +5                          \AddNode\\
  & \hphantom{= \ 2\left(x^2-\frac{3}{2}\,x\right. }%
        \overbrace{\hphantom{+\left(\frac{3}{4}\right)^2- %
          \left(\frac{3}{4}\right)^2}}^{=0}}   \\
  &= 2\left(\textcolor{red}{%
           x^2-\frac{3}{2}\,x + \left(\frac{3}{4}\right)^2}%
        - \left(\frac{3}{4}\right)^2 + \frac{5}{2}}%
   \right)                                      \AddNode\\
   &= 2\left(\qquad\textcolor{red}{\left(x-\frac{3}{4}\right)^2}
   \qquad + \ \frac{31}{16}\qquad\right)  \AddNode\\
   &= 2\left(x\textcolor{cyan}{-\frac{3}{4}}\right)^2\textcolor{blue}{+\frac{31}{8}}\AddNode
\tikzset{LabelStyle/.append style = {left,text=red}}
      $2x^2 -3x$ is the beginning of an algebraic identity %
       (binomial formula)
       \LinkNodes{after simplication, the result is}%



  • #1 Thiago de Melo, May 15, 2009 at 10:03 p.m.

    Nice! There is a mistake on label passing from (5) to (6). It is \sqrt{x^2}=|x|. Regards.

Adding comments is currently not enabled.