How To Install texlive-tex4ht on CentOS 7

In this tutorial we learn how to install texlive-tex4ht on CentOS 7. texlive-tex4ht is Convert (La)TeX to HTML/XML

Introduction

In this tutorial we learn how to install texlive-tex4ht on CentOS 7.

What is texlive-tex4ht

A converter from TeX and LaTeX to SGML-based formats such as (X)HTML, MathML, OpenDocument, and DocBook, providing a configurable (La)TeX-based authoring system for hypertext. Tex4ht does not parse (La)TeX source (so that it avoids the difficulties encountered by many other converters, arising from the irregularity of (La)TeX syntax). Instead, Tex4ht uses (La)TeX itself (with an extra macro package) to produce a non- standard DVI file that it can then process. This technique allows TeX4ht to approach the robustness characteristic of restricted-syntax systems such as hyperlatex and gellmu. Note that CTAN no longer holds the definitive sources of the package date

We can use yum or dnf to install texlive-tex4ht on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install texlive-tex4ht.

Install texlive-tex4ht on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install texlive-tex4ht using yum by running the following command:

sudo yum -y install texlive-tex4ht

Install texlive-tex4ht on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install texlive-tex4ht using dnf by running the following command:

sudo dnf -y install texlive-tex4ht

How To Uninstall texlive-tex4ht on CentOS 7

To uninstall only the texlive-tex4ht package we can use the following command:

sudo dnf remove texlive-tex4ht

References

Summary

In this tutorial we learn how to install texlive-tex4ht on CentOS 7 using yum and dnf.