LaTeX: added function for fold+preview