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

Huge rewrite of mhchem 3.0.0 #28

Merged
merged 1 commit into from
Jul 14, 2016
Merged

Huge rewrite of mhchem 3.0.0 #28

merged 1 commit into from
Jul 14, 2016

Conversation

mhchem
Copy link
Contributor

@mhchem mhchem commented Jul 14, 2016

  • Complete rewrite of syntax parser
  • Staggered layout for charges (IUPAC style)
  • Improved spacing and space handling: 1/2 X^{2-} v, $n-1$ H^3HO(g), ^{22,98}_{11}Na, ...
  • Decimal amounts: 0.5 H2O, 0,5 H2O
  • Advanced charge/bond/hyphen distinction: OH-(aq), \mu-Cl, -H- ...
  • Decimal and negative superscripts/subscripts: ^0_-1n-, ^{22.98}_{11}Na
  • Superscript electrons: OCO^{.-}
  • IUPAC fraction style: (1/2)H2O
  • Auto-italic variables: n H2O, nH2O, NO_x, but pH
  • Improved scanning: Fe^n+, X_\alpha, NO_$x$, $\alpha$$a$, ...
  • Some unicode input, e.g. arrows
  • {text} text escape
  • \bond{3}
  • Arrow arguments now parsed as \ce: A ->[H2O] B, A ->[$x$] B
  • <--> arrow
  • More operators: A + B = C - D, \pm
  • Recursion works (\ce inside \ce)
  • Removed hardly used synonyms \cf, \cee and command \hyphen
  • Excited state: X^*
  • Ellipsis vs bond: A...A, B...B, ...
  • Punctuation: , ;
  • Dissociation constant: pKa
  • Orbitals: sp^2, s^{0.5}p^3-N
  • Kroeger-Vink notation
  • Better-looking Fast-HTML rendering: \ce{A + _{a}X}
  • Many other things
  • Side-effects for non-standard input

- Complete rewrite of syntax parser
- Staggered layout for charges (IUPAC style)
- Improved spacing and space handling: 1/2 X^{2-} v, $n-1$ H^3HO(g), ^{22,98}_{11}Na, ...
- Decimal amounts: 0.5 H2O, 0,5 H2O
- Advanced charge/bond/hyphen distinction: OH-(aq), \mu-Cl, -H- ...
- Decimal and negative superscripts/subscripts: ^0_-1n-, ^{22.98}_{11}Na
- Superscript electrons: OCO^{.-}
- IUPAC fraction style: (1/2)H2O
- Auto-italic variables: n H2O, nH2O, NO_x, but pH
- Improved scanning: Fe^n+, X_\alpha, NO_$x$, $\alpha$$a$, ...
- Some unicode input, e.g. arrows
- {text} text escape
- \bond{3}
- Arrow arguments now parsed as \ce: A ->[H2O] B, A ->[$x$] B
- <--> arrow
- More operators: A + B = C - D, \pm
- Recursion works (\ce inside \ce)
- Removed hardly used synonyms \cf, \cee and command \hyphen
- Excited state: X^*
- Ellipsis vs bond: A...A, B...B, ...
- Punctuation: , ;
- Dissociation constant: pKa
- Orbitals: sp^2, s^{0.5}p^3-N
- Kroeger-Vink notation
- Better-looking Fast-HTML rendering: \ce{A + _{a}X}
- Many other things
- Side-effects for non-standard input
@mhchem
Copy link
Contributor Author

mhchem commented Jul 14, 2016

Supersedes mathjax/MathJax#1414 as an 3rd-party extension

Manual and test drive can be found at https://mhchem.github.io/MathJax-mhchem/

@pkra
Copy link
Contributor

pkra commented Jul 14, 2016

Awesome, Martin!

@dpvc
Copy link
Member

dpvc commented Jul 14, 2016

Indeed, very, very nice!

@pkra
Copy link
Contributor

pkra commented Jul 14, 2016

@dvpc, @mhchem is this ready to merge or is additional review planned on https://github.com/mhchem/MathJax-mhchem/?

@pkra pkra closed this Jul 14, 2016
@dpvc
Copy link
Member

dpvc commented Jul 14, 2016

I wasn't planning any additional review unless @mhchem would like it. I know there were changes for \pu, so if either of you want me to look that over, I will.

@pkra pkra reopened this Jul 14, 2016
@pkra
Copy link
Contributor

pkra commented Jul 14, 2016

Sorry, I closed this accidentally!

@pkra
Copy link
Contributor

pkra commented Jul 14, 2016

I wasn't planning any additional review unless @mhchem would like it. I know there were changes for \pu, so if either of you want me to look that over, I will.

No need from my end.

@pkra pkra merged commit b42a335 into mathjax:master Jul 14, 2016
@pkra
Copy link
Contributor

pkra commented Jul 14, 2016

@dpvc
Copy link
Member

dpvc commented Jul 14, 2016

Nice! Congratulations @mhchem!

@pkra
Copy link
Contributor

pkra commented Jul 14, 2016

Nice! Congratulations @mhchem!

I'll second that and add another huge round of thanks!

👏 👏 👏 🎆 🎆 🎆 🎆 👏 👏 👏

@mhchem
Copy link
Contributor Author

mhchem commented Jul 18, 2016

You are so kind! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants