4

I would like to produce a figure that looks something like the following:

enter image description here

I start with the following code but I cannot succeed to do it:

\documentclass[tikz,border=5pt]{standalone}
\usetikzlibrary{arrows}
\begin{document}

\begin{tikzpicture}[x=-1cm, below, minimum height=2em]
\draw (0,0) node{} rectangle (10,1) {};
\node (A) at (10,0) {};
\node (B) at (10,-1) {};
\draw (9,0) -- (9,1);
\draw (8,0) -- (8,1);
\draw (7,0) -- (7,1);
\draw (6,0) -- (6,1);
\path[->,>=stealth'] (B) edge [out=150, in=50] (A);
\end{tikzpicture}

\end{document}

since the output is like this:

enter image description here

5

enter image description here

%STACK OVERFLOW _ MAY 17
%TIKZ
%BASED ON @Ignasi SOLUTION

\documentclass[tikz,border=5pt]{standalone}

\usetikzlibrary{arrows}

%\usetikzlibrary{fit,positioning}



\begin{document}

\begin{tikzpicture}[x=-1cm, below, minimum height=2em]
\draw (0,0) rectangle (10,1);
\draw (9,0) -- (9,1);
\draw (8,0) -- (8,1);
\draw (7,0) -- (7,1);

\draw (6,0) -- (6,1) + (-2,-0.25) node[font=\Huge, align=center] {...};

\draw (1,0) -- (1,1);

\draw[<-,->=stealth'] (10.5,-.5cm) node[left] {a} to[out=0, in=-90] +(-.5,.5);
\draw[<-,->=stealth'] (9.5,-.5cm) node[left] {b} to[out=-0, in=-90] ++(-.5,.5) ;
\draw[<-,->=stealth'] (8.5,-.5cm) node[left] {c} to[out=-0, in=-90] ++(-.5,.5);

\end{tikzpicture}

\end{document} 
6

Like this?

enter image description here

\documentclass[tikz,border=5pt]{standalone}
\usetikzlibrary{arrows}
\begin{document}

\begin{tikzpicture}[x=-1cm, below, minimum height=2em]
\draw (0,0) rectangle (10,1);
\draw (9,0) -- (9,1);
\draw (8,0) -- (8,1);
\draw (7,0) -- (7,1);
\draw (6,0) -- (6,1);

\draw[<-,>=stealth'] (10,-.5cm) node[left] {a} to[out=0, in=-90] ++(-.5,.5);
\draw[<-,>=stealth'] (9,-.5cm) node[left] {b} to[out=0, in=-90] ++(-.5,.5);
\draw[<-,>=stealth'] (8,-.5cm) node[left] {c} to[out=0, in=-90] ++(-.5,.5);

\end{tikzpicture}

\end{document}
2

After some effort, I have done this:

\documentclass[tikz,border=5pt]{standalone}
\usetikzlibrary{arrows}
\begin{document}

\begin{tikzpicture}%[x=-1cm, below, minimum height=2em]
\draw (0,0) node{} rectangle (7,1) {};
\node at (4, .5) {\ldots};
\node (A1) at (0,0) {};
\node (A2) at (1,0) {};
\node (A3) at (2,0) {};
\node (A4) at (3,0) {};
\node (B1) at (-.4,-.7) {};
\node (B2) at (0.6,-.7) {};
\node (B3) at (1.6,-.7) {};
\node (B4) at (2.6,-.7) {};
\draw (1,0) -- (1,1);
\draw (2,0) -- (2,1);
\draw (3,0) -- (3,1);
\draw (6,0) -- (6,1);
\path[->,>=stealth'] (B1) edge[bend right] node [right,label=below left:{$a$}] {} (A1);
\path[->,>=stealth'] (B2) edge[bend right] node [right,label=below left:{$b$}] {} (A2);
\path[->,>=stealth'] (B3) edge[bend right] node [right,label=below left:{$c$}] {} (A3);
\path[->,>=stealth'] (B4) edge[bend right] node [right,label=below left:{$d$}] {} (A4);
\end{tikzpicture}

\end{document}

which produces the following:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.