preprocess latex