Converting presentation to latex format