Code: Select all
\XeTeXinterchartoks f ’ {\kern 2pt}
Code: Select all
\XeTeXinterchartoks f ’ {\kern 2pt}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\documentclass{article}
\usepackage{fontspec}
\XeTeXinterchartokenstate=1
\newXeTeXintercharclass\fooA
\newXeTeXintercharclass\fooB
\XeTeXcharclass `\f=\fooA
\XeTeXcharclass `\’=\fooB
\XeTeXinterchartoks \fooA \fooB {\kern 2pt}
\begin{document}
\begingroup
% disable feature for comparison:
\XeTeXinterchartokenstate=0
f’
\endgroup
f’
\end{document}
%%% Local Variables:
%%% coding: utf-8
%%% mode: latex
%%% TeX-engine: xetex
%%% End: Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis