[Tex/LaTex] Download all dtx from CTAN

ctandtx

I've written some code to extract some help from dtx files (documented package), and I have tested it on a few packages for which I had the .dtx. It seems, however, that .dtx files are not shipped with TeXlive (or rather, find /usr -name '*.dtx' only came up with very few of them).

I could simply go to CTAN and download package documentation one file at a time, but… that's not desirable :). So how can I do that in the most efficient possible way?

EDIT: it appears that the absence of dtx is normal under Ubuntu 10.04 (Lucid). Only dtx from the koma-script and a few others are included.

Best Answer

You can use the rsync interface of the three main archive servers. Then use the correct rsync option to only include .dtx files:

rsync -aP --prune-empty-dirs --include='*/' --include='*.dtx' --exclude='*' rsync://rsync.dante.ctan.org/CTAN alldtxs

However, in my manually installed TeXLive2010 tree the DTX files are included.

Related Question