Following up this excellent question, I've tried to find the definition of the \chapter command via
texdef -t latex -f chapter -s
It shows then the following output:
\chapter:
undefined
While for other commands, it works fine, e.g. for \section etc.
texdef -t latex -f section -s
giving the output
% article.cls, line 302:
\newcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\bfseries}}
It also works fine for \part etc.
What is wrong?
man texdefbut forgot abouttexdef --help. You want to put an answer, or you think this question should rather be closed? – jjdb May 03 '17 at 11:10