7

I am using TeXLive in Linux and want to learn and experiment. How can I list available document classes in my installation?

5

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.

  • The location may not be correct. For example, on my Mac kpsewhich --var-value TEXMFMAIN gives /usr/local/texlive/2012/texmf, but you want /usr/local/texlive/2012/texmf-dist. – Joseph Wright May 19 '13 at 8:10
1
find `kpsewhich --var-value TEXMFDIST` -name *.cls

and if you have also a local tree:

find `kpsewhich --var-value TEXMFLOCAL` -name *.cls

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy