I want to draw the following picture:
But I got stuck where to start? What should I use normal TikZ node (\node
) or TikZmark Node (\tikzmarknode
)? I am not expert in tikz-pgf
package. Your help is expected.
Added:
I tried:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\begin{document}
\large
\[
\tikzmarknode{v1}{1}\tikzmarknode{v2}{4}\newline
\tikzmarknode{A}{3}\tikzmarknode{B}{\raisebox{1em}{2}}\tikzmarknode{C}{4}\tikzmarknode{D}{5}\tikzmarknode{E}{6}\tikzmarknode{F}{3}
\]
\begin{tikzpicture}[remember picture,overlay]
\tikzset{
every node/.style={outer sep=2pt},
lab/.style={font=\tiny,inner sep=0pt}}
\draw[red] (B) to[out=90,in=90] node[lab,midway,above]{} (v2) ;
\end{tikzpicture}
\end{document}
\tikzmark
puts a coordinate at the baseline, from which you would have to estimate the distance and direction to start the arrow. Here you can use the bounding box in which the letter was inserted.