The @includes blocks should be returning the array with all the filenames for files found under \include{foo,bar,...}, and recursive_scan should be expecting an array in return. Not sure if multiple files in \include's are allowed by LaTeX, but it wasn't hard to allow them anyway. Changed: U trunk/Support/lib/LaTeXUtils.rb