Georg Baum 7f373e8de1 Fix misparsing of alternative simple formulas
This comes from trying to run tex2lyx on the AMS math test document
testmath.tex. Both \(...\) and \begin{math}...\end{math} are defined as
inline math formulas in standard LaTeX. tex2lyx recognizes this, but the
math parser in LyX did not handle "\begin_inset Formula \(" and
"\begin_inset Formula \begin{math}" correctly.
The fix is simple and safe: If we are in undecided mode (this is only true
for the first token of a math inset), create a hull inset of the respective
kind. Otherwise, handle the commands as before.
2014-02-26 21:54:09 +01:00
..
2009-10-06 14:26:18 +00:00
2013-05-23 22:17:20 -07:00
2013-05-02 18:27:32 +02:00
2010-07-29 14:29:54 +00:00
2010-03-30 02:05:49 +00:00
2010-03-30 02:05:49 +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
2013-05-23 22:12:29 -07:00
2013-05-25 16:38:20 -07: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-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
2014-02-25 21:21:47 +01:00
2013-05-25 16:38:20 -07:00
2010-03-31 18:59:04 +00:00
2013-05-25 16:38:20 -07: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:12:52 +00:00
2010-07-29 15:44:17 +00:00
2013-05-02 18:27:32 +02:00
2013-05-02 18:27:32 +02:00
2013-06-03 02:35:32 -07:00
2013-05-25 16:38:20 -07: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/...)