Re: Le mie (dis)avventure con TikZ

#96787
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::


    Eureka!

    `\begin{tikzpicture}[x=5mm,y=5mm]
    \matrix (a)[matrix of nodes, nodes in empty cells,nodes={text width=1em, text height=2ex,text depth=1pt, align=center, inner sep=0pt},column sep={.4em},
    row 3 column 1/.style={execute at begin cell={\hspace*{-.4em}}},
    row sep=1ex]{
    $9x^2$ & $-$ & $y^2$ \\
    & & & \\
    $(3x)^2$ & & $y^2$\\
    };

    \begin{scope}[-stealth, blue,thick,shorten <=3pt,shorten >=1pt]
    \draw([xshift=-.25em]a-1-3.south)–([xshift=-.25em]a-3-3.north);
    \draw(a-1-1.south)–(a-3-1.north);
    \end{scope}
    \end{tikzpicture}`

    Effettivamete per cose come questa TiKZ non è il massimo della praticità… 😉

    Go to top