How To Install texlive-subfig on CentOS 8

texlive-subfig is Figures broken into subfigures

Introduction

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

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove texlive-subfig

texlive-subfig Package Contents on CentOS 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 CentOS 8 using yum and dnf.