7

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

Marco Daniel
  • 95,681

2 Answers2

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.

egreg
  • 1,121,712
Marco Daniel
  • 95,681
  • 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 08:10
1
find `kpsewhich --var-value TEXMFDIST` -name *.cls

and if you have also a local tree:

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