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
Add double prime symbol via "
or \dprime
#648
Conversation
Since |
We could even do something like |
I've removed the " character binding and updated the pull request. Just checking that it's ok to include The ability to render this as a single symbol is useful to us because (a) the cursor traverses it in one movement and (b) the appearance (size and spacing) is a bit better than either a plain " or two 's. |
Well, your code actually outputs a double-quote, which does not render to the double-prime character, so we should change that. But augh...outputting To display The best claim to the throne of "real LaTeX" is pdfTeX (the default TeX engine in most LaTeX distributions), which doesn't support rendering arbitrary Unicode characters by hex code but in this case, by using the The So now what? Well, directly including the Unicode character in the LaTeX source has broad support, including even "real LaTeX" (pdfTeX) if This isn't ideal, of course. For one thing, if we're assuming support for directly including Unicode in the source, why not just do that for all symbols? I guess the answer is that where possible we use the commands supported by pdfTeX out-of-the-box, and only fallback to assuming TL;DR I'll submit a PR to use the Unicode character for both input and output, never double-quote. ( |
Also, parse the Unicode char, so that it'll be symmetric. Note that "real LaTeX" (pdfTeX) requires the utf8x package to work with this Unicode char. It just works with MathJax and the newer TeX engines XeTeX and LuaTeX, though, and I can't find any way to render that character with pdfTeX out-of-the-box (in fact there's apparently no way to render arbitrary Unicode characters by hex code [1]), so, this is the best we got. Discussion: mathquill#648 (comment) [1]: http://tex.stackexchange.com/questions/289982/how-to-type-unicode-in-plain-tex/290011#comment703254_290032
Add double prime symbol via `"` or \dprime
Thanks @laughinghan, we can definitely work with this. Appreciate the detailed information too! |
Conflicts: src/commands/math/basicSymbols.js ARIA name for 'prime' added on master-dcg in line next to line added by mathquill#648 on master
Includes @stufflebear 's suggestion to call it "dprime" to be consistent with unicode-math.