[Tex/LaTex] How to install a .dtx file

dtxinstalling

When I run:

tex algorithms.dtx

for example, I get this message.

  ! Undefined control sequence.
l.34 \documentclass
                   {ltxdoc}
?

Help?

Best Answer

Depending on how the .dtx is constructed, it may not work at all with TeX: you have to use (pdf)latex. To unpack the file you may well need an .ins file.

Related Question