TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

One of the nicest LaTeX examples I have seen is the Microtype documentation.

The .dtx file is available here and I have been trying to recreate a document looking like this. Unfortunately it's not super clear to me how to recreate a similar document from the .dtx file.

I am using


which is straight from the .dtx file. Is that the package from the original .tex file?

I'm also interested in recreating the color scheme and margin notes!

share|improve this question
I especially like the font used in the microtype docmentation. – matth Apr 9 '12 at 9:59
up vote 8 down vote accepted

The ltxdoc class is the standard LaTeX documentation class. The microtype documentation just extends this class via a number of macros defined in the preamble. Copy everything from the preamble to emulate the looks of the documentation package.

   copy up to line 647

You can then remove carefully any definitions you might not want that are specific to the microtype documentation.

share|improve this answer
Thanks! I was hoping that wasn't going to be the answer :) – Qwirk Apr 10 '12 at 2:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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