
答え1
\so
示された例から、パッケージからコマンドを探していることがわかりますsoul
。
\documentclass{article}
\usepackage{soul}
\begin{document}
\so{text} text text
\end{document}
編集: Soul のドキュメントより (8 ページ):
独自の間隔マクロを定義したり、
\so
マクロを使用して元の意味を上書きしたりできます\sodef
。
\sodef<cmd>{font inter-letter-space}{inner space}{outer space}
スペースの寸法はすべて必須であり、
em
それぞれのフォントに合わせて拡大または縮小できるように定義する必要があります。
例:
\documentclass{article}
\usepackage{microtype}
\usepackage{soul}
\begin{document}
foobar \textls{barfoo}
foobar \so{barfoo}
\sodef\an{}{.1em}{0.2em plus0.2em}{0.5em plus.1em minus.1em}
foobar \an{barfoo}
\end{document}
与える:
答え2
希望する結果は単語ごとの文字間隔(またはトラッキング)であると推測します。
コード内ですでにfontspec
または を使用している場合は、それらのパッケージを使用して letterspace を使用できます。microtype
\textls{your text}
文字間隔を設定したい部分の周囲にを使用すると、microtype の文字間隔を使用できます。
\documentclass{article}
\usepackage{microtype}
\begin{document}
foobar \textls{barfoo}
\end{document}
オプションを使用して、文字間のスペースの量を調整できますletterspace
。例\usepackage[letterspace=200]{microtype}
: