added sub latex conversion