lyx_mirror/src/mathed
Enrico Forestieri 4a7a19352c Fix bug #12561
In mathed it is assumed that a labeled line is also implicitly numbered.
However, latex allows to label an equation without numbering it.
The label is then assigned the value of a nearby numbered one.
This commit drops the above mathed assumption in order to allow to import
valid latex code with a labeled but not numbered equation line.

The screen representation omits the line number and encloses the label
in square brackets for further differentiation. However, it is still not
possible to label an equation without numbering it using the GUI.
2022-07-13 19:11:03 +02:00
..
BUGS Run codespell on src/mathed 2020-06-25 23:31:42 +02:00
CMakeLists.txt prevent Qt6 from defining UNICODE (Qt6.1.1 and upwards) 2021-06-19 10:48:49 +02:00
InsetMath.cpp MathML: use M/ETagInline. 2021-05-25 03:51:29 +02:00
InsetMath.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathAMSArray.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathAMSArray.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathArray.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathArray.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathBig.cpp Similar fixes as 946ba7781c 2021-12-05 18:54:05 +01:00
InsetMathBig.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathBoldSymbol.cpp Similar fixes as 946ba7781c 2021-12-05 18:54:05 +01:00
InsetMathBoldSymbol.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathBox.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathBox.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathBrace.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathBrace.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathCancel.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathCancel.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathCancelto.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathCancelto.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathCases.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathCases.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathChar.cpp MathML: use M/ETagInline. 2021-05-25 03:51:29 +02:00
InsetMathChar.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathClass.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathClass.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathColor.cpp Fix missing initialization 2021-03-05 13:06:10 +01:00
InsetMathColor.h Fix bug #11007 2021-02-28 22:32:11 +01:00
InsetMathCommand.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathCommand.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathComment.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathComment.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathDecoration.cpp MathML: fix underbraces to be stretchable. 2022-04-01 00:01:42 +02:00
InsetMathDecoration.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathDelim.cpp Similar fixes as 946ba7781c 2021-12-05 18:54:05 +01:00
InsetMathDelim.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathDiagram.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathDiagram.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathDiff.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathDiff.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathDots.cpp MathML: use M/ETagInline. 2021-05-25 03:51:29 +02:00
InsetMathDots.h Rename MathStream to MathMLStream. 2021-01-02 19:52:23 +01:00
InsetMathEnsureMath.cpp Make paste in ensuremath work as in simple math hulls 2021-01-06 02:07:25 +01:00
InsetMathEnsureMath.h Fix unused paramaters warnings 2021-01-06 11:57:22 +01:00
InsetMathEnv.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathEnv.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathExFunc.cpp MathML: use M/ETagInline. 2021-05-25 03:51:29 +02:00
InsetMathExFunc.h Rename MathStream to MathMLStream. 2021-01-02 19:52:23 +01:00
InsetMathExInt.cpp DocBook: for MathML, mrow removal for more cases 2021-05-25 03:29:20 +02:00
InsetMathExInt.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathFont.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathFont.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathFontOld.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathFontOld.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathFrac.cpp MathML: fix validity for fractions with units. 2022-04-03 03:00:03 +02:00
InsetMathFrac.h Implement \case for AASTeX. 2021-01-06 14:08:00 +01:00
InsetMathGrid.cpp Style 2021-12-28 09:42:31 +01:00
InsetMathGrid.h Remove redundant semicolons reported by GCC with -Wextra-semi option 2021-09-28 11:28:43 +03:00
InsetMathHull.cpp Fix bug #12561 2022-07-13 19:11:03 +02:00
InsetMathHull.h Implement Row::Element::row_flags 2021-12-07 17:04:47 +01:00
InsetMathKern.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathKern.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathLefteqn.cpp
InsetMathLefteqn.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
InsetMathLim.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathLim.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathMacro.cpp Always validate a macro definition 2022-05-31 22:17:14 +02:00
InsetMathMacro.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathMacroArgument.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathMacroArgument.h Remove redundant semicolons reported by GCC with -Wextra-semi option 2021-09-28 11:28:43 +03:00
InsetMathMacroTemplate.cpp Remove useless casts reported by GCC with -Wuseless-cast option 2021-09-30 10:37:24 +03:00
InsetMathMacroTemplate.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathMatrix.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathMatrix.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathNest.cpp Fix crash when dissolving a top level math inset 2022-06-29 22:52:16 +02:00
InsetMathNest.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathNumber.cpp MathML: use M/ETagInline. 2021-05-25 03:51:29 +02:00
InsetMathNumber.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathOverset.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathOverset.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathPar.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathPar.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathPhantom.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathPhantom.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathRef.cpp Fix bug #12181 2021-03-06 23:36:58 +01:00
InsetMathRef.h Fix bug #12181 2021-03-06 23:36:58 +01:00
InsetMathRoot.cpp Fix bug #3294 2021-02-27 14:49:55 +01:00
InsetMathRoot.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathScript.cpp MathML: remove redundant mrow in InsetMathScript. 2021-12-08 02:11:48 +01:00
InsetMathScript.h Fixup 7e7f9eba: we only need one hasLimits() method 2021-06-01 16:12:46 +02:00
InsetMathSideset.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSideset.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSize.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSize.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSpace.cpp DocBook: for MathML, mrow removal for more cases 2021-05-25 03:29:20 +02:00
InsetMathSpace.h Allow context menus in mathed 2021-03-05 21:21:41 +01:00
InsetMathSpecialChar.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSpecialChar.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSplit.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSplit.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSqrt.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSqrt.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathStackrel.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathStackrel.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathString.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathString.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSubstack.cpp \protect substack in fragile context 2021-12-27 11:37:59 +01:00
InsetMathSubstack.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSymbol.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathSymbol.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathTabular.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathTabular.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathUnderset.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathUnderset.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathUnknown.cpp Rename MathStream to MathMLStream. 2021-01-02 19:52:23 +01:00
InsetMathUnknown.h Rename MathStream to MathMLStream. 2021-01-02 19:52:23 +01:00
InsetMathXArrow.cpp MathML: share some code for XArrow. 2021-12-08 02:02:46 +01:00
InsetMathXArrow.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
InsetMathXYMatrix.cpp \protect xymatrix in fragile context 2021-12-27 11:42:30 +01:00
InsetMathXYMatrix.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
MacroTable.cpp Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
MacroTable.h MacroData refactoring 2020-11-06 21:33:56 +02:00
MathAtom.cpp
MathAtom.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
MathAutoCorrect.cpp Move include of own header to the top. Fix dependencies 2020-10-25 19:58:57 +02:00
MathAutoCorrect.h Make math autocorrrect work with more than 2 chars 2019-06-02 21:12:12 +02:00
MathClass.cpp Rename LM_ST_* to *_STYLE and FONT_SIZE_* to *_SIZE 2019-06-14 17:05:49 +02:00
MathClass.h
MathCompletionList.h Amend efc0877f 2020-10-05 09:37:15 +02:00
MathData.cpp Fix math class code in InsetMathColor 2021-02-08 13:13:21 +01:00
MathData.h Fix math class code in InsetMathColor 2021-02-08 13:13:21 +01:00
MathExtern.cpp FindAdv: If possible use unicode instead of math command when searching 2022-03-20 11:33:12 +01:00
MathExtern.h Rename WriteStream to TeXMathStream. 2021-01-02 19:52:23 +01:00
MathFactory.cpp Implement \case for AASTeX. 2021-01-06 14:08:00 +01:00
MathFactory.h Properly fix #9616 2019-04-15 20:56:52 +02:00
MathParser_flags.h Run codespell on src/mathed 2020-06-25 23:31:42 +02:00
MathParser.cpp Fix bug #12561 2022-07-13 19:11:03 +02:00
MathParser.h Implement variable size bigops 2020-07-17 22:25:18 +02:00
MathRow.cpp Reduce the number of accesses to coord cache when drawing a math row 2021-10-08 18:17:19 +02:00
MathRow.h Cleanup headers 2020-12-03 00:38:27 +02:00
MathStream.cpp MathStream: better order for the calls to tab() and cr(). 2021-12-05 19:15:06 +01:00
MathStream.h FindAdv: If possible use unicode instead of math command when searching 2022-03-20 11:33:12 +01:00
MathSupport.cpp Fix bug #3751 2021-02-27 21:40:28 +01:00
MathSupport.h Improve alignment of math decorations 2021-02-02 19:39:52 +01:00
README
ReplaceData.h
texify Run codespell on src/mathed 2020-06-25 23:31:42 +02:00
TextPainter.cpp Match header/source function argument naming 2020-11-01 22:23:44 +02:00
TextPainter.h

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/...)