About

texdef is a tool for displaying the definitions of TeX commands. It can be used to find the definition of a given TeX, LaTeX, ConTeXt command and print it in a terminal. For example, issuing texdef TeX in a terminal returns

\TeX:
macro:->T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX
history | show excerpt | excerpt history