TEXDOC(1)

πŸ“¦
version 73876 Β· 5 versions
, in arch rolling, debian trixie, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸŽ€ 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, and all if you want every single one πŸ’œ
  • -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 variable TEXDOCS πŸ”Ž

πŸ“‚ 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! 🫢

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 πŸ’…βœ¨