texdef – Display the definitions of TeX commands
The (Perl) script displays the definition of (La)TeX command sequences/macros. Various options allow the selection of the used class and package files and other things which can have influence on the definition (before/after the preamble, inside an environment, …).
The script creates a temporary TeX file which is then compiled using (La)TeX to find the ‘\meaning’ of the command sequence. The result is formatted and presented to the user. Length or number command sequences (dimensions, \char…, count registers, …) are recognized and the contained value is also shown (using \the). Special definitions like protected macros are also recognized and the underlying macros are shown as well.
The script will show plain TeX definitions by default. LaTeX and ConTeXt are supported, including flavours (pdf(La)TeX, Lua(La)TeX, Xe(La)TeX, …). The flavour can be selected using an command line option or over the script name: latexdef will use LaTeX as default, etc.
|License||GNU General Public License, version 3|
|Copyright||2011–2012 Martin Scharrer
|Contained in||TeX Live as texdef|
|MiKTeX as texdef|
support for package or document debugging
Download the contents of this package in one zip archive (255.0k).
Maybe you are interested in the following packages as well.
- chktex: Check for errors in LaTeX documents
- texlog_extract: Extract errors and warnings from TeX logs
- syntonly: Run a document through LaTeX for syntax checking
- lua-visual-debug: Visual debugging with LuaLaTeX