Skip to main content

The PreTeXt Guide

Section 41.10 Justified Text

We employ the package, microtype
 1 
ctan.org/pkg/microtype
to enhance ’s algorithms for spacing text. See Section 30.3 for some explanation. The package admits a great deal of fine-tuning, and we make it easy to pass in options via a template included as part of the styling.
If you were using pdflatex you might include in your styling:
<xsl:template name="microtype-options">
    <xsl:text>protrusion=true,expansion</xsl:text>
</xsl:template>
This would have the effect of putting
\usepackage[protrusion=true,expansion]{microtype}
into your output file. Study the microtype documentation for possibilities.