Split TeX file into several parts.