Samstag, 2. Oktober 2010

Microtype

Who ever is interested in getting the most of LaTeX should be aware of the microtype Package. It adds lots of improvements to TeX’s typesetting capabilities. Most notable, it reduces the number of over- and underfull boxes, improves hyphenation and improves the overall gray value appearance.

Unfortunately, it might slow down the compilation enormously. This issue was recently discussed elsewhere, coming with a neat solution: Simply add the following code after loading the microtype package:

\makeatletter
\def\MT@register@subst@font{\MT@exp@one@n\MT@in@clist\font@name\MT@font@list
   \ifMT@inlist@\else\xdef\MT@font@list{\MT@font@list\font@name,}\fi}
\makeatother

This does the whole trick.

PS.: The code example has been typeset in the Consolas font.

Keine Kommentare: