64

Should I always load the microtype package with pdflatex?

Could it produce unwanted effects a naive user (like me) might ignore?

Are there any known issues as for compatibility with other packages?

In fact, I can't see any differences in the appearance of the output but I came across some posts which say that microtype is essentially a must for pdflatex since it greatly improves the pdf output.

lpdbw
  • 8,330
  • 1
    See http://tex.stackexchange.com/q/20793/5701 and http://tex.stackexchange.com/q/30949/5701 – N.N. Aug 06 '12 at 12:39

2 Answers2

51

Always use it, it should improve full justification. If you want, you can tinker with the variables for expansion and protrusion. A good example where you can see what microtype does is here. Also the microtype documentation provides an interactive example of what each option does.

topskip
  • 37,020
Juri Robl
  • 4,763
  • 1
    Interactive example sounds good ... just can't find it!? – lpdbw Aug 06 '12 at 12:32
  • 1
    look on page 4, the first section. On the left side are two buttons, try to press them. – Juri Robl Aug 06 '12 at 12:35
  • Great, thanks! The margin of the doc wasn't displayed since my window was not wide enough ;-) – lpdbw Aug 06 '12 at 12:37
  • 9
    Indeed I also suggest to always load it - but further you should also add \makeatletter\usepackage{microtype}\g@addto@macro\@verbatim{\microtypesetup{activate=false}}\makeatother% to you preamble to avoid problems with verbatim-areas. – Bastian Ebeling Aug 13 '12 at 06:22
  • What packages were used in the Microtype documentation? - I'd like to experiment with interactivity in a PDF. – johntait.org Jan 26 '16 at 01:15
  • 1
    @johntait.org IIRC ocg layers. You can view and hide different layers when clicking on a button or printing vs displaying. – Juri Robl Jan 26 '16 at 08:35
  • 1
    @BastianEbeling, the microtype documentation suggests to use \AtBeginEnvironment{verbatim}{\microtypesetup{activate=false}}, do you know the difference? – Turion Sep 07 '16 at 15:21
  • 1
    @Turion I'm not perfekt sure, but I think, the result is the same. My solution is just that old, the hook @AtBeginEnvironment{verbatim} was not available. – Bastian Ebeling Sep 08 '16 at 19:26
  • 1
    @BastianEbeling, maybe your version works for \verbatim commands as well? – Turion Sep 08 '16 at 19:32
  • @Turion, I'm sure yes, that will work. You're right: Thus it is not identical. – Bastian Ebeling Sep 09 '16 at 10:43
18

The answer is: yes, load it, but use not everywhere. For example, microtype should be avoided in the table of contents (which is actually stated in the documentation of the package). In addition to the original documentation, here you can find illustrated examples addressing different microtype features.