Page MenuHomePhabricator

Bad spacing around \xrightarrow
Closed, ResolvedPublic1 Estimated Story Points

Description

For <math>A \xrightarrow{b} C</math> the horizontal spacing is too tight.
Expected: The spacing should match that of <math>A \to C</math>.
You can compare with https://www.mathjax.org/#demo. Enter $A \xrightarrow{b} C\\A \to C$ to see the expected rendering.

Related Objects

Event Timeline

This is a texvc issue.

The input A \xrightarrow{b} C is converted into A{\xrightarrow {b}}C for which the tight spacing is the expected behavior.

Pkra moved this task from Inbox to texvc on the Math board.
Physikerwelt triaged this task as Medium priority.
Physikerwelt moved this task from Backlog to Needs discussion or investigation on the Texvcjs board.

This was simple to fix
https://github.com/wikimedia/texvcjs/pull/38/files?diff=split&w=1

This is a texvc issue.

The input A \xrightarrow{b} C is converted into A{\xrightarrow {b}}C for which the tight spacing is the expected behavior.

thereafter
A \xrightarrow{b} C becomes A\xrightarrow {b} C

Physikerwelt set the point value for this task to 1.

https://github.com/wikimedia/texvcjs/pull/38/files?diff=split&w=1 here two lines were moved, tests adjusted and cleanup T246011. However, to understand how LaTeX computes the spacing requires more studing maybe cf. e.g., http://mirror.physik-pool.tu-berlin.de/pub/CTAN/info/lshort/english/lshort.pdf section 3.7 for a start.