LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

computeStringSize does not recognise calligraphic, script variants

Open xworld21 opened this issue 3 months ago • 0 comments

...and presumably any other variant whose XMath representation is ascii+variant rather than straight Unicode.

For example:

\documentclass{article}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\begin{document}
  \newbox\test

  \setbox\test\hbox{$A$} sizes: \the\wd\test\ x \the\ht\test\ x \the\dp\test

  \setbox\test\hbox{$\mathcal{A}$} sizes: \the\wd\test\ x \the\ht\test\ x \the\dp\test

  \setbox\test\hbox{$\mathscr{A}$} sizes: \the\wd\test\ x \the\ht\test\ x \the\dp\test
\end{document}

LaTeXML returns identical sizes for the three characters, even though they are quite different.

xworld21 avatar Nov 16 '25 12:11 xworld21