split file in subfiles containing one chapter