texdoc
View TeX package documentation
TLDR
Open package documentation
SYNOPSIS
texdoc [-l] [-s] [-I] [options] query
DESCRIPTION
texdoc finds and opens documentation for TeX and LaTeX packages installed in the TeX Live distribution. Given a package name, it locates the corresponding PDF manual or documentation file and opens it in the default viewer.
The -l flag lists all matching documentation files when multiple exist for a package. Interactive mode (-I) presents a numbered list for selection. Search mode (-s) performs a broader search across the documentation tree, finding documents that mention the query term even if they don't match the package name directly. The -f flag shows file paths without opening them.
PARAMETERS
-l, --list
List matches.-s, --search
Full search.-I, --interact
Interactive mode.-f, --files
Show file paths.-w, --view
View documentation.--viewer CMD
PDF viewer.-D, --debug
Debug output.
CAVEATS
Requires TeX Live documentation. Not all packages documented. PDF viewer needed.
HISTORY
texdoc is part of TeX Live for accessing documentation. It simplifies finding manuals for the thousands of available packages.
