TeX preprocessor for report