Running marginnote.dtx (latest version from CTAN) with pdflatex results in the following files:


That's all. No marginnote.sty or something like this!

What's wrong?

  • 2
    Try to run pdftex, not pdflatex. – Ulrike Fischer May 2 '18 at 6:42
  • Yes, that's correct. marginnote.sty has been produced. I am a bit surprised as far as I believe that "in former times" other dtx-files could have been processed with pdflatex, too. Is this a memory error? – Jürgen May 2 '18 at 7:06
  • 1
    Some .dtx are quite clever and unpack with tex and create the docu with latex. – Ulrike Fischer May 2 '18 at 7:07
  • Thanks for the explanation. You want to put this into an answer? I would like to accept it. – Jürgen May 2 '18 at 7:14

When you run pdflatex on a dtx, this normally (as in your case) compiles the documentation.

To unpack the .sty and other files you normally have to run pdflatex or pdftex on an accompanying .ins file.

Some .dtx use some clever code and unpack if you run pdftex (or tex) on the dtx and create the documentation if they detect pdflatex.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.