TEXDOCTK(1)
π NAME π
Okay so the manual name is TEXDOCTK(1) and it lives in the General Commands Manual π
texdoctk is a GUI for finding TeX package and program documentation β¨
π SYNOPSIS π
texdoctk -[aq]
π¦ DESCRIPTION π¦
Okay so texdoctk is a GUI that makes it way easier to get into the huge pile of package and program docs and tutorials for TeX and its different derivatives (mostly LaTeX) π It's optimized and included in the teTeX and fpTeX distributions, and you can also get it with TeXLive π
The docs are sorted into 17 categories. The 18th button on the main panel is inactive by default, and it's meant for your own local additions (see CONFIGURATION below) π§
In the settings window there's a checkbox in the html->ps and text->ps converter menus for switching output redirect on or off π This matters because some converters don't write to a file and instead send their output to stdout by default, so you need a redirect, like this:
a2ps myfile.txt >myfile.ps
β¨ OPTIONS β¨
-vβ verbose mode π’ This turns on some viewer messages that would otherwise go tostderr, plus some warning popup windows. You can also set this in a configuration file.-aβ autoview π This autostarts the viewer when a listbox has only one item (which happens a lot with search results). You can also set this in a configuration file.
π CONFIGURATION π
The configuration is controlled by the system default file ($TEXMFMAIN)/texdoctk/texdocrc.defaults. Most of its entries can be overridden by your own optional ~/.texdocrc files and/or command line options π
βοΈ The Settings menu and configuration files βοΈ
The Settings menu lets you change the user-definable settings for the length of one program call, or save them as new defaults π Saving as defaults is what the Save button is for, and it creates or rewrites your own ~/.texdocrc file. The system defaults can't be edited from the Settings menu, sorry bestie π
Paths β The TEXMF-type paths on your system are shown here, and you can pick the name of the subdirectory of $HOMETEXMF where your personal docs live ποΈ
General viewer behaviour πͺ
- Suppress error messages β this toggles verbose mode (see option
-v). Default is off. - Autostart viewer for one-item listboxes β if a listbox has only one item, the viewer starts automatically (see option
-a). - Use text viewer for unknown file format β this treats the file as plain text π texdoctk should recognize the usual file formats and also map names like
READMEto plain text, but some docs have totally made-up names. Default is on. If you switch it off, trying to view those files raises an error. This switch doesn't affect printing, since unrecognized formats can't be printed. - Change viewer colours β use either RGB triplets in the format
#rrggbbor the standardized color names π
DVI/PostScript/PDF/HTML/Plain text π¨οΈ
For text files, texdoctk has its own viewer π If that viewer is disabled and no alternative viewer is set, texdoctk tries to read the content of the environment variable $PAGER.
If you want to print the docs, you'll need converters to turn non-PS files into PostScript π Here are some suggestions:
- dvi->ps:
dvips(part of teTeX), seehttp://www.radicaleye.com/dvips.html - pdf->ps:
pdf2ps(seehttp://www.cs.wisc.edu/~ghost) or Acrobat Reader (seehttp://www.adobe.com) - html->ps:
html2ps(seehttp://user.it.uu.se/~jan/html2ps.html) - plain text->ps:
a2ps(seehttp://www-inf.enst.fr/~demaille/a2ps/)
The html->ps and text->ps converter menus have the on/off switch for output redirect. This is needed because some converters don't write their output into a file and send it to stdout by default, so a redirect is required, e.g.:
a2ps myfile.txt >myfile.ps
The system-wide config file is ($TEXMFMAIN)/texdoctk/texdocrc.defaults, and it should only be writable by whoever administers the installation, using any text editor π The optional user config file is ~/.texdocrc, and it can override everything except the system settings that affect the installation as a whole. The preferred way to change it is the Settings menu π«Ά
π The databases π
texdoctk comes with a default database file, ($TEXMFMAIN)/texdoctk/texdoctk.dat, in a special format π§ It's split into 17 sections, one for each of the 17 buttons that are active by default. Each section starts with a line like this:
@section_name
where section_name is the text exactly as it appears on the button. The title is followed by the entries for each doc, and each entry has this format (keep it on one line!!):
package-label;Short description for listbox (opt. package-name);path in doc directory;optional keywords
Comments (starting with a #) and empty lines get ignored by the program π The second field is the text shown in the selection listboxes, and you'll usually want the package name in parens after it. The first field is a unique label that the program uses internally. It's usually the same as the package name, but it can be different if a package ships with more than one doc file π
The admin will probably install extra packages in the local texmf tree π‘ Their docs can be made accessible with an additional database, $TEXMFLOCAL/texdoctk/texdoctk-local.dat. Individual users might also install packages in a texmf subdirectory of their $HOME, and they can make their own database as $TEXMFHOME/texdoctk/texdoctk-pers.dat. After creating these files, you must run texhash β οΈ
Both kinds of databases need the same structure as the system database. They don't need (and really shouldn't include) every section if there's nothing new for them to add β¨ For example, say the package foo is added to the local tree, its doc file is ($TEXMFLOCAL)/doc/latex/foo/foo.dvi, and you decide it fits best in the existing Graphics category. Then texdoctk-local.dat would look like this:
@Graphics
foo;Create bells and whistles (foo);latex/foo/foo.dvi;decoration
The foo entry gets added to the end of the Graphics list π The 18th button can be activated the same way, just with a new category name. Any entries at the start of the database that haven't been assigned to a category get put into the default Miscellaneous category, which makes the 18th button active with that label πΈ
β οΈ You can't have more than 18 categories. If there are more, only the one defined last will show up and get used.
If the documentation lives inside the .sty file instead of a proper doc file, the optional keywords should start with -?- right after the semicolon, where ? is 0, 1, 2 or 3 π§ These flags say where in the .sty the instructions are, and they help texdoctk pull out the docs and show them without the code (which would normally be pretty useless to read).
0β no specific place, scattered between the code1β at the end, behind\endinput. Some.styfiles have well-organized docs after the actual code, where TeX doesn't look during compilation2β at the beginning, terminated by%%%%%%. In other cases, some usage info sits at the top of the.styas a comment that ends with a line full of%3β same as2, but terminated by a blank line
See the system database for plenty of examples π
π FILES π
$TEXMFMAIN/texdoctk/texdocrc.defaultsβ system-wide configuration file~/.texdocrc(optional) β personal configuration file, which can also be created with the Settings menu$TEXMFMAIN/texdoctk/texdoctk.datβ default database file for the documentation files of the distribution$TEXMFLOCAL/texdoctk/texdoctk-local.dat(optional) β local database file for documentation files$TEXMFHOME/texdoctk/texdoctk-pers.dat(optional) β personal database file of individual users for documentation files
π BUGS π
- Widget placement in topic toplevels gets ugly when the toplevel is stretched or shrunk π¬
- The font in the frame labels of the Settings menu isn't forced to the default font. You'll see this on hi-res screens, where the label font doesn't get scaled up.
- Netscape and Mozilla error output is written to
stderreven if quiet mode was set.
π AUTHOR π
texdoctk was written by Thomas Ruedas <tr@geol.ku.dk> π
This manual page was originally written by Adrian Bunk <bunk@fs.tum.de> for the Debian GNU/Linux system (but others are allowed to use it). It's now maintained by Thomas Ruedas π«Ά
π COPYRIGHT π
Copyright (C) 2000-2004 Thomas Ruedas
This is free software; see the source for copying conditions. There is NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE π¦
That's the whole page, bestie π§π Signing off as TEXDOCTK(1) from the General Commands Manual, stay cute and keep TeX-ing β¨π
π¦ where this page comes from
- alpine 3.24: texlive-doc 2026.0-r0 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- debian bookworm: texlive-base 2022.20230122-3
- debian trixie: texlive-base 2024.20250309-1
- fedora 43: texlive-texdoctk 11:svn62186-93.fc43 Β· GPL-1.0-or-later
- fedora 43: texlive-texdoctk 11:svn62186-95.fc43.1 Β· GPL-1.0-or-later
- fedora 44: texlive-texdoctk 12:svn62186-105.fc44 Β· GPL-1.0-or-later
- fedora 44: texlive-texdoctk 12:svn62186-111.fc44 Β· GPL-1.0-or-later
- opensuse-leap 16.0: texlive-texdoctk-doc 2025.221.0.0.6.0svn62186-160000.3.1 Β· GPL-2.0-or-later
- ubuntu jammy: texlive-base 2021.20220204-1
- ubuntu noble: texlive-base 2023.20240207-1
- 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