Here I introduce the routine \spaceout[added space]{string}
to indicate text to be spaced out. The optional argument can specify the extra space added between each letter of the argument (here I default it to 0.5pt). Spaces are properly parsed in the argument, using similar logic to my answer at How to bold custom calligraphic text.
In my MWE here, I show how \spaceout
can be used both to compress or expand text spacing.
\documentclass{article}
\usepackage{tabto}
\def\theLetterSpace{0.5pt}
\newcommand\spaceout[2][\theLetterSpace]{%
\def\LocalLetterSpace{#1}\expandafter\spaceouthelpA#2 \relax\relax}
\def\spaceouthelpA#1 #2\relax{%
\spaceouthelpB#1\relax\relax%
\ifx\relax#2\else\ \kern\LocalLetterSpace\spaceouthelpA#2\relax\fi
}
\def\spaceouthelpB#1#2\relax{%
#1%
\ifx\relax#2\else
\kern\LocalLetterSpace\spaceouthelpB#2\relax%
\fi
}
\parskip 1ex
\usepackage{microtype,textcase}
\begin{document}
\textls*[110]{\textbf{\MakeUppercase{Specialties}}} OP\#1
\textls*[110]{\textbf{\MakeUppercase{Specia{l}{t}ies}}} OP\#2
\textls*[110]{\textbf{\MakeUppercase{Speci\spaceout[-.6pt]{alt}ies}}} \verb|\spaceout|
\vspace{3ex}
test test test test test test no spacing
test \spaceout{test test test test} test 0.5pt added spacing
test \spaceout[1.5pt]{test test test test} test 1.5pt added spacing
test \spaceout[5pt]{test test test test} test 5pt added spacing
\end{document}
And below, we see an example on bold sans caps:
which uses the following code:
\documentclass{article}
\usepackage{tabto}
\def\theLetterSpace{0.5pt}
\newcommand\spaceout[2][\theLetterSpace]{%
\def\LocalLetterSpace{#1}\expandafter\spaceouthelpA#2 \relax\relax}
\def\spaceouthelpA#1 #2\relax{%
\spaceouthelpB#1\relax\relax%
\ifx\relax#2\else\ \kern\LocalLetterSpace\spaceouthelpA#2\relax\fi
}
\def\spaceouthelpB#1#2\relax{%
#1%
\ifx\relax#2\else
\kern\LocalLetterSpace\spaceouthelpB#2\relax%
\fi
}
\parskip 1ex
\begin{document}
\sffamily\bfseries
THIS IS MY HEADING \tabto{2.5in}no added spacing
\spaceout{THIS IS MY HEADING} \tabto{2.5in}0.5pt added spacing
\spaceout[1.5pt]{THIS IS MY HEADING} \tabto{2.5in}1.5pt added spacing
\spaceout[3pt]{THIS IS MY HEADING} \tabto{2.5in}3pt added spacing
\end{document}
SetExtraKerning
as in mhp's answer here: tex.stackexchange.com/questions/4062/…