[Tex/LaTex] dtx file: how to run it

compilingdtxerrorsfont-expansionmicrotype

I want to clarify first that I am a beginner, and thus my question might be imprecise or inadequate. Anyway:

I found this documentation file for the package microtype, can be easily found on ctan. It is microtype.pdf. I like the format of the document and the font of the document, so I downloaded the .dtx file and try to see how they got it. Of course, I cannot understand almost anything about the code. Anyway I try to compile it with pdfLaTex. But this does not work, as a series of errors and warnings appear.

I report the last lines of the log file, if they are useful

[1{C:/Users/User/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}
! pdfTeX error (font expansion): auto expansion is only possible with scalable 
fonts.
\AtBegShi@Output ...ipout \box \AtBeginShipoutBox 
                                              \fi \fi 
l.767 %\newpage

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on microtype.log.
texify: pdflatex.exe failed for some reason (see log file).

Best Answer

microtype.dtx uses the EC fonts (=Computer Modern in T1 font encoding). You need to install the scalable Type 1 variants. They are available as cm-super. Install it with the package manager.