
Existe uma maneira de verificar se as marcações fornecem resultados idênticos? Como um exemplo bastante bobo, como posso verificar se eles têm a mesma aparência em um PDF?
\mathop{\text{cos}}
\cos
Responder1
\documentclass{article}
\usepackage{amsmath}
\showoutput
\begin{document}
$\mathop{\text{cos}}$
$\cos$
\itshape
$\mathop{\text{cos}}$
$\cos$
\end{document}
o primeiro faz
....\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
O segundo
....\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
então o mesmo, exceto por um kern zero invisível.
Mas o terceiro faz
....\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
que é completamente diferente do quarto (que é igual ao segundo)
....\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