This tex sample file illustrates how to use the dirtree package: {{{ (...) \usepackage{dirtree} (...) \begin{figure} \input{doc_dirs} \caption{the documentation folder} \label{fig_doc_dirs} \end{figure} (...) }}} The file doc_dirs.tex is generated using the [wiki:Makefile makefile] and included into a figure environment, because referencing to it is easier this way.