How To Install texlive-xdoc on Fedora 36

In this tutorial we learn how to install texlive-xdoc in Fedora 36. texlive-xdoc is Extending the LaTeX doc system

Introduction

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

What is texlive-xdoc

Xdoc is a project to rewrite the implementation of the LaTeX doc package (in a broader sense) to make its features more general and flexible. For example, where doc only provides commands for documenting macros and environments, xdoc also provides commands for similarly documenting package options and switches. This is furthermore done in such a way that it is very easy to add more such commands for documenting things, such as e.g., templates (an important concept in the future LaTeX3) and program components for other languages (functions, classes, procedures, etc.). A side effect is that many minor bugs in doc are fixed. The design aims to take advantage of many still experimental features of future versions of LaTeX, but since these are neither reasonably stable nor widely available, the configuration interfaces and package author commands of xdoc are likely to change. To still provide a stable interface for other packages to build upon, the actual package names include a “major version number” of sorts. The drop-in replacement package for standard doc is xdoc2; it requires nothing outside standard LaTeX2e. The docindex/docidx2e package changes the index and list of changes typesetting so that none of the formatting has to be controlled via the index style file. The docindex package provides control of formatting via templates (nice interface, but requires several experimental packages), whereas the docidx2e package has traditional raw macro interfaces and works with standard LaTeX2e.

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

Install texlive-xdoc 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-xdoc using dnf by running the following command:

sudo dnf -y install texlive-xdoc

Install texlive-xdoc 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-xdoc using yum by running the following command:

sudo yum -y install texlive-xdoc

How To Uninstall texlive-xdoc on Fedora 36

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

sudo dnf remove texlive-xdoc

texlive-xdoc Package Contents on Fedora 36

/usr/share/licenses/texlive-xdoc
/usr/share/licenses/texlive-xdoc/lppl1.txt
/usr/share/texlive/texmf-dist/makeindex/xdoc
/usr/share/texlive/texmf-dist/makeindex/xdoc/docindex.ist
/usr/share/texlive/texmf-dist/tex/latex/xdoc
/usr/share/texlive/texmf-dist/tex/latex/xdoc/docidx2e.sty
/usr/share/texlive/texmf-dist/tex/latex/xdoc/docindex.sty
/usr/share/texlive/texmf-dist/tex/latex/xdoc/xdoc2.sty

References

Summary

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