Added latex support.