TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a package that can typeset trees used for energy budgets?

enter image description here

The image is an extract from Dynamic Energy and Mass Budgets in Biological Systems by B.Kooijman which is easily identifiable as having been typeset using LaTeX. Unfortunately I have only a PDF of the book.

share|improve this question
You could use the dirtree package or TikZ. Have a look at Drawing a directory listing a la the tree command in TikZ. – Stefan Kottwitz Jan 11 '12 at 8:55
@StefanKottwitz I am not familiar with TikZ, but the link you posted is almost what I need can you help with partial code for the down arrow in the first leaf to get me going? – Yiannis Lazarides Jan 11 '12 at 9:00
dirtree is very easy to use. Try it ! – projetmbc Jan 20 '12 at 17:53
@projetmbc I tried it and it works except the I couldn't get the first level downarrows. – Yiannis Lazarides Jan 20 '12 at 18:15
up vote 4 down vote accepted

You can use the package pst-tree. The following example is taken from the homepage of pstricks and shows a directory tree. You can simple adapt this. I reduced th example a litte bit to provide the code in this answer.

\documentclass[12pt,a4paper]{article}% Walter Schmidt

\begin{minipage}[t]{#1}% <-------- !!!


    \file{\url{intro98.tex }}
    \file{\url{roadmap.eps }}
\file{\url{encspecs.zip }}
\file{\url{examples.zip }}
\file{\url{inputs.zip   }}
\file{\url{latex.zip    }}
\file{\url{README       }}
\file{\url{source.zip   }}
\file{\url{test.zip     }}

Of course the same is possible with the package tikz/pgf or tikz-qtree.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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