My question, in variants, I saw, asked many times here, but I can't solve problem.
If we use \textcolor{FirstLetter}SecondAndOtherLettersOfWord
, we lost font kerning between first and second letters.
With \showoutput
in log we have \special{color push rgb 1 0 0}
and \special{color pop}
instructions.
How we need combine \bgroup
, \egroup
, etc. (from previously answers) in this case (usual text, and often colorized only first letter in word)?
XeLateX. Can't use luacolor and LuaLatex.
MWE:
\documentclass{article}
\usepackage{polyglossia}
\usepackage{xcolor}
\begin{document}
\textcolor{red}{V}AR
VAR
\end{document}
\special
nodes interrupt kerning. Only LuaTeX can apply per-glyph colouring, which doesn't disrupt kerning (see theluacolor
package)