implement Latex support