Cómo comprobar si diferentes marcas dan resultados idénticos

Cómo comprobar si diferentes marcas dan resultados idénticos

¿Hay alguna forma de comprobar si las marcas dan resultados idénticos? Como ejemplo bastante tonto, ¿cómo podría comprobar si se ven iguales en un pdf?

  1. \mathop{\text{cos}}
  2. \cos

Respuesta1

\documentclass{article}
\usepackage{amsmath}
\showoutput
\begin{document}


    $\mathop{\text{cos}}$

    $\cos$

\itshape

    $\mathop{\text{cos}}$

    $\cos$

\end{document}

el primero hace

....\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

El 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

Lo mismo excepto por un kernel cero invisible.

Pero el tercero hace

....\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 es completamente diferente al cuarto (que es igual al 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

información relacionada