Menu

#1286 mhchem: \ce{{}^{10} B} ^ should be allowed within chemical formula

None
open
nobody
None
1
2017-07-12
2017-07-04
Jonas Stein
No

\ce{{}^{10} B} leads to
but ^ should be allowed within chemical formula

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2017-07-04

    That's true. However, it's not feasible to specify every context exactly.

    Jan, do you think it's possible and reasonable to deactivate syntaxchecking for command arguments using cwl?

     
  • Jonas Stein

    Jonas Stein - 2017-07-04

    I see, that it is very difficult to get a 100% perfect syntax highlighting due to the chaotic syntax of LaTeX. However, isotopes are very common with mhchem and it would be great, if they would not raise warnings.

     
  • Tim Hoffmann

    Tim Hoffmann - 2017-07-04

    That's what I was suggesting. A dedicated "chemical formula" context would be a bit of an overkill. But a "no syntax checking" context may be reasonable.

    As a current workaround, you can still deactivate syntax checking globally in the options.

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2017-07-12

    Ticket moved from /p/texstudio/bugs/2198/

     

Anonymous
Anonymous

Add attachments
Cancel