Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\mbin{...}\kern{...} doesn't stack spacing #995

Closed
edemaine opened this issue Nov 27, 2017 · 0 comments
Closed

\mbin{...}\kern{...} doesn't stack spacing #995

edemaine opened this issue Nov 27, 2017 · 0 comments
Labels

Comments

@edemaine
Copy link
Member

edemaine commented Nov 27, 2017

Originally reported by @akalin in #982:

\begin{aligned}
& (a \cdot b) \bmod 257 \\
& (a \cdot b) \mathbin{\mathrm{mod}} 257 \\
& (a \cdot b) \kern1mu\mathbin{\mathrm{mod}}\kern1mu 257
\end{aligned}

produces:
screen shot 2017-11-23 at 2 04 04 pm

The last row is incorrect (relative to LaTeX). I've figured out the reason, but I'm not sure of the solution:

  • We have a CSS rule .katex .mbin+.mord { margin-left: .22222em; } that should give the object after an mbin a space before it of .22222em.
  • But the \kern1mu makes an element with class mord rule with a manual style of margin-left: 0.0555556em;.
  • So instead of the spaces adding up as they do in LaTeX, the second one overrides the first one. ☹️

Thoughts on how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant