split tex-file into chapters