MathJax-src icon indicating copy to clipboard operation
MathJax-src copied to clipboard

Make sure stretchy embellished operators use the proper scaling when determineing their widths

Open dpvc opened this issue 3 years ago • 0 comments

This PR fixes a problem reported by Peter where some horizontally stretched characters are stretched to the wrong length. For example:

\bbox[red]{\begin{smallmatrix}
 - \otimes _k tk \\
  \xleftarrow {\hspace{50pt}}\\
  \xleftarrow {\hspace{50pt}}\\
  \xleftarrow {\hspace{50pt}}\\
  \operatorname {Hom}_k(tk,-)
\end{smallmatrix}}

in SVG output. An incorrect relative scaling value was being used (with an embellished operator, the relative scaling of the core has to include all the nesting parent elements).

dpvc avatar Aug 22 '22 17:08 dpvc