$\left(x+a\right)^{2}+2ax+a^{2}$
Asked
Active
Viewed 51 times
1
CarLaTeX
- 62,716
1 Answers
4
As starting point:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\begin{document}
[
(x + \tikzmarknode{A}{a})^2 = x^2 + 2\tikzmarknode{B}{a}x + \tikzmarknode{C}{a}^2
%
\begin{tikzpicture}[overlay, remember picture,shorten <=1mm,
shorten <=1mm, shorten >=1mm]
\draw[->] (A.south) -- ++ (0,-0.5) -| node[pos=0.25, fill=white] {text} (B.south);
\draw[->] (A.south) -- ++ (0,-1.0) -| node[pos=0.25, fill=white] {text} (C.south);
\end{tikzpicture}
\vspace{3ex} % space for image
]
\end{document}
Note: For correct result you need to compile document at least two times, typically three times.
Zarko
- 296,517


tikzmarklibrary. – Zarko Aug 17 '21 at 06:00