I'm not sure if this is an acceptable kind of question, but figured I'd give it a shot.

I'm trying to replicate a basic diagram using LaTeX (as this one is bad quality), but I'm having trouble figuring out how to start.

EXT2 Diagram

Once I have a starting point (like knowing how to draw the initial box plus an arrow to a smaller box) I think I should be fine.

EDIT: I should add that my attempt so far was drawing the right hand box using a table (as this seemed like the easiest way to to it) but I'm not sure if it would be possible to align arrows and the other smaller boxes next to it.

  • Welcome to TeX.SX. Questions about how to draw specific graphics that just post an image of the desired result are really not reasonable questions to ask on the site. Please post a minimal compilable document showing that you've tried to produce the image and then people will be happy to help you with any specific problems you may have. See minimal working example (MWE) for what needs to go into such a document. Commented Oct 12, 2015 at 5:11

1 Answer 1


A starting point using TikZ; taking my code as example you can add the missing arrows:

enter image description here

The code:



  minimum height=1cm,
  text width=10pt
  minimum height=20pt,
  text width=1cm,
  matrix of nodes,
  row sep=-\pgflinewidth,
    text width=3cm,
    minimum height=25pt,
    |[name=mode]|Mode \\
    |[name=owner]|Owner Info \\
    |[name=size]|Size \\
    |[minimum height=2.5cm,name=dirbl]|Direct Blocks \\
    |[name=indbl]|Indirect Blocks \\
    |[name=douin]|Double Indirect \\
    |[name=triin]|Triple Indirect \\
\node[verbox,right=of mat]
  at ([yshift=-30pt]mat.east) 
\node[verbox,below=10pt of verl1]
\node[verbox,right=of verl2]
\node[verbox,below=10pt of verr1]

\node[data,right=of verr2]
\node[data,above=10pt of data8]
\node[data,above=10pt of data7]
\node[data,above=10pt of data6]
\node[data,above=10pt of data5]
\node[data,above=10pt of data4]
\node[data,above=10pt of data3]
\node[data,above=10pt of data2]

  (indbl.east) -- ++(20pt,0pt) |- ([yshift=-5pt]verl1.north west);  
  ([yshift=-5pt]verl1.north east) -- ++(20pt,0pt) |- (data4);  
  (verl1.east) -- ++(40pt,0pt) |- (data5);  
  (douin.east) -- ++(20pt,0pt) |- ([yshift=-5pt]verl2.north west);  
  ([yshift=-5pt]verl2.north east) -- ([yshift=-5pt]verr1.north west);  
  ([yshift=-5pt]verr1.north east) -- ++(20pt,0pt) |- (data6);  
  ([yshift=-10pt]dirbl.north east) -- ++(20pt,0pt) |- (data1);  
  ([yshift=-20pt]dirbl.north east) -- ++(40pt,0pt) |- (data2);  



  • The block on the left is a matrix of nodes; each row is a named node; those names will be used later to draw the arrows.
  • All other blocks are \nodes.
  • I defined some styles to simplify the code; a data style for the blocks labeled "data" and a verbox style for the empty vertical boxes.
  • There's also an arr style for the arrows.
  • The positioning library allows to easily place elements relatively to other elements already placed.
  • Legend! That's perfect. Also thanks for the explanation so that I know how it works. I will come back and up vote this once I've passed the threshold.
    – BSnapZ
    Commented Oct 12, 2015 at 4:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .