-
Notifications
You must be signed in to change notification settings - Fork 105
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
_ doesn't render inside \text #141
Comments
Do you mean to say that, everything in a text group should be strictly normal text? As in, escape characters, underscores should come as they are. |
I think that |
Maybe you could include a Unicode command(\uni) which works only if the text style is "text" ,the next non-whitespace character is plus. After the plus sign and the hexcode, there should be a whitespace to signal the end of the code. Try to convert the hex code to an integer and convert the integer to a character. Return a character atom based on the converted character if the character is less than thppthe maximum value of an unsigned short. I believe that would work, along with the other code points that aren't on a standard keyboard. So if that's done, \uni+5f should return an underscore. |
@B3zaleel |
Any kind of "Unicode" command looks like a separate feature, please file another issue about that. Also we'd need to find out if any standard LaTeX distribution already supports that kind of command. |
They can't support all the possible kinds of commands, that's why we can define new commands to do new things. Although there is the "\DeclareUnicodeCharacter{code point}{\name}" in XeLatex,it's obvious to see why that is inconvenient(especially if you are going to use the command once). |
Yes, we can define new commands if we feel that our users will use WPF-Math's TeX dialect in some uncommon ways (e.g. we could add transparency support etc.). Although, I can't yet see the issue you're trying to solve with your "Unicode" command. |
TeX has the command \char{character code in decimal notation}. Which can be used if one needs a special symbol that hasn't been defined. |
The \char command takes a Glyph Index, not a codepoint.. It is used for where some glyphs cannot otherwise be obtained. However, with your unicode command, it will be very easy to get a codepoint without a corresponding glyph in the current font. How will you deal with that? |
A side note: |
Now sup and/or superscript characters can be rendered in a text group without any issue.
The text was updated successfully, but these errors were encountered: