Enrico Forestieri f251e01892 Fix bug #8305: ^ symbol does not render into upward arrow when using mhchem
The mhchem package treats the caret both as a shorthand for \uparrow or
as a superscript operator according to whether it is surrounded by
spaces or not. The \ce and \cf insets allow inserting spaces but there
is no provision for inserting a space after the caret, which is always
considered by LyX as a superscript operator. The solution here is to
insert a space after the caret if the superscript is empty or an empty
brace inset.

Mathed does not allow empty superscripts, so an empty brace has to be
inserted when working in LyX. On the other hand, when importing latex
code, an empty superscript is retained.

This has no effect whatsoever for normal latex code, as a space after
the caret is ignored. In any case, the output is only changed if an
empty brace inset is used as superscript. Specifically, the output is
changed from "^{{}}" to "^ {}".
2012-08-21 01:30:51 +02:00
..
2009-10-06 14:26:18 +00:00
2010-07-29 14:29:54 +00:00
2010-03-30 02:04:07 +00:00
2010-03-30 02:05:49 +00:00
2010-03-30 02:05:49 +00:00
2010-03-30 02:37:05 +00:00
2010-03-30 02:40:32 +00:00
2010-03-30 02:57:05 +00:00
2010-03-29 23:03:37 +00:00
2010-03-30 17:24:22 +00:00
2010-03-30 22:14:00 +00:00
2010-03-30 22:14:00 +00:00
2010-03-30 22:51:02 +00:00
2010-03-30 22:51:02 +00:00
2010-03-31 18:57:47 +00:00
2010-08-14 17:57:06 +00:00
2010-08-14 17:57:06 +00:00
2010-03-31 21:33:33 +00:00
2012-03-25 11:16:32 +02:00
2010-03-31 18:59:04 +00:00
2011-02-10 22:57:41 +00:00
2012-03-25 11:16:32 +02:00
2010-03-30 01:23:10 +00:00
2010-03-31 20:04:39 +00:00
2010-03-31 20:31:04 +00:00
2010-03-31 20:37:23 +00:00
2010-03-31 20:50:29 +00:00
2010-03-31 20:31:04 +00:00
2010-03-31 20:54:27 +00:00
2010-03-30 22:51:02 +00:00
2010-03-31 20:12:52 +00:00
2010-07-29 15:44:17 +00:00
2012-05-03 17:58:02 +02:00

Inset 'Xyz' is implemented by 'MathXyzInset' in 'math_xyzinset.[hC]'


Inset hierarchy:

                                   MathInset
                                (abstract base)

                         /            |               \

              Dim                  Char               Symbol, Space, ...
         (thing that need       (for things formerly
          the width_/ascent_     known as characters)
          /descent_ cache)

          /             \

       Nest              Dots,  Func, ...
  (for thing with
   nested content)

        |         \

      Grid        Decoration   Delim   Frac  Macro  Root  Script  Sqrt

      /   \

 Array    Hull
         (base for eqnarray/align/...)