# Letterspacing titles with LuaLaTeX

I'm using LuaLaTeX to write my thesis and I've been learning about typography thanks to Robert Bringhurst's "The elements of typographic style". Problem is I can't replicate the letterspacing used in titles sectioning, so do you know how I can achieve that? (I tried with microtype package with no success at all).

My cls is inspired heavily by Evind Uggedal's thesis (which at the same time he is inspired by Robert Bringhurst's book) but he is using pdflatex instead of LuaLaTeX.

Here is Eivind Uggedal's cls: https://bitbucket.org/uggedal/thesis/src/5017b3e8bdb8/src/uiothesis.cls

Here you have an screenshot:

Thanks!!

UPDATE:

As @rdhs has pointed in the comment below you can use the two options he wrote. In my case I prefer the first one because I don't have to import another package, so if you are going to use it make sure you update your microtype package to the last beta version (visit this site if you need more info http://latex-alive.tumblr.com/post/1303450459).

tlmgr --repository http://tlcontrib.metatex.org/2011 update microtype


Here is the final result:

UPDATE 2:

As @NVaughan said in the comment below, if you're using TexLive 2012 you should type:

tlmgr --repository http://tlcontrib.metatex.org/2012 update microtype

-
I have a suspicion that you may be coming up against features of microtype that are not (fully) implemented for the XeTeX and LuaTeX engines. A number of questions, such as this one mention these restrictions. –  Brent.Longborough Apr 22 '12 at 15:38
If you're using TeXLive (or MacTeX) 2012, the command is rather sudo tlmgr --repository http://tlcontrib.metatex.org/2012 update microtype. –  NVaughan Jan 2 '13 at 18:46
@NVaughan Yes you're right! Thanks for pointing that! :D –  Aldo Borrero Jan 2 '13 at 19:03

At the moment, the best way to get letterspacing in LuaLaTeX is with the microtype package. You'll need the Microtype 2.5 beta from TLContrib (http://tlcontrib.metatex.org/2011), and to get it working nicely with smal caps you'll need to use the Renderer=Basic hack:

\documentclass{memoir}
\usepackage{fontspec}
\setmainfont{Minion Pro}

\usepackage{microtype}

\def\seclcls#1{\textls*[80]{\MakeLowercase{#1}}}

\begin{document}
\section{¿Qué necesidades tiene alma?}
\end{document}


You could also use soulutf8 instead. Using code from this answer:

\documentclass{memoir}
\usepackage{fontspec}
\setmainfont{Minion Pro}

\usepackage{soulutf8}
\usepackage{xparse}