-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Adds \notni character ∌ #710
Conversation
Hey @jsmaniac, Thanks for the PR! Mind signing our Contributor License Agreement? When you've done so, go ahead and comment Yours truly, |
[clabot:check] |
CLA signature looks good 👍 |
@ronkok Thanks a lot for the solution! I hadn't thought about the font issue. |
Note that the best might be to support |
@jsmaniac's original code would give a MathML result that is much superior to the macro that I proposed. Perhaps the thing to do is accept the macro for now, but put U+220C on to the font To Do list, along with |
@ronkok I added the TODO. |
@ronkok Thanks for the input! @jsmaniac Thanks for being responsive to the alternative approach! If it's not too much trouble, could we see here output from Incidentally, general P.S. You're currently failing tests because of long lines. Run |
I'll have a look at what's left to do in #140 this evening. |
@edemaine I know about docker but don't use it in my regular development so I tend to forget the syntax, and google is proving itself unhelpful at telling me how to start a |
@edemaine Sorry, I tried running I also tried with the You'll have to run texcmp, as I cannot. |
Regarding your latter error, you probably need to run I forgot you need to run screenshotter first, though, which I've only gotten to run using Docker. So you might have had trouble anyway. Anyway, here is what I got with There's a difference here, but it seems like a consistent difference. Here's a comparison of |
@kevinbarabash Great! Perhaps we should wait to see if #140 is easy to finalize, and then modify this PR accordingly... |
@jsmaniac I finally got |
@kevinbarabash Sure! I'll look into this next week if you don't mind. Thanks for the update! |
@jsmaniac A reminder on this -- should be straightforward. Also, you can use |
5455257
to
b80f88f
Compare
b80f88f
to
79eb8f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for updating the diff. Sorry for making you wait so long for \not
to be added.
src/symbols.js
Outdated
@@ -527,6 +527,7 @@ defineSymbol(math, main, rel, "\u2190", "\\gets"); | |||
defineSymbol(math, main, rel, ">", "\\gt"); | |||
defineSymbol(math, main, rel, "\u2208", "\\in", true); | |||
defineSymbol(math, main, rel, "\u2209", "\\notin", true); | |||
defineSymbol(math, main, rel, "\u220c", "\\notni", true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line should be removed b/c we don't have that symbol in the font yet.
// TODO: The unicode character U+220C ∌ should be added to the font, and this | ||
// macro turned into a propper defineSymbol in symbols.js. That way, the | ||
// MathML result will be much cleaner. | ||
defineMacro("\\notni", "\\not\\ni"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the definition be wrapped in a \mathrel
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After doing some checking this doesn't look to be necessary as \ni
is already a mathrel and the \not
has no effect on the atom type.
reason: we don't have the glyph yet
@jsmaniac thanks for the PR. Sorry this took so long to get merged. |
Hi @kevinbarabash, sorry I didn't remove the Thanks for fixing this and merging! |
@jsmaniac sorry for being over eager to merge your PR. I think in order to support the unicode char for this you'll have to define a macro, see https://github.com/Khan/KaTeX/pull/950/files for some examples. |
No description provided.