latex2html command not found

In this troubleshooting guide we learn how to fix latex2html command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

latex2html: command not found

or when using sudo you get the following error message

sudo: latex2html: command not found

Solutions to latex2html: command not found

How To Fix latex2html: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu latex2html is provided by latex2html package.

latex2html is:

LaTeX2HTML is a conversion tool that converts documents written in LaTeX to HTML format. In addition, it offers an easy migration path towards authoring complex hypermedia documents using familiar word-processing concepts.

LaTeX2HTML replicates the basic structure of a LaTeX document as a set of interconnected HTML files which can be explored using automatically generated navigation panels. The cross-references, citations, footnotes, the table of contents and the lists of figures and tables, are also translated into hypertext links. Formatting information which has equivalent ``tags’’ in HTML (lists, quotes, paragraph breaks, type styles, etc.) is also converted appropriately. The remaining heavily formatted items such as mathematical equations, pictures or tables are converted to images which are placed automatically at the correct positions in the final HTML document.

LaTeX2HTML extends LaTeX by supporting arbitrary hypertext links and symbolic cross-references between evolving remote documents. It also allows the specification of conditional text and the inclusion of raw HTML commands. These hypermedia extensions to LaTeX are available as new commands and environments from within a LaTeX document.

Pstoimg, the part of latex2html that produces bitmap images from the LaTeX source, can support both GIF and PNG format.

To fix this problem, we can install more using the command below.

sudo apt-get -y install latex2html

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install latex2html.

sudo apt -y install latex2html

Or if you have aptitude installed you can use the following command.

sudo aptitude install latex2html

Summary

In this tutorial we learn how to fix latex2html command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.