How To Install tex-preview.noarch on Amazon Linux 2

In this tutorial we learn how to install tex-preview.noarch in Amazon Linux 2. tex-preview.noarch is Preview style files for LaTeX

Introduction

In this tutorial we learn how to install tex-preview.noarch on Amazon Linux 2.

What is tex-preview.noarch

The preview package for LaTeX allows for the processing of selected parts of a LaTeX input file. This package extracts indicated pieces from a source file (typically displayed equations, figures and graphics) and typesets with their base point at the (1in,1in) magic location, shipping out the individual pieces on separate pages without any page markup. You can produce either DVI or PDF files, and options exist that will set the page size separately for each page. In that manner, further processing (as with Ghostscript or dvipng) will be able to work in a single pass. The main purpose of this package is the extraction of certain environments (most notably displayed formulas) from LaTeX sources as graphics. This works with DVI files postprocessed by either Dvips and Ghostscript or dvipng, but it also works when you are using PDFTeX for generating PDF files (usually also postprocessed by Ghostscript). The tex-preview package is generated from the AUCTeX package for Emacs.

We can use yum to install tex-preview.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install tex-preview.noarch.

Install tex-preview.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install tex-preview.noarch using yum by running the following command:

sudo yum -y install tex-preview.noarch

How To Uninstall tex-preview.noarch on Amazon Linux 2

To uninstall only the tex-preview.noarch package we can use the following command:

sudo yum remove tex-preview.noarch

tex-preview.noarch Package Contents on Amazon Linux 2

/usr/share/doc/tex-preview-11.87
/usr/share/doc/tex-preview-11.87/COPYING
/usr/share/texmf/doc/latex/styles
/usr/share/texmf/doc/latex/styles/preview.dvi
/usr/share/texmf/tex/latex/preview
/usr/share/texmf/tex/latex/preview/prauctex.cfg
/usr/share/texmf/tex/latex/preview/prauctex.def
/usr/share/texmf/tex/latex/preview/prcounters.def
/usr/share/texmf/tex/latex/preview/preview.sty
/usr/share/texmf/tex/latex/preview/prfootnotes.def
/usr/share/texmf/tex/latex/preview/prlyx.def
/usr/share/texmf/tex/latex/preview/prshowbox.def
/usr/share/texmf/tex/latex/preview/prshowlabels.def
/usr/share/texmf/tex/latex/preview/prtightpage.def
/usr/share/texmf/tex/latex/preview/prtracingall.def

References

Summary

In this tutorial we learn how to install tex-preview.noarch on Amazon Linux 2 using yum.