%\documentclass[english,onecolumn,final]{svjour2}
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgflibraryshapes}
\usetikzlibrary {shapes}
\usepackage{calc}
\usepackage{color}
\definecolor{invisible}{gray}{1.0}
\definecolor{green}{rgb}{0.0,1.0,0.0}
%\input{commands.tex}
%define counters
\newcounter{mynum}



%\renewcommand\normalsize{\fontsize{20pt}{20pt}\selectfont}
\setlength{\textwidth}{20cm}
\setlength{\textheight}{30cm}


\pagenumbering{arabic}  % but no page numbers are printed because:
\pagestyle{empty}       % this is actually already in the kernel
\newcommand{\MainDocDir}{..}

\begin{document}

\newcommand{\nneurons}{4}  % +1


 

\newcommand{\mmn}[1]{
	\path #1 coordinate (xy);
	\draw (xy) arc (0:180:0.25) (xy) arc (0:-55:0.25) (xy) ++(-0.5,0) arc (0:55:-0.25);
	\draw (xy) +(-0.4,-0.2) -- +(-0.4,-0.5);
	\draw (xy) +(-0.1,-0.2) -- +(-0.1,-0.5);
	\draw (xy) ++(-0.1,-0.5) arc (0:-180:0.15);
	\filldraw (xy) +(-0.1,-0.25) -- +(-0.25,-0.35) -- +(-0.1,-0.45);
	\filldraw (xy) +(-0.4,-0.25) -- +(-0.25,-0.35) -- +(-0.4,-0.45);
}

