
Gibt es eine Möglichkeit zu prüfen, ob Markierungen identische Ergebnisse liefern? Ein eher albernes Beispiel: Wie könnte ich prüfen, ob diese in einer PDF-Datei gleich aussehen?
\mathop{\text{cos}}
\cos
Antwort1
\documentclass{article}
\usepackage{amsmath}
\showoutput
\begin{document}
$\mathop{\text{cos}}$
$\cos$
\itshape
$\mathop{\text{cos}}$
$\cos$
\end{document}
der erste macht
....\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
Der Zweite
....\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
also das Gleiche, abgesehen von einem unsichtbaren Nullkern.
Aber der Dritte macht
....\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
das ist völlig anders als das vierte (das dasselbe ist wie das zweite)
....\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