\index は句読点の前と後のどちらに使用しますか?

\index は句読点の前と後のどちらに使用しますか?

say\index{say}.を使用する場合と を使用する場合ではカーニングが異なるように思えますsay.\index{say}。次の馬鹿げた例を見るとそれがわかります。

\documentclass[12pt]{memoir}
\usepackage{microtype}
\begin{document}
Some simple text about say.\index{say}
Additional text about say\index{say}.
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say.\index{say} say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
say\index{say}. say.\index{say}
Can you see that there are lots of say\index{say}?
\end{document}

それらは私には違って見えます:

格言

そこで私は尋ねます、適切な方法ですかsay.\index{say}?コマンドは句読点(つまり、\labelなど)の後に来るべきですか?

答え1

ログファイルで違いを確認する方が簡単です。

\documentclass[12pt]{memoir}
\usepackage{microtype}
\begin{document}
\showoutput

1say.\index{say}

2say\index{say}.


\end{document}

ショー

....\OT1/cmr/m/n/12 1
....\OT1/cmr/m/n/12 s
....\OT1/cmr/m/n/12 a
....\kern-0.32639
....\OT1/cmr/m/n/12 y
....\kern-0.97916
....\OT1/cmr/m/n/12 .
....\penalty 10000



....\OT1/cmr/m/n/12 2
....\OT1/cmr/m/n/12 s
....\OT1/cmr/m/n/12 a
....\kern-0.32639
....\OT1/cmr/m/n/12 y
....\OT1/cmr/m/n/12 .
....\penalty 10000

これは、質問で示唆されているように、.この場合、の前のスペースを修正するフォント指定のカーニングが失われることを確認します-0.97916pt

egregがコメントしたように、\index 前にこれらの問題を回避するための言葉。

関連情報