Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using XeTeX from TL2010 with microtype 2.5 beta and fontspec. My main font is Linux Libertine O. I do not see a single difference with and without including the microtype package.

Am I doing something wrong, is there a better way to optimize character protrusion in XeTeX to get nicer paragraphs and spend less time fixing overfull lines?

This is what I'm doing:

% This line doesn't change anything at all
\usepackage[protrusion=true,final]{microtype}
\usepackage{fontspec}
\usepackage{xunicode}    
\setmainfont[Mapping=tex-text]{Linux Libertine O}                               
% other fonts and settings...

The logs do indicate that microtype seems to work:

LaTeX Info: Redefining \microtypecontext on input line 54.                      
Package microtype Info: Character protrusion enabled (level 2).                 
Package microtype Info: Using default protrusion set `alltext'.                 
Package microtype Info: No adjustment of tracking.                              
Package microtype Info: No adjustment of spacing.                               
Package microtype Info: No adjustment of kerning.  

Edit: Actually, protrusion does work properly it seems, but it doesn't seem to help with overfull lines. Does protrusion not help with it, and is it only font expansion that helps with overfull lines?

share|improve this question
1  
You have to prepare a configuration file; there are examples in the same directory as microtype.sty and one for an OpenType font here. –  egreg Jul 3 '11 at 21:06
    
That's what I feared :-) Can I find an existing configuration file for Linux Libertine anywhere? If not, what are all the numbers and how do I choose/set them? –  ℝaphink Jul 3 '11 at 21:11
3  
Protrusion means that characters like point, hyphen, comma stick a bit in the margin to get a visually more pleasant result. It changes line breaking so it can in some paragraphs improve it (like rewriting a text can improve it). But to improve line breaking in the complete text you need font expansion or you must adjust the hyphenation. –  Ulrike Fischer Jul 4 '11 at 14:39
2  
font expansion is not available in XeTeX –  Ulrike Fischer Jul 4 '11 at 15:00
1  
@Raphink: The only thing that XeTeX does and LuaTeX doesn't is inclusion of PostScript. And the LaTeX support for LuaTeX is a bit behind (most notably polyglossia doesn't work). Otherwise: Yes. –  Martin Schröder Jul 18 '11 at 16:40

1 Answer 1

up vote 2 down vote accepted

After looking more closely, I do see that protrusion works (now that I know what it's supposed to do) and I understand that font expansion doesn't (yet) work with XeTeX. This question is thus solved.

share|improve this answer

Your Answer

 
discard

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.