You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
math.class is not taken into account within a context expression #3727
I maintain the tiny xarrow package and the latest version 0.11 of the compiler seems to have brought a regression, which impacts the package. A minimal example is the following:
#lettest= math.class("relation", "--")
$ a test b $
displays correctly, with an appropriate spacing around --, but
#lettest= style(_=>math.class("relation", "--"))
// or the new #let test = context math.class("relation", "--")$ a test b $
doesn't (it has an extra space between -- and b).
This is easily fixable in the case of xarrow for instance, where it boils down to swapping operations as in:
// where expr depends on context of course
#let test = math.class("relation", context expr)
but I figured it would be best to signal it anyway. Sorry if this is a duplicate or my mistake or anything. Thanks for your amazing work as always!
This seems like it might be related to the issue with the math-call-pass-to-box test I added? See here: #3786 (comment) If so, it would be fixed by whatever happens with #1125 and #1779 .
Activity
wrzian commentedon Apr 28, 2024
This seems like it might be related to the issue with the
math-call-pass-to-boxtest I added? See here: #3786 (comment) If so, it would be fixed by whatever happens with #1125 and #1779 .mkorje commentedon Nov 24, 2024
On main, all three examples look identical. Bisect says #4348 fixed this.
Is there still an issue here? @EpicEricEE you mentioned in #4348 that the "--" is not being measured correctly.
EpicEricEE commentedon Nov 24, 2024
I did, but that is an unrelated issue, which I just found out to be another case of #702
$ #box("--", stroke: red + 0.4pt) $mkorje commentedon Nov 25, 2024
I think this issue can be closed then.