TEXDOC(1)
π TEXDOC(1) Β· Texdoc manual π
β¨ NAME β¨
texdoc - find & view documentation in TeX Live π
π» SYNOPSIS π»
texdoc [OPTION]... NAME...
texdoc [OPTION]... ACTION
πΈ DESCRIPTION πΈ
okay so texdoc tries to dig up the right TeX documentation for whatever NAME(s) you give it π ngl it's giving detective. Or, if you'd rather, hand it an ACTION instead and it'll do that and then bounce π«Ά
π OPTIONS π
-w,--viewβ view mode, so it starts a viewer β¨ (this is the default, bestie)-m,--mixedβ mixed mode, where it can view or list π¦-l,--listβ list mode, shows you a list of results π-s,--showallβ showall mode, which also shows the "bad" results π-i,--interactβ interactive menus π (default, obviously)-I,--nointeractβ plain lists, zero interaction needed π-M,--machineβ machine-readable output for lists, and it implies-Iπ€-q,--quietβ shhh, suppresses warnings and most error messages π€«-v,--verboseβ spills extra info, like the viewer command π£οΈ-D,--debugβ activates all the debug output (same as--debug=all) π-d LIST,--debug=LISTβ activates debug output only for the categories you name in LIST π§- the categories are:
config,files,search,docfile,score,texdocs,tlpdb,version,view, andallif you want every single one π
- the categories are:
-c NAME=VALUEβ sets the configuration item NAME to VALUE βοΈ
π ACTIONS π
-h,--helpβ prints the help message π-V,--versionβ prints the version number π’-f,--filesβ prints the list of configuration files being used π--just-view FILEβ displays FILE, which you have to give with its full path, so no searching happens π―--print-completion SHELLβ prints the completion for SHELL π
π ENVIRONMENT π
okay so these environment variables can be split by colon and used to set viewers π
BROWSER,BROWSER_texdocβ sets the command for HTML documents πDVIVIEWER,DVIVIEWER_texdocβ sets the command for DVI documents πMDVIEWER,MDVIEWER_texdocβ sets the command for Markdown documents πPAGER,PAGER_texdocβ sets the command for text documents πPDFVIEWER,PDFVIEWER_texdocβ sets the command for PDF documents πPSVIEWER,PSVIEWER_texdocβ sets the command for PS documents ποΈ
these ones get used too:
LANG,LC_ALL,LANGUAGE,LANGUAGE_texdocβ set the locale, which changes what search results you get πTEXDOCSβ on top of the docs in the TeX Live database, Texdoc also searches for documentation under the TEXMF trees listed in the kpathsea variableTEXDOCSπ
π FILES π
<texmf>/texdoc/texdoc.cnf, and you can see the real path with the output of the --files option ποΈ
π¦ EXIT STATUS π¦
so the texdoc command exits with one of these values:
0β success, we did it π₯³1β internal error π2β usage error, so check how you typed that π3β no documentation found πΏ
π REPORTING BUGS π
if something's broken, tell the devs! π«Ά
- report bugs to
texdoc@tug.orgπ§ - the Texdoc home page is
http://tug.org/texdoc/π - the source lives at
https://github.com/TeX-Live/texdocπ»
βοΈ COPYRIGHT βοΈ
Copyright 2008-2025 Manuel Pe'gourie'-Gonnard, Takuto Asakura, the TeX Live Team π License: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html π this is free software, so you're free to change and redistribute it π¦
π SEE ALSO π
the full documentation is kept as a PDF manual π bestie, this command should get you to the complete manual:
texdoc texdoc
that's a wrap on Texdoc 4.1.1 (February 2025) π stay curious, stay caffeinated, and go read some docs π β¨
π¦ where this page comes from
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- debian trixie: texlive-base 2024.20250309-1
- fedora 44: texlive-texdoc 12:svn73876-105.fc44 Β· GPL-1.0-or-later
- fedora 44: texlive-texdoc 12:svn73876-111.fc44 Β· GPL-1.0-or-later
- opensuse-leap 16.0: texlive-texdoc-doc 2025.221.4.1.1svn73876-160000.3.1 Β· GPL-2.0-or-later
- ubuntu questing: texlive-base 2024.20250309-1
- ubuntu resolute: texlive-base 2025.20260124-1
- ubuntu stonking: texlive-base 2026.20260711-2
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms