I want to study the source code of
article.cls so I can create macros of my own. If anybody can tell me the location of
article.cls document class file, that will be highly appreciated.
The easiest way to find any file in the TeX Distribution (if you know its name) is to use the
From the command line type:
and it should return:
on a TeX Live system.
Depending on your OS, you may be able to open the file directly. On a Mac, e.g. I can type
open `kpsewhich article.cls`
and the file will open in my normal TeX editor. (The back ticks pass the output of the command within the back ticks to the
open command.) The equivalent Linux command is
xdg-open I believe. I have no idea if an equivalent command exists in Windows.