How To Install texlive-cprotect on Fedora 36

In this tutorial we learn how to install texlive-cprotect in Fedora 36. texlive-cprotect is Allow verbatim, etc., in macro arguments

Introduction

In this tutorial we learn how to install texlive-cprotect on Fedora 36.

What is texlive-cprotect

The package defines the macro \cprotect that makes a following macro proof against verbatim in its argument; as, for example, \cprotect\section{\verb"foo"} A similar macro \cprotEnv (applied to the \begin of an environment) sanitises the behavior of fragile environments. Moving arguments, and corresponding “tables of …” work happily.

We can use yum or dnf to install texlive-cprotect on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install texlive-cprotect.

Install texlive-cprotect on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install texlive-cprotect

Install texlive-cprotect on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install texlive-cprotect

How To Uninstall texlive-cprotect on Fedora 36

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

sudo dnf remove texlive-cprotect

texlive-cprotect Package Contents on Fedora 36

/usr/share/licenses/texlive-cprotect
/usr/share/licenses/texlive-cprotect/lppl1.3.txt
/usr/share/texlive/texmf-dist/tex/latex/cprotect
/usr/share/texlive/texmf-dist/tex/latex/cprotect/cprotect.sty

References

Summary

In this tutorial we learn how to install texlive-cprotect on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).