
マークアップが同一の出力を生成するかどうかを確認する方法はありますか? かなりばかげた例として、これらが PDF 上で同じに見えるかどうかをどのように確認すればよいでしょうか?
\mathop{\text{cos}}
\cos
答え1
\documentclass{article}
\usepackage{amsmath}
\showoutput
\begin{document}
$\mathop{\text{cos}}$
$\cos$
\itshape
$\mathop{\text{cos}}$
$\cos$
\end{document}
最初のものは
....\mathon
....\hbox(4.30554+0.0)x13.3889
.....\hbox(4.30554+0.0)x13.3889
......\OT1/cmr/m/n/10 c
......\OT1/cmr/m/n/10 o
......\OT1/cmr/m/n/10 s
....\mathoff
二番目
....\mathon
....\hbox(4.30554+0.0)x13.3889
.....\kern 0.0
.....\OT1/cmr/m/n/10 c
.....\OT1/cmr/m/n/10 o
.....\OT1/cmr/m/n/10 s
....\mathoff
つまり、目に見えないゼロカーニングを除いて同じです。
しかし、3番目は
....\mathon
....\hbox(4.30554+0.0)x13.28879
.....\hbox(4.30554+0.0)x13.28879
......\OT1/cmr/m/it/10 c
......\kern-0.51112
......\OT1/cmr/m/it/10 o
......\OT1/cmr/m/it/10 s
....\mathoff
これは4番目(2番目と同じ)とは全く異なります。
....\mathon
....\hbox(4.30554+0.0)x13.3889
.....\kern 0.0
.....\OT1/cmr/m/n/10 c
.....\OT1/cmr/m/n/10 o
.....\OT1/cmr/m/n/10 s
....\mathoff