The following diagram is given:
I tried to draw it using table environment, but could not insert the skew arrows properly! Customizing this useful answer, I reached to:
\documentclass[a4paper,12pt]{book}
\usepackage{tikz}
\usepackage{graphicx}
\usetikzlibrary{positioning}
\begin{document}
\begin{figure}[htbp]
\centering
\begin{tikzpicture}
[
mydot/.style={circle, fill, inner sep=1pt }, >=latex, shorten >= 3pt, shorten <= 3pt
]
\node[mydot,label={left:8}] (a1) {};
\node[mydot,below=of a1,label={left:9}] (a2) {};
\node[mydot,below=of a2,label={left:10}] (a3) {};
\node[mydot,right=1cm of a1,label={right:0}] (b1) {};
\node[mydot,below=of b1,label={right:1}] (b2) {};
\node[mydot,below=of b2,label={right:2}] (b3) {};
\node[mydot,below=of b3,label={right:3}] (b4) {};
\path[->] (a1) edge (b1);
\path[->] (a2) edge (b2) edge (b3);
\path[->] (a3) edge (b4);
\end{tikzpicture}
\end{figure}
\end{document}
Can I somehow insert the title: Domain and Range inside above MWE or I should work on another way? In this MWE the nodes are not close to each other as it is expected to be.
Thanks for the time!






tabularraypackage, for example) and insert those arrows in it, for example usingtikzmark. – SebGlav Jan 31 '23 at 16:15