Added support for folding latex documents