How To Install preview-latex-style on Kali Linux
Introduction
In this tutorial we learn how to install preview-latex-style on Kali Linux.
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 Kali Linux. 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 updateAfter updating apt database, We can install preview-latex-style using apt-get by running the following command:
sudo apt-get -y install preview-latex-styleInstall preview-latex-style Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install preview-latex-style using apt by running the following command:
sudo apt -y install preview-latex-styleInstall preview-latex-style Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install preview-latex-style using aptitude by running the following command:
sudo aptitude -y install preview-latex-styleHow To Uninstall preview-latex-style on Kali Linux
To uninstall only the preview-latex-style package we can use the following command:
sudo apt-get remove preview-latex-styleUninstall preview-latex-style And Its Dependencies
To uninstall preview-latex-style and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove preview-latex-styleRemove preview-latex-style Configurations and Data
To remove preview-latex-style configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge preview-latex-styleRemove 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-styleDependencies
preview-latex-style have the following dependencies:
References
Summary
In this tutorial we learn how to install preview-latex-style package on Kali Linux using different package management tools: apt, apt-get and aptitude.