Fixed latex conversion in pub ref