lyx_mirror/src/mathed
Guillaume Munch f3b70fd2cd Display the correct horizontal alignment in AMS environments
A longstanding problem... (related: #1861)

The columns in AMS math environments have a fixed alignment (colAlign() in
InsetMathGrid.cpp). We set this alignment for display (Georg's
displayColAlign()) in InsetMathHull and InsetMathSplit. This is done according
to tests and documentation for the various environments.

There is also some mechanical code factoring via colAlign().

Finally, I disable setting the horizontal alignment in InsetMathSplit, which has
no impact on the LaTeX output, and has no longer any impact on the screen. (As
for vertical alignment I discovered that it was in fact customisable for
\aligned & friends! I hope that the more faithful interface will let other
users discover that too.)
2016-05-28 17:42:31 -04:00
..
BUGS Improve math-mode lfun for switching to text 2015-08-23 11:10:05 +02:00
CMakeLists.txt Fix building with cmake and Qt4 2015-06-11 00:09:31 +02:00
CommandInset.cpp Use empty() to check empty and non-empty'ness not size() 2012-10-27 01:25:38 +02:00
CommandInset.h
InsetMath.cpp Adding TexRow information on math latex output (#4725) 2015-10-19 06:55:17 +01:00
InsetMath.h Add a unique id to math insets 2015-10-19 06:55:17 +01:00
InsetMathAMSArray.cpp New LFUN tabular-feature (#9794) 2016-01-27 18:20:37 +01:00
InsetMathAMSArray.h
InsetMathArray.cpp Adding TexRow information on math latex output (#4725) 2015-10-19 06:55:17 +01:00
InsetMathArray.h
InsetMathBig.cpp New methods in LaTeXFeatures specifically for collection of CSS 2011-12-06 22:17:13 +00:00
InsetMathBig.h Remove some header leftovers based on Scott's script hints. 2013-05-02 00:30:16 -07:00
InsetMathBoldSymbol.cpp
InsetMathBoldSymbol.h
InsetMathBox.cpp Inset files: add includes to compile with cxx11 2015-12-10 01:15:16 +01:00
InsetMathBox.h Remove some header leftovers based on Scott's script hints. 2013-05-02 00:30:16 -07:00
InsetMathBrace.cpp std::min/max are defined in <algorithm> 2014-06-07 08:17:20 +02:00
InsetMathBrace.h
InsetMathCancel.cpp Convert InsetMathCancel.* to UTF-8. 2012-02-06 22:38:46 +00:00
InsetMathCancel.h Convert InsetMathCancel.* to UTF-8. 2012-02-06 22:38:46 +00:00
InsetMathCancelto.cpp Convert remaining C++ files to UTF-8 2015-12-05 19:33:24 +00:00
InsetMathCancelto.h Convert remaining C++ files to UTF-8 2015-12-05 19:33:24 +00:00
InsetMathCases.cpp New LFUN tabular-feature (#9794) 2016-01-27 18:20:37 +01:00
InsetMathCases.h
InsetMathChar.cpp Introduce proper integer rounding function 2016-02-17 21:42:37 +01:00
InsetMathChar.h
InsetMathColor.cpp Add some missing member variable initializations 2015-09-13 19:47:21 +02:00
InsetMathColor.h Header cleanup cont. 2013-05-23 22:12:29 -07:00
InsetMathComment.cpp Fix bug #6466 2015-08-23 11:47:37 +02:00
InsetMathComment.h Fix bug #6466 2015-08-23 11:47:37 +02:00
InsetMathDecoration.cpp Add some missing member variable initializations 2015-09-13 19:47:21 +02:00
InsetMathDecoration.h
InsetMathDelim.cpp Inset files: add includes to compile with cxx11 2015-12-10 01:15:16 +01:00
InsetMathDelim.h Remove some header leftovers based on Scott's script hints. 2013-05-02 00:30:16 -07:00
InsetMathDiagram.cpp Adding TexRow information on math latex output (#4725) 2015-10-19 06:55:17 +01:00
InsetMathDiagram.h Header cleanup cont. 2013-05-25 16:38:20 -07:00
InsetMathDiff.cpp
InsetMathDiff.h
InsetMathDots.cpp Add missing intializations 2015-10-10 21:04:28 +02:00
InsetMathDots.h
InsetMathEnsureMath.cpp New methods in LaTeXFeatures specifically for collection of CSS 2011-12-06 22:17:13 +00:00
InsetMathEnsureMath.h
InsetMathEnv.cpp mathed: bformat infoize messages 2014-11-14 18:18:30 +01:00
InsetMathEnv.h Remove some header leftovers based on Scott's script hints. 2013-05-02 00:30:16 -07:00
InsetMathExFunc.cpp Implement math-as-HTML output for InsetMathExFunc. 2013-03-27 11:41:29 -04:00
InsetMathExFunc.h Remove some header leftovers based on Scott's script hints. 2013-05-02 00:30:16 -07:00
InsetMathExInt.cpp Use empty() to check empty and non-empty'ness not size() 2012-10-27 01:25:38 +02:00
InsetMathExInt.h
InsetMathFont.cpp Avoid implicit copy 2014-11-30 12:59:00 +01:00
InsetMathFont.h
InsetMathFontOld.cpp mathed: bformat infoize messages 2014-11-14 18:18:30 +01:00
InsetMathFontOld.h
InsetMathFrac.cpp Fix comments 2015-06-11 20:40:04 +02:00
InsetMathFrac.h Replacement for commits bc47054b and ad0d0f6d 2015-06-14 18:10:29 +02:00
InsetMathGrid.cpp Display the correct horizontal alignment in AMS environments 2016-05-28 17:42:31 -04:00
InsetMathGrid.h Display the correct horizontal alignment in AMS environments 2016-05-28 17:42:31 -04:00
InsetMathHull.cpp Display the correct horizontal alignment in AMS environments 2016-05-28 17:42:31 -04:00
InsetMathHull.h Get rid of use_preview_ in various insets 2016-02-09 09:54:14 +01:00
InsetMathKern.cpp Improve support for on screen length calculation 2015-03-26 17:10:15 +01:00
InsetMathKern.h
InsetMathLefteqn.cpp
InsetMathLefteqn.h
InsetMathLim.cpp
InsetMathLim.h
InsetMathMatrix.cpp Parse \multicolumn in math (bug 396) 2015-05-17 13:43:37 +02:00
InsetMathMatrix.h
InsetMathNest.cpp In mathed, only select current cell on double-click 2016-03-16 10:23:23 +01:00
InsetMathNest.h Fix the last clang warnings about overloaded virtual methods 2014-12-22 11:02:45 +01:00
InsetMathNumber.cpp
InsetMathNumber.h
InsetMathOverset.cpp New methods in LaTeXFeatures specifically for collection of CSS 2011-12-06 22:17:13 +00:00
InsetMathOverset.h
InsetMathPar.cpp
InsetMathPar.h
InsetMathPhantom.cpp Inset files: add includes to compile with cxx11 2015-12-10 01:15:16 +01:00
InsetMathPhantom.h Native support for \smash[t] and \smash[b] 2014-05-27 22:13:58 +02:00
InsetMathRef.cpp Allowing direct, read-write access to the references cache just seems 2013-03-18 19:32:30 -04:00
InsetMathRef.h
InsetMathRoot.cpp New methods in LaTeXFeatures specifically for collection of CSS 2011-12-06 22:17:13 +00:00
InsetMathRoot.h
InsetMathScript.cpp Fix bug #8784 (mathml export for scripts) 2014-02-22 19:01:20 +01:00
InsetMathScript.h * InsetMathScript::doDispatch : properly record undo information before 2012-02-02 13:39:05 +00:00
InsetMathSideset.cpp Remove dead code 2015-09-13 14:05:49 +02:00
InsetMathSideset.h Remove ; from end of function definitions 2013-05-12 13:04:18 +02:00
InsetMathSize.cpp mathed: bformat infoize messages 2014-11-14 18:18:30 +01:00
InsetMathSize.h
InsetMathSpace.cpp Improve support for on screen length calculation 2015-03-26 17:10:15 +01:00
InsetMathSpace.h Change the type of the context menu name to string 2011-10-29 14:48:55 +00:00
InsetMathSpecialChar.cpp Audit all the LASSERT calls, and try to do something sensible at 2013-04-25 17:27:10 -04:00
InsetMathSpecialChar.h
InsetMathSplit.cpp Display the correct horizontal alignment in AMS environments 2016-05-28 17:42:31 -04:00
InsetMathSplit.h Display the correct horizontal alignment in AMS environments 2016-05-28 17:42:31 -04:00
InsetMathSqrt.cpp New methods in LaTeXFeatures specifically for collection of CSS 2011-12-06 22:17:13 +00:00
InsetMathSqrt.h
InsetMathStackrel.cpp Fix bug #8464: stackrel with subscript. 2012-12-28 20:08:43 +01:00
InsetMathStackrel.h Fix bug #8464: stackrel with subscript. 2012-12-28 20:08:43 +01:00
InsetMathString.cpp Remove a deep copy of MathData in lyx::write 2015-10-19 06:55:18 +01:00
InsetMathString.h
InsetMathSubstack.cpp New LFUN tabular-feature (#9794) 2016-01-27 18:20:37 +01:00
InsetMathSubstack.h
InsetMathSymbol.cpp Introduce proper integer rounding function 2016-02-17 21:42:37 +01:00
InsetMathSymbol.h Handle text-only wasy symbols correctly. 2013-01-10 21:22:54 +01:00
InsetMathTabular.cpp Adding TexRow information on math latex output (#4725) 2015-10-19 06:55:17 +01:00
InsetMathTabular.h
InsetMathUnderset.cpp New methods in LaTeXFeatures specifically for collection of CSS 2011-12-06 22:17:13 +00:00
InsetMathUnderset.h
InsetMathUnknown.cpp Add missing intializations 2015-10-10 21:04:28 +02:00
InsetMathUnknown.h Remove heavy includes 2014-11-30 12:52:01 +01:00
InsetMathXArrow.cpp Inset files: add includes to compile with cxx11 2015-12-10 01:15:16 +01:00
InsetMathXArrow.h
InsetMathXYArrow.cpp Add missing intializations 2015-10-10 21:04:28 +02:00
InsetMathXYArrow.h
InsetMathXYMatrix.cpp Adding TexRow information on math latex output (#4725) 2015-10-19 06:55:17 +01:00
InsetMathXYMatrix.h
MacroTable.cpp Adding TexRow information on math latex output (#4725) 2015-10-19 06:55:17 +01:00
MacroTable.h Fix crash when copying a macro with instant preview on 2015-06-24 23:38:53 +02:00
MathAtom.cpp
MathAtom.h
MathAutoCorrect.cpp More llvm/clang warnings 2013-05-02 18:27:32 +02:00
MathAutoCorrect.h
MathCompletionList.h
MathData.cpp Improve fix to 57615915. 2015-11-08 21:53:32 +01:00
MathData.h Initialize MathData members 2015-09-12 22:47:09 +02:00
MathExtern.cpp Remove a deep copy of MathData in lyx::write 2015-10-19 06:55:18 +01:00
MathExtern.h Remove a deep copy of MathData in lyx::write 2015-10-19 06:55:18 +01:00
MathFactory.cpp Remove unsupported macros from autocompletion 2015-03-10 20:53:56 +01:00
MathFactory.h
MathMacro.cpp Fxy typo in XHTML output (bug #10124) 2016-05-22 17:32:04 +02:00
MathMacro.h Pimpl MathMacro 2015-04-02 21:20:32 +02:00
MathMacroArgument.cpp Move metrics computation close to drawing for drawStrRed/Black 2012-05-03 16:35:45 +02:00
MathMacroArgument.h
MathMacroTemplate.cpp Adding TexRow information on math latex output (#4725) 2015-10-19 06:55:17 +01:00
MathMacroTemplate.h Enhancements and bugfixes to the TOCs 2015-10-01 21:44:22 +01:00
MathParser_flags.h
MathParser.cpp Fix multicolumn regression (bug #9788) 2015-10-10 18:58:18 +02:00
MathParser.h Remove unsupported macros from autocompletion 2015-03-10 20:53:56 +01:00
MathStream.cpp Adding TexRow information on math latex output (#4725) 2015-10-19 06:55:17 +01:00
MathStream.h Adding TexRow information on math latex output (#4725) 2015-10-19 06:55:17 +01:00
MathSupport.cpp Adding TexRow information on math latex output (#4725) 2015-10-19 06:55:17 +01:00
MathSupport.h Improve support for on screen length calculation 2015-03-26 17:10:15 +01:00
README
ReplaceData.h
texify
TextPainter.cpp
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/...)