\newcommand{\texpic}{	


\begin{tikzpicture}
	
	\path (1,0) coordinate (shift);
	\path (1.5,0) coordinate (shiftagain);
	\path (-0.25,0.25) coordinate (shift2out);
	
	
	\path (0,1.5) coordinate (coor);
	\foreach \y in {0,...,\nneurons} {
		\mmn{(coor)}
		\path (coor) ++(shift) coordinate (coor);
		}
	\draw (1.7,0.5) node {retinal position};	


	\path (0,1.5) coordinate (coor);
	\path (2.2,4.38) coordinate (target);
	\foreach \y in {0,...,\nneurons} {
		\draw [draw=black] (coor) ++(shift2out) -- (target);
		\path (shift2out) ++(shift) coordinate (shift2out);
		\path (target) ++ (shiftagain) coordinate (target);
	}



	
	\path (7,1.5) coordinate (coor);
	\foreach \y in {0,...,\nneurons} {
		\mmn{(coor)}
		\path (coor) ++(shift) coordinate (coor);
		}
	\draw (8.8,0.5) node {gaze position};	
	


	
	
	\path (-0.25,0.25) coordinate (shift2out);
	\path (6.83,1.44) coordinate (coor);
	\path (2.4,4.65) coordinate (target);
	\path (2.8,4.65) coordinate (controlit);
	\foreach \y in {0,...,\nneurons} {
		\draw [draw=white,double=blue, very thick] (coor) ++(shift2out) .. controls (controlit) .. (target);
		\path (target) ++ (shiftagain) coordinate (target);
		\path (controlit) ++(shiftagain) coordinate (controlit);
		\path (shift2out) ++(shift) coordinate (shift2out);
			
	} 

	\path (-0.25,0.25) coordinate (shift2out);
	\path (6.83,1.44) coordinate (coor);
	\path (2.4,4.65) coordinate (target);
	\path (2.8,4.65) coordinate (controlit);
	\foreach \y in {0,...,3} {
		\path (target) ++ (shiftagain) coordinate (target);
		\path (controlit) ++(shiftagain) coordinate (controlit);
		\draw [draw=white,double=blue] (coor) ++(shift2out) .. controls (controlit) ..(target);
		\path (shift2out) ++(shift) coordinate (shift2out);
			
	} 

	\path (-0.25,0.25) coordinate (shift2out);
	\path (7.83,1.44) coordinate (coor);
	\path (0.9,4.65) coordinate (target);
	\path (1.8,4.65) coordinate (controlit);
	\foreach \y in {1,...,4} {
		\path (target) ++ (shiftagain) coordinate (target);
		\path (controlit) ++(shiftagain) coordinate (controlit);
		\draw [draw=white,double=blue] (coor) ++(shift2out) .. controls (controlit) ..(target);
		\path (shift2out) ++(shift) coordinate (shift2out);
			
	} 


	%\draw (11.5,3.5) node {gaussian feedforward-};
	%\draw (11.5,3) node {connections (+shift)};

	\path (2.5,5) coordinate (coor);
	\foreach \y in {0,...,\nneurons} {
		\mmn{(coor)}
		\path (coor) ++(shiftagain) coordinate (coor);
		}

	\path (3.2,5.5) coordinate (coor);
	\foreach \y in {0,...,\nneurons} {
		\mmn{(coor)}
		\path (coor) ++(shiftagain) coordinate (coor);
		}
	\path (3.9,6) coordinate (coor);
	\foreach \y in {0,...,\nneurons} {
		\mmn{(coor)}
		\path (coor) ++(shiftagain) coordinate (coor);
		}
	\path (4.6,6.5) coordinate (coor);
	\foreach \y in {0,...,\nneurons} {
		\mmn{(coor)}
		\path (coor) ++(shiftagain) coordinate (coor);
		}
	\path (5.3,7) coordinate (coor);
	\foreach \y in {0,...,\nneurons} {
		\mmn{(coor)}
		\path (coor) ++(shiftagain) coordinate (coor);
		}


	%\draw (9.5,4.7) node {V4};	

		
	%\mmn{(4.5,8.5)} 
	\mmn{(5.5,8.5)} 
	\mmn{(6.2,9)} 
	\mmn{(6.9,9.5)} 
	\mmn{(7.6,10)} 
	\mmn{(8.3,10.5)} 
	


	%\mmn{(6.5,8.5)} 

%\draw (6.5,8.2) node {IT};

	\path (2.25,5.25) coordinate (coor);
	\path (5.25,7.85) coordinate (target);
	\foreach \y in {0,...,\nneurons} {
		\draw [draw=black] (coor) -- (target);
		%\path (shift2out) ++(shift) coordinate (shift2out);
		\path (coor) ++ (shiftagain) coordinate (coor);
			}

%	\path (2.25,5.25) coordinate (coor);
%	\path (4.25,7.85) coordinate (target);
%	\foreach \y in {0,...,\nneurons} {
%		\draw  (coor) -- (target);
		%\path (shift2out) ++(shift) coordinate (shift2out);
%		\path (coor) ++ (shiftagain) coordinate (coor);
%			}

%	\path (2.25,5.25) coordinate (coor);
%	\path (6.25,7.85) coordinate (target);
%	\foreach \y in {0,...,\nneurons} {
%		\draw  (coor) -- (target);
		%\path (shift2out) ++(shift) coordinate (shift2out);
%		\path (coor) ++ (shiftagain) coordinate (coor);
%			}
	
	\draw [-latex,very thick](-1,1) --(-1,8);
	
	\draw (9.5,9) node {head-centered representation};	



	%\foreach \x in {\startmodneurons,...,\stopmodneurons} {
%		\draw [black] (\x,1) circle(4pt);
%	}
%	\draw (10.5,0.5) node {MODULATORY INPUT};
%	
%	\foreach \z in {4,...,9} {
%		\draw [black] (\z,4) circle(4pt);
%		\draw (\z,4.15) -> (6.5,6.9);
%
%	}
%	\draw (6.5,4.5) node {V4};
%	
%	\draw [black] (6.5,7) circle(4pt);
%	\draw (6.5,7.5) node {IT};
%	
%%	\draw (-1.5,0) -- (1.5,0);
%	\draw (0,-1.5) -- (0,1.5);
	
    
  \end{tikzpicture}
}

\color{invisible}
.\\
.
\color{black}
\texpic
\color{invisible}
.
\end{document}