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

Add some mathbb latex substitutions #7657

Closed
hayd opened this issue Jul 18, 2014 · 4 comments · Fixed by #8044
Closed

Add some mathbb latex substitutions #7657

hayd opened this issue Jul 18, 2014 · 4 comments · Fixed by #8044
Labels
REPL Julia's REPL (Read Eval Print Loop) unicode Related to unicode characters and encodings

Comments

@hayd
Copy link
Member

hayd commented Jul 18, 2014

It be great to have access to some of these mathbb symbols. These were not included due to "more latex code creeping" in (ie as mathbb{Z}).

A workaround to the having this more latex issue is to use the prefix: Bbb, i.e.\BbbZ. (In sense this is a standard; we are already have this for \BbbPi.

cc #6927 @stevengj

Note: it could be that font support is not that great for these symbols:

julia> println("\u2124")  # \BbbZ

just looks like a Z to me in Source Code Pro (but maybe I should just use a better font).

@stevengj
Copy link
Member

I'm not opposed to supporting \mathbb{Z} etcetera in the tab completions. I wanted to be more conservative in my initial patch, but now that we have some experience with this we can decide whether to include more.

Most of these substitutions are probably in unicode.xml already, but my import script stripped them out by the ismatch(r"^\\[A-Za-z]+$",L) rule. It would be easy to modify this to import a larger set of symbol substitutions.

@catawbasam
Copy link
Contributor

Re font support: Deja Vu Sans Mono supports it and is freely available.

@hayd
Copy link
Member Author

hayd commented Aug 6, 2014

Perhaps adding "Springer" to the lookup tuple ("AMS", "IEEE", "mathlatex", "latex") would be a good/easy fix? (It gives \bbbz and more...)

@stevengj
Copy link
Member

See #8044 for an alternative, which defines e.g. \BbbA for 𝔸.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
REPL Julia's REPL (Read Eval Print Loop) unicode Related to unicode characters and encodings
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants