I am using TeXLive in Linux and want to learn and experiment. How can I list available document classes in my installation?
TeX Live maintains some text files where all packages/classes etc. are listed. The files are called
ls-R and there's one for each main tree. In order to find all installed document classes in your main path you can do the following command:
grep "\.cls" `kpsewhich --var-value TEXMFDIST`/ls-R > $HOME/allcls.txt
After this process you have a file
allcls.txt in you home directory with all existent document classes.
find `kpsewhich --var-value TEXMFDIST` -name *.cls
and if you have also a local tree:
find `kpsewhich --var-value TEXMFLOCAL` -name *.cls