# New CTAN package: texdef

Date: March 6, 2011 2:45:07 PM CET
On Sat, 5 Mar 2011 Martin Scharrer submitted the texdef package. Summary description: Perl script to display the definition of TeX commands License type: gpl Announcement text:
The 'texdef' Perl script is displays the definition of given (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 receive 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 'texdef' script will show plainTeX definitions by default. LaTeX and ConTeXt are supported, including flavors (pdf(la)tex, lua(la)tex, xe(la)tex, ...). The flavor can be selected using an command line option or over the script name: 'latexdef' will use LaTeX as default, etc.
This package is located at http://mirror.ctan.org/support/texdef . More information is at http://tug.ctan.org/info/?id=texdef (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html . Thanks for the upload. For the CTAN Team Rainer Schöpf

## texdef – Display the definitions of TeX commands

This (Perl) script displays the definitions of command sequences/macros. Various options allow the selection of the used class as well as package files and other factors that may influence the definition (before/after the preamble, inside an environment, …).

The script creates a temporary file which is then compiled using 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 definitions by default. and Cont are supported, including flavours (pdf, Lua, , …). The flavour can be selected using a command line option, or via the script name: latexdef will use as default, etc.

 Package texdef Version 1.8a 2018-03-28 Copyright 2011–2018 Martin Scharrer Maintainer Martin Scharrer

more