latex: first working version by fixing paths