I know dtx file is literate programming style file. I also know that I can compile it with pdflatex to generate pdf file. But I wonder could I just extract the tex code to a independent file? I think I can learn some thing from the tex source.
|
A DTX file is already a LaTeX file (sometimes called If you want to turn it into a normal LaTeX file, simply remove the comment So basically change:
to:
You can and should still use the |
|||
|
|
|
Usually In some cases
will typeset the documentation and extract the code; however sometimes it's necessary to run
for extracting the code (it's the case with H. Oberdiek's packages). However, the purpose of If running LaTeX on
and run LaTeX on |
||||
|
.dtxfile is. – Joseph Wright♦ Sep 28 '11 at 10:18