latex3 / xfrac

Split level fractions
LaTeX Project Public License v1.3c
1 stars 0 forks source link

Improving the plainmath version of \sfrac #2

Closed mhp77 closed 1 month ago

mhp77 commented 12 years ago

With \UseCollection{xfrac}{plainmath}, $\sfrac{a}{\sin b}$ is equivalent to $a/\sin b$. As a consequence, \sfrac inherits the horizontal spacing problems related to the fact that TeX treats / as an ordinary mathematical object (see this question on Stack Exchange).

A nice solution to this issue is presented by Philippe Goutet in an answer to this question on Stack Exchange. In essence, he proposes replacing / with \delimiter"502F30E\mathopen{} to enhance the horizontal spacing in split fractions.

So what do you think about improving the plainmath version of \sfrac to that effect?

blefloch commented 12 years ago

My worry here is that changing that spacing would affect other user's documents. What is the current status of xfrac? It is in l3packages, so presumably should be kept stable?

josephwright commented 12 years ago

I can see the argument for 'stable' here, but other than the really solid parts of l3kernel I think we have to accept that the code is still developing and so some change may happen. To me, this looks arguably like a bug: unlike the simple a/b case the user cannot do much about the spacing for \sfrac{a}{b}. I'm for 'make the change', but let's see if there are any other views.

josephwright commented 9 years ago

Check with Morten

josephwright commented 1 month ago

We removed collections a while ago: I'm therefore closing here.