fixing latex document