How To Install texlive-subfig on Rocky Linux 8

In this tutorial we learn how to install texlive-subfig on Rocky Linux 8. texlive-subfig is Figures broken into subfigures

Introduction

In this tutorial we learn how to install texlive-subfig on Rocky Linux 8.

What is texlive-subfig

The package provides support for the manipulation and reference of small or ‘sub’ figures and tables within a single figure or table environment. It is convenient to use this package when your subfigures are to be separately captioned, referenced, or are to be included in the List-of-Figures. A new \subfigure command is introduced which can be used inside a figure environment for each subfigure. An optional first argument is used as the caption for that subfigure. This package supersedes the subfigure package (which will continue to be supported, but no longer maintained). The name has changed because the subfig package is not completely backward compatible with the older subfigure package due to an extensive rewrite to use the new caption package to produce its subcaptions. The major advantage to the new package is that the user interface is keyword/value driven and easier to use. To ease the transition from the subfigure package it includes a configuration file (subfig.cfg) which nearly emulates the subfigure package.

We can use yum or dnf to install texlive-subfig on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install texlive-subfig.

Install texlive-subfig on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install texlive-subfig

Install texlive-subfig on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install texlive-subfig

How To Uninstall texlive-subfig on Rocky Linux 8

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

sudo dnf remove texlive-subfig

texlive-subfig Package Contents on Rocky Linux 8

/usr/share/licenses/texlive-subfig
/usr/share/licenses/texlive-subfig/lppl1.txt
/usr/share/texlive/texmf-dist/doc/latex/subfig
/usr/share/texlive/texmf-dist/doc/latex/subfig/README
/usr/share/texlive/texmf-dist/doc/latex/subfig/ltxdoc.cfg
/usr/share/texlive/texmf-dist/doc/latex/subfig/subfig.pdf
/usr/share/texlive/texmf-dist/doc/latex/subfig/test1.tex
/usr/share/texlive/texmf-dist/doc/latex/subfig/test2.tex
/usr/share/texlive/texmf-dist/doc/latex/subfig/test3.tex
/usr/share/texlive/texmf-dist/doc/latex/subfig/test4.tex
/usr/share/texlive/texmf-dist/doc/latex/subfig/test5.tex
/usr/share/texlive/texmf-dist/doc/latex/subfig/test6.tex
/usr/share/texlive/texmf-dist/doc/latex/subfig/test7.tex
/usr/share/texlive/texmf-dist/tex/latex/subfig
/usr/share/texlive/texmf-dist/tex/latex/subfig/altsf.cfg
/usr/share/texlive/texmf-dist/tex/latex/subfig/subfig.sty

References

Summary

In this tutorial we learn how to install texlive-subfig on Rocky Linux 8 using yum and dnf.