How To Install texlive-subfig on AlmaLinux 8

In this tutorial we learn how to install texlive-subfig in AlmaLinux 8. texlive-subfig is Figures broken into subfigures

Introduction

In this tutorial we learn how to install texlive-subfig on AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 8

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

sudo dnf remove texlive-subfig

References

Summary

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