converting to pandoc. phase 2: split tex into chapter files