
PDFLaTeXを使用するときは、microtype
小文字大文字のフォント(例:\usepackage{lmodern})
\usepackage[
protrusion=true,
expansion=true,
kerning=true,
spacing=true,
tracking=true,
factor=1100,
stretch=40,
shrink=10
]{microtype}
\SetTracking{encoding={*}, family= *, shape=fsc}{16}
XeLaTeX でも同じ設定を (可能な限り) 行いたいです。XeLaTeX では microtype でのみ突出が許可されていることは知っていますが、\rmfamily\bfseries\scshape
コマンドに (セクションなど) が多数含まれているため、microtype が PDFLaTeX で行っているのと同じように、グローバルに追跡を有効にしたいと考えています。ローカルで実行するために を使用できることは知っていますLetterSpace
が、一度だけ実行する方法はありますか?
答え1
これは Linux Libertine のスキームです:
\documentclass{article}
\usepackage{fontspec}
\setmainfont[
Ligatures=TeX,
UprightFeatures={
SmallCapsFont={Linux Libertine O},
SmallCapsFeatures={Letters=SmallCaps,LetterSpace=50},
},
BoldFeatures={
SmallCapsFont={LinLibertineOB},
SmallCapsFeatures={Letters=SmallCaps,LetterSpace=50},
},
ItalicFeatures={
SmallCapsFont={LinLibertineOI},
SmallCapsFeatures={Letters=SmallCaps,LetterSpace=50},
},
BoldItalicFeatures={
SmallCapsFont={LinLibertineOBI},
SmallCapsFeatures={Letters=SmallCaps,LetterSpace=50},
},
]{Linux Libertine O}
\begin{document}
This is text and \textsc{This is in Small Caps}
Don't use the following combinations, please:
{\scshape\bfseries This is Bold Small Caps}
{\scshape\itshape This is Italic Small Caps}
{\scshape\bfseries\itshape This is Bold Italic Small Caps}
\end{document}
設定に合わせて調整してください。トラッキングは 50 に設定されていますが、効果を明確に示すには多すぎます。