-
Notifications
You must be signed in to change notification settings - Fork 13
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
Is there any way to represent atoms and atomic masses? #27
Comments
@javiermanzano Hm, currently there is not. You can make indices using underscores ( I'm not opposed to adding it, though, only I'd need to understand the syntax a little better, and need to come up with some kind of plain-text version for the parser to understand. The TeX version strikes me as pretty bad and hacky (which is kinda why I avoided TeX when I started this project). As I read it, it's some kind of empty element with the top/bottom index and then the variable with the second pair. This wouldn't work here, since both sets of coordinates should be part of the variable, and the 1 and 3 in your example don't actually have anything to do with exponents. TeX can get away with nonsense notation like that, just like it can have adjacent operators and stuff like that, since there is no evaluation or manipulation, but it breaks in this model. I'll have to think a bit about it. My first though is some kind of variation of indexes in variables. Currently, multiple indexes are treated as indices-of-indices, but this was mostly to do something ,it's not my impression that this is particularly common (I'd probably have to make sure before breaking everything though). Then, the indices would start with bottom-right and move counter-clockwise with My second thought is a special-case function with a custom renderer (such as It is also possible that this could work better as a separate package. It's not like these kinds of notations are mixed with normal math notation in any way, so maybe a similar package for chemical notation would be the best solution. Then it could have a proper parser, so you could just write something like If you have any suggestions or thoughts that would be highly appreciated. |
hi @kgram Thank you for your quick response. I think first 2 options look incredible great :) I could be helping you if needed. I don't mind creating a PR to see if could make it work. Which one do you thing it's the best option? I feel that first one seems to be the most easy one for me. If you could give me some guidance I could take a look and create a PR if that works for you. The requirements in this case are pretty ambiguous because we need to display a lot of different symbols. We are collaborating with a students marketplace for lessons content, so there will be different topics, from physics to chemistry. |
Hi, the library is totally incredible, but I've found that I could not represent something like this
I've used like this and it seems to work with latex, but not with this project
https://tex.stackexchange.com/questions/25975/how-to-typeset-indices-before-a-symbol
Any help will be appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: