I am new to LaTeX and really stuck in creating a table. A table created in Word is attached. Can someone help me create this table in LaTeX as it is?


I tried, but couldn't connect the arrows and all together.

My code so Far:

\begin{tabular}{  " c |  c | c | c | c | c | c" }
 \small\textit{g(t+0)} & \small\textit{g(t+1)} & \small\textit{g(t+2)} & \small\textit{f(t+3)} & \small\textit{f(t+4)} & \small\textit{g(t+5)} & \small{...}\\[2.5pt]
  • 1
    You need TikZ or PSTricks. You can find a lot of examples here at TeX.SX Feb 8 '14 at 9:40
  • 2
    Show your code. Then people can see that you have at least tried something. :) Feb 8 '14 at 9:44
  • Not really a table: more of a flowcahrt or similar?
    – Joseph Wright
    Feb 8 '14 at 9:47
  • How is this a try to connect the arrows? I don't see any try at all... Feb 8 '14 at 10:10
  • sorry i tried but aint working!!!! Feb 8 '14 at 10:58

This is an attempt via TikZ. Here 2 line styles and 2 box styles are defined to meet the color and size requirement. same reason for the lines requirements.

enter image description here




  linea/.style ={draw,-stealth', rounded corners=1pt, line width=2pt},
  lineb/.style ={draw,-stealth', rounded corners=1pt, line width=2pt,color=blue!40!white},
  cell/.style = {rectangle, draw, fill=gray!60!white, text width=2cm,outer sep=0pt},
  cellx/.style = {rectangle,draw, fill=red!30!white, text width=1.5cm,outer sep=0pt}

every node/.style={text centered,  minimum height=2.5em, minimum width=1.5cm,node distance=0pt}

   \node at (0,0) [cell] (n0) {$g(t+0)$};    
   \node[right=of n0,cell] (n1) {$g(t+1)$};
   \node[right=of n1,cell] (n2) {$g(t+2)$};
   \node[right=of n2,cell] (n3) {$g(t+3)$};
   \node[right=of n3,cell] (n4) {$g(t+4)$};
   \node[right=of n4,cell] (n5) {$g(t+5)$};
   \node[right=of n5,cell] (n6) {$\cdots$};
  \node[below left = 1 cm and 1cm of n0.east,cellx] (nn1) {$s(t+0)$};
  \node[below left = 1 cm and 1cm of n1.east,cellx] (nn2) {$s(t+1)$};
  \node[below left = 1 cm and 1cm of n2.east,cellx] (nn3) {$s(t+3)$};
  \node[below left = 1 cm and 1cm of n3.east,cellx] (nn4) {$s(t+3)$};
  \node[below =0.5 cm of n4,cellx] (nn5) {$s(t4)$};

 \draw[linea](nn5.east)-|(n5.south)node[right,midway]{Extracted Models}; 

 \draw[lineb](n4.south) -| (nn5.north) ; 


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.