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.
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T185027 Bad spacing around \xrightarrow | |||
Resolved | Physikerwelt | T188879 Remove texvc |
Event Timeline
Comment Actions
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.
Comment Actions
This was simple to fix
https://github.com/wikimedia/texvcjs/pull/38/files?diff=split&w=1
thereafter
A \xrightarrow{b} C becomes A\xrightarrow {b} C
Comment Actions
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.