Possible Duplicate:
Where do I find out how a command/environment is defined?
Is there a more or less general and (hopefully) convenient way to learn what is a command encountered in a source file?
Let's take a few lines right at the beginning of book.cls:
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{book}
[2007/10/19 v1.4h
Standard LaTeX document class]
\newcommand\@ptsize{}
\newif\if@restonecol
\newif\if@titlepage
\@titlepagetrue
\newif\if@openright
\newif\if@mainmatter \@mainmattertrue
\if@compatibility\else
\DeclareOption{a4paper}
The subject question applies literally to every line:
What is
\ProvidesClassand how to look it up?What is
\newifand how to look it up?What is
\DeclareOptionand how to look it up?
I'd like to know where exactly the better known \newcommand is declared, for that matter.