Purged legacy codes for the previous LaTeX support