TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

I've integrated dirtree package into a LaTeX document I am working on, but it appears to be interfering with the document format (see image here 1). How do I tell LaTeX to maintain original formatting after dirtree?




This is just a test.

 \item This is a test 1
 \item This is a test 2
 \item This is a test 3

.1 \framebox{\textbf{NDLTD}}. 
.2 \framebox{\textbf{OCLC}}. 
.3 OCLCNo--477262203.metadata. 

 \item This is a test 1
 \item This is a test 2
 \item This is a test 3


Update #1
I just discovered, while preparing a minimum working example, that the problem is as a result of loading the parskip package.

share|improve this question
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. In my machine, I don't get a crammed output as you did. – hpesoj626 Dec 23 '12 at 9:15
@hpesoj626 Thank you for this. Please see update #1 in original post. I believe the problem is as a result of using parskip package with parfill option. – lightonphiri Dec 23 '12 at 10:22
In version 0.2 try enclosing \dirtree{} with braces. – hpesoj626 Dec 23 '12 at 10:56
up vote 2 down vote accepted

looks like a problem with an old version of parskip or dirtreebecause I cannot see any problem. Put \listfiles into your preamble and compare the list which is at the end of the log file:

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
 dirtree.sty    2012/12/11 v0.32 package wrapper for dirtree
 dirtree.tex    2012/12/11 v0.32 `dirtree' (jcc)
 parskip.sty    2001/04/09 non-zero parskip adjustments
  omscmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions

enter image description here

share|improve this answer
As it turns out, it appears I am using an older version of dirtree --I have v0.2 (2006/01/25); I see you have v0.32. – lightonphiri Dec 23 '12 at 10:53
then update it. On the CTAN is the latest version or run your update manager – Herbert Dec 23 '12 at 11:05
just did, thank you. – lightonphiri Dec 23 '12 at 11:25

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.