1 2 3 4 5 6
% this will typeset only documentation but not the code \AtBeginDocument{\OnlyDescription \let\tableofcontents\relax } \input{ltcmdhooks.dtx}