How To Install preview-latex-style on Debian 11

In this tutorial we learn how to install preview-latex-style on Debian 11. preview-latex-style is extraction of elements from LaTeX documents as graphics

Introduction

In this tutorial we learn how to install preview-latex-style on Debian 11.

What is preview-latex-style

preview-latex-style is:

The purpose of preview is the extraction of selected elements from a LaTeX source, like formulas or graphics, into separate pages of a DVI file. A flexible and convenient interface allows it to specify what commands and constructs should be extracted. This works with DVI files postprocessed by either Dvips and Ghostscript or dvipng, but it also works when using PDFTeX for generating PDF files.

Currently, preview.sty is used by preview-latex, the WYSIWYG component of the AUCTeX editing environment; for generation of previews in LyX; as part of the operation of the ps4pdf and pst-pdf LaTeX packages; by the tbook XML system and some other tools.

There are three methods to install preview-latex-style on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install preview-latex-style Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install preview-latex-style using apt-get by running the following command:

sudo apt-get -y install preview-latex-style

Install preview-latex-style Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install preview-latex-style using apt by running the following command:

sudo apt -y install preview-latex-style

Install preview-latex-style Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install preview-latex-style using aptitude by running the following command:

sudo aptitude -y install preview-latex-style

How To Uninstall preview-latex-style on Debian 11

To uninstall only the preview-latex-style package we can use the following command:

sudo apt-get remove preview-latex-style

Uninstall preview-latex-style And Its Dependencies

To uninstall preview-latex-style and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove preview-latex-style

Remove preview-latex-style Configurations and Data

To remove preview-latex-style configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge preview-latex-style

Remove preview-latex-style configuration, data, and all of its dependencies

We can use the following command to remove preview-latex-style configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge preview-latex-style

Dependencies

preview-latex-style have the following dependencies:

References

Summary

In this tutorial we learn how to install preview-latex-style package on Debian 11 using different package management tools: apt, apt-get and aptitude.