same as writeLaTeX